lab-student-survey


Namelab-student-survey JSON
Version 0.4.27 PyPI version JSON
download
home_pagehttps://github.com/34j/lab-student-survey
SummaryPython package for lab student survey
upload_time2024-11-15 10:02:16
maintainerNone
docs_urlNone
author34j
requires_python<3.13,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Lab Student Survey

<p align="center">
  <a href="https://github.com/34j/lab-student-survey/actions/workflows/ci.yml?query=branch%3Amain">
    <img src="https://img.shields.io/github/actions/workflow/status/34j/lab-student-survey/ci.yml?branch=main&label=CI&logo=github&style=flat-square" alt="CI Status" >
  </a>
  <a href="https://lab-student-survey.readthedocs.io">
    <img src="https://img.shields.io/readthedocs/lab-student-survey.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">
  </a>
  <a href="https://codecov.io/gh/34j/lab-student-survey">
    <img src="https://img.shields.io/codecov/c/github/34j/lab-student-survey.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">
  </a>
</p>
<p align="center">
  <a href="https://python-poetry.org/">
    <img src="https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJJSURBVHgBfZLPa1NBEMe/s7tNXoxW1KJQKaUHkXhQvHgW6UHQQ09CBS/6V3hKc/AP8CqCrUcpmop3Cx48eDB4yEECjVQrlZb80CRN8t6OM/teagVxYZi38+Yz853dJbzoMV3MM8cJUcLMSUKIE8AzQ2PieZzFxEJOHMOgMQQ+dUgSAckNXhapU/NMhDSWLs1B24A8sO1xrN4NECkcAC9ASkiIJc6k5TRiUDPhnyMMdhKc+Zx19l6SgyeW76BEONY9exVQMzKExGKwwPsCzza7KGSSWRWEQhyEaDXp6ZHEr416ygbiKYOd7TEWvvcQIeusHYMJGhTwF9y7sGnSwaWyFAiyoxzqW0PM/RjghPxF2pWReAowTEXnDh0xgcLs8l2YQmOrj3N7ByiqEoH0cARs4u78WgAVkoEDIDoOi3AkcLOHU60RIg5wC4ZuTC7FaHKQm8Hq1fQuSOBvX/sodmNJSB5geaF5CPIkUeecdMxieoRO5jz9bheL6/tXjrwCyX/UYBUcjCaWHljx1xiX6z9xEjkYAzbGVnB8pvLmyXm9ep+W8CmsSHQQY77Zx1zboxAV0w7ybMhQmfqdmmw3nEp1I0Z+FGO6M8LZdoyZnuzzBdjISicKRnpxzI9fPb+0oYXsNdyi+d3h9bm9MWYHFtPeIZfLwzmFDKy1ai3p+PDls1Llz4yyFpferxjnyjJDSEy9CaCx5m2cJPerq6Xm34eTrZt3PqxYO1XOwDYZrFlH1fWnpU38Y9HRze3lj0vOujZcXKuuXm3jP+s3KbZVra7y2EAAAAAASUVORK5CYII=" alt="Poetry">
  </a>
  <a href="https://github.com/ambv/black">
    <img src="https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square" alt="black">
  </a>
  <a href="https://github.com/pre-commit/pre-commit">
    <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
  </a>
</p>
<p align="center">
  <a href="https://pypi.org/project/lab-student-survey/">
    <img src="https://img.shields.io/pypi/v/lab-student-survey.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">
  </a>
  <img src="https://img.shields.io/pypi/pyversions/lab-student-survey.svg?style=flat-square&logo=python&amp;logoColor=fff" alt="Supported Python versions">
  <img src="https://img.shields.io/pypi/l/lab-student-survey.svg?style=flat-square" alt="License">
</p>

Python package for lab student survey.
A single command fetches the spreadsheet generated from Google Forms and uploads the analysis results to Google Drive.

## Usage

- Create `student-lab-survey` (or any name) project in Google Cloud Platform.
- Enable `Google Drive API` in Google Cloud Platform.
- Create a `Service Account` in Google Cloud Platform.
- Download the `Service Account` credentials as JSON in Google Cloud Platform and save it as `service-secrets.json` in the working directory or set it as `GDRIVE_SERVICE_ACCOUNT` environment variable (via GitHub Secrets).
- Create `student-lab-survey` (or any name) folder in Google Drive.
- Add the `Service Account` email to the `student-lab-survey` folder with `Editor` permissions.
- Create a `Google Form` for the lab student survey. The second question should be the name of the supervisor.
- Create a `Google Sheet` in the `student-lab-survey` folder from the `Google Form`.
- Create `metadata.csv` and `metadata_group_name.csv` in the working directory or `student-lab-survey` folder in Google Drive to specify the question groups. The former will be automatically generated in the working directory if it does not exist. The latter is optional.

### Environment Variables

- Set the `Google Sheet` ID as `LAB_STUDENT_SURVEY_FILE_ID` environment variable (via GitHub Secrets).
- Set the `student-lab-survey` folder ID as `LAB_STUDENT_SURVEY_FOLDER_ID` environment variable (via GitHub Secrets). (Optional.) If not set, the parent folder ID of the `Google Sheet` will be used.
- (Set the `Service Account` credentials as `GDRIVE_SERVICE_ACCOUNT` environment variable (via GitHub Secrets).)

### Running commands

```shell
lss
```

### Github Actions

```yaml
name: Run lab-student-survey

on:
  schedule:
    # every day at 00:00 UTC
    - cron: "0 0 * * *"
  workflow_dispatch:

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Install wkhtmltopdf
        run: sudo apt-get install -y wkhtmltopdf
      - name: Install and run lab-student-survey
        run: pipx run lab-student-survey
        env:
          LAB_STUDENT_SURVEY_FILE_URL: ${{ secrets.LAB_STUDENT_SURVEY_FILE_URL }}
          LAB_STUDENT_SURVEY_FOLDER_URL: ${{ secrets.LAB_STUDENT_SURVEY_FOLDER_URL }}
          GDRIVE_SERVICE_SECRETS: ${{ secrets.GDRIVE_SERVICE_SECRETS }}
```

## Installation

Install this via pip or pipx (or your favourite package manager):

```shell
pipx install lab-student-survey
```

## Alternatives

As far as I could find, there is no repository on GitHub for this particular topic. Instead, you may want to check out the following alternative websites. However, as there are too few people in a lab, with the effect of diminishing anonymity, most of these websites do not seem to attract many reviews.

### 国内

- [理系研究室のクチコミサイト|OpenLab](https://openlabmg.com/): **募集停止中**, 投稿するとAmazonギフト券(100円)がもらえる, ほとんど情報なし(100程度?)
- [LabBase 研究室サーチ](https://lab-search.app.labbase.jp/): **入力方法不明**, 上よりも情報なし
- [研究室ナビ](http://kenkyu-navi.com): リンク切れ [Forms](https://docs.google.com/forms/d/1s-c8tGOCGLv35KimBo9U7d3MKPyXpDl_QcHLozppAgM/viewform?edit_requested=true)

[研究室 口コミ \-満載 \-学べます \- Search / X](https://twitter.com/search?q=%E7%A0%94%E7%A9%B6%E5%AE%A4%E3%80%80%E5%8F%A3%E3%82%B3%E3%83%9F%20-%E6%BA%80%E8%BC%89%20-%E5%AD%A6%E3%81%B9%E3%81%BE%E3%81%99)

### 海外

- [PI Review](https://pi-review.com/): 231 reviews (2021/09/21)
- [GradPI](https://www.gradpi.com/): 329 reviews (2023/09/21), Must have a .edu or .ac.uk domain email address to even view the site.
- [RMGA](https://ratemygradadvisor.com/): 3 reviews? (2021/09/21)
- ratemypi.com, qcist.com: リンク切れ
- [한국에너지공과대학교 에너지공학부 구근호 \- 김박사넷](https://phdkim.net/professor/9877/info): かなり多い(1000以上?)

[pi rate website phd site:www\.reddit\.com \- Google Search](https://www.google.com/search?q=pi+rate+website+phd)

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- prettier-ignore-start -->
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- markdownlint-disable -->
<!-- markdownlint-enable -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
<!-- prettier-ignore-end -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/34j/lab-student-survey",
    "name": "lab-student-survey",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.13,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "34j",
    "author_email": "34j.95a2p@simplelogin.com",
    "download_url": "https://files.pythonhosted.org/packages/80/5b/3d70f2af8ebf5f62de873f4466f4a17cee78fc559eab202028262a99d61e/lab_student_survey-0.4.27.tar.gz",
    "platform": null,
    "description": "# Lab Student Survey\n\n<p align=\"center\">\n  <a href=\"https://github.com/34j/lab-student-survey/actions/workflows/ci.yml?query=branch%3Amain\">\n    <img src=\"https://img.shields.io/github/actions/workflow/status/34j/lab-student-survey/ci.yml?branch=main&label=CI&logo=github&style=flat-square\" alt=\"CI Status\" >\n  </a>\n  <a href=\"https://lab-student-survey.readthedocs.io\">\n    <img src=\"https://img.shields.io/readthedocs/lab-student-survey.svg?logo=read-the-docs&logoColor=fff&style=flat-square\" alt=\"Documentation Status\">\n  </a>\n  <a href=\"https://codecov.io/gh/34j/lab-student-survey\">\n    <img src=\"https://img.shields.io/codecov/c/github/34j/lab-student-survey.svg?logo=codecov&logoColor=fff&style=flat-square\" alt=\"Test coverage percentage\">\n  </a>\n</p>\n<p align=\"center\">\n  <a href=\"https://python-poetry.org/\">\n    <img src=\"https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJJSURBVHgBfZLPa1NBEMe/s7tNXoxW1KJQKaUHkXhQvHgW6UHQQ09CBS/6V3hKc/AP8CqCrUcpmop3Cx48eDB4yEECjVQrlZb80CRN8t6OM/teagVxYZi38+Yz853dJbzoMV3MM8cJUcLMSUKIE8AzQ2PieZzFxEJOHMOgMQQ+dUgSAckNXhapU/NMhDSWLs1B24A8sO1xrN4NECkcAC9ASkiIJc6k5TRiUDPhnyMMdhKc+Zx19l6SgyeW76BEONY9exVQMzKExGKwwPsCzza7KGSSWRWEQhyEaDXp6ZHEr416ygbiKYOd7TEWvvcQIeusHYMJGhTwF9y7sGnSwaWyFAiyoxzqW0PM/RjghPxF2pWReAowTEXnDh0xgcLs8l2YQmOrj3N7ByiqEoH0cARs4u78WgAVkoEDIDoOi3AkcLOHU60RIg5wC4ZuTC7FaHKQm8Hq1fQuSOBvX/sodmNJSB5geaF5CPIkUeecdMxieoRO5jz9bheL6/tXjrwCyX/UYBUcjCaWHljx1xiX6z9xEjkYAzbGVnB8pvLmyXm9ep+W8CmsSHQQY77Zx1zboxAV0w7ybMhQmfqdmmw3nEp1I0Z+FGO6M8LZdoyZnuzzBdjISicKRnpxzI9fPb+0oYXsNdyi+d3h9bm9MWYHFtPeIZfLwzmFDKy1ai3p+PDls1Llz4yyFpferxjnyjJDSEy9CaCx5m2cJPerq6Xm34eTrZt3PqxYO1XOwDYZrFlH1fWnpU38Y9HRze3lj0vOujZcXKuuXm3jP+s3KbZVra7y2EAAAAAASUVORK5CYII=\" alt=\"Poetry\">\n  </a>\n  <a href=\"https://github.com/ambv/black\">\n    <img src=\"https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square\" alt=\"black\">\n  </a>\n  <a href=\"https://github.com/pre-commit/pre-commit\">\n    <img src=\"https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square\" alt=\"pre-commit\">\n  </a>\n</p>\n<p align=\"center\">\n  <a href=\"https://pypi.org/project/lab-student-survey/\">\n    <img src=\"https://img.shields.io/pypi/v/lab-student-survey.svg?logo=python&logoColor=fff&style=flat-square\" alt=\"PyPI Version\">\n  </a>\n  <img src=\"https://img.shields.io/pypi/pyversions/lab-student-survey.svg?style=flat-square&logo=python&amp;logoColor=fff\" alt=\"Supported Python versions\">\n  <img src=\"https://img.shields.io/pypi/l/lab-student-survey.svg?style=flat-square\" alt=\"License\">\n</p>\n\nPython package for lab student survey.\nA single command fetches the spreadsheet generated from Google Forms and uploads the analysis results to Google Drive.\n\n## Usage\n\n- Create `student-lab-survey` (or any name) project in Google Cloud Platform.\n- Enable `Google Drive API` in Google Cloud Platform.\n- Create a `Service Account` in Google Cloud Platform.\n- Download the `Service Account` credentials as JSON in Google Cloud Platform and save it as `service-secrets.json` in the working directory or set it as `GDRIVE_SERVICE_ACCOUNT` environment variable (via GitHub Secrets).\n- Create `student-lab-survey` (or any name) folder in Google Drive.\n- Add the `Service Account` email to the `student-lab-survey` folder with `Editor` permissions.\n- Create a `Google Form` for the lab student survey. The second question should be the name of the supervisor.\n- Create a `Google Sheet` in the `student-lab-survey` folder from the `Google Form`.\n- Create `metadata.csv` and `metadata_group_name.csv` in the working directory or `student-lab-survey` folder in Google Drive to specify the question groups. The former will be automatically generated in the working directory if it does not exist. The latter is optional.\n\n### Environment Variables\n\n- Set the `Google Sheet` ID as `LAB_STUDENT_SURVEY_FILE_ID` environment variable (via GitHub Secrets).\n- Set the `student-lab-survey` folder ID as `LAB_STUDENT_SURVEY_FOLDER_ID` environment variable (via GitHub Secrets). (Optional.) If not set, the parent folder ID of the `Google Sheet` will be used.\n- (Set the `Service Account` credentials as `GDRIVE_SERVICE_ACCOUNT` environment variable (via GitHub Secrets).)\n\n### Running commands\n\n```shell\nlss\n```\n\n### Github Actions\n\n```yaml\nname: Run lab-student-survey\n\non:\n  schedule:\n    # every day at 00:00 UTC\n    - cron: \"0 0 * * *\"\n  workflow_dispatch:\n\njobs:\n  run:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - name: Install wkhtmltopdf\n        run: sudo apt-get install -y wkhtmltopdf\n      - name: Install and run lab-student-survey\n        run: pipx run lab-student-survey\n        env:\n          LAB_STUDENT_SURVEY_FILE_URL: ${{ secrets.LAB_STUDENT_SURVEY_FILE_URL }}\n          LAB_STUDENT_SURVEY_FOLDER_URL: ${{ secrets.LAB_STUDENT_SURVEY_FOLDER_URL }}\n          GDRIVE_SERVICE_SECRETS: ${{ secrets.GDRIVE_SERVICE_SECRETS }}\n```\n\n## Installation\n\nInstall this via pip or pipx (or your favourite package manager):\n\n```shell\npipx install lab-student-survey\n```\n\n## Alternatives\n\nAs far as I could find, there is no repository on GitHub for this particular topic. Instead, you may want to check out the following alternative websites. However, as there are too few people in a lab, with the effect of diminishing anonymity, most of these websites do not seem to attract many reviews.\n\n### \u56fd\u5185\n\n- [\u7406\u7cfb\u7814\u7a76\u5ba4\u306e\u30af\u30c1\u30b3\u30df\u30b5\u30a4\u30c8\uff5cOpenLab](https://openlabmg.com/): **\u52df\u96c6\u505c\u6b62\u4e2d**, \u6295\u7a3f\u3059\u308b\u3068Amazon\u30ae\u30d5\u30c8\u5238\uff08100\u5186\uff09\u304c\u3082\u3089\u3048\u308b, \u307b\u3068\u3093\u3069\u60c5\u5831\u306a\u3057(100\u7a0b\u5ea6?)\n- [LabBase \u7814\u7a76\u5ba4\u30b5\u30fc\u30c1](https://lab-search.app.labbase.jp/): **\u5165\u529b\u65b9\u6cd5\u4e0d\u660e**, \u4e0a\u3088\u308a\u3082\u60c5\u5831\u306a\u3057\n- [\u7814\u7a76\u5ba4\u30ca\u30d3](http://kenkyu-navi.com): \u30ea\u30f3\u30af\u5207\u308c [Forms](https://docs.google.com/forms/d/1s-c8tGOCGLv35KimBo9U7d3MKPyXpDl_QcHLozppAgM/viewform?edit_requested=true)\n\n[\u7814\u7a76\u5ba4\u3000\u53e3\u30b3\u30df \\-\u6e80\u8f09 \\-\u5b66\u3079\u307e\u3059 \\- Search / X](https://twitter.com/search?q=%E7%A0%94%E7%A9%B6%E5%AE%A4%E3%80%80%E5%8F%A3%E3%82%B3%E3%83%9F%20-%E6%BA%80%E8%BC%89%20-%E5%AD%A6%E3%81%B9%E3%81%BE%E3%81%99)\n\n### \u6d77\u5916\n\n- [PI Review](https://pi-review.com/): 231 reviews (2021/09/21)\n- [GradPI](https://www.gradpi.com/): 329 reviews (2023/09/21), Must have a .edu or .ac.uk domain email address to even view the site.\n- [RMGA](https://ratemygradadvisor.com/): 3 reviews? (2021/09/21)\n- ratemypi.com, qcist.com: \u30ea\u30f3\u30af\u5207\u308c\n- [\ud55c\uad6d\uc5d0\ub108\uc9c0\uacf5\uacfc\ub300\ud559\uad50 \uc5d0\ub108\uc9c0\uacf5\ud559\ubd80 \uad6c\uadfc\ud638 \\- \uae40\ubc15\uc0ac\ub137](https://phdkim.net/professor/9877/info): \u304b\u306a\u308a\u591a\u3044(1000\u4ee5\u4e0a?)\n\n[pi rate website phd site:www\\.reddit\\.com \\- Google Search](https://www.google.com/search?q=pi+rate+website+phd)\n\n## Contributors \u2728\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- prettier-ignore-start -->\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- markdownlint-disable -->\n<!-- markdownlint-enable -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n<!-- prettier-ignore-end -->\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python package for lab student survey",
    "version": "0.4.27",
    "project_urls": {
        "Bug Tracker": "https://github.com/34j/lab-student-survey/issues",
        "Changelog": "https://github.com/34j/lab-student-survey/blob/main/CHANGELOG.md",
        "Documentation": "https://lab-student-survey.readthedocs.io",
        "Homepage": "https://github.com/34j/lab-student-survey",
        "Repository": "https://github.com/34j/lab-student-survey"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b9a8cdb17594915bb686d5b101e15087b4e1a9d27731691179a86b45bbaa137",
                "md5": "93d0aecc81d72e53dadc777a48dd9ece",
                "sha256": "37a1b0580d7e91102ce06825c2d3b244355181454e2e49b73da72cc9acb0fc74"
            },
            "downloads": -1,
            "filename": "lab_student_survey-0.4.27-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "93d0aecc81d72e53dadc777a48dd9ece",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.13,>=3.9",
            "size": 13793,
            "upload_time": "2024-11-15T10:02:14",
            "upload_time_iso_8601": "2024-11-15T10:02:14.977343Z",
            "url": "https://files.pythonhosted.org/packages/8b/9a/8cdb17594915bb686d5b101e15087b4e1a9d27731691179a86b45bbaa137/lab_student_survey-0.4.27-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "805b3d70f2af8ebf5f62de873f4466f4a17cee78fc559eab202028262a99d61e",
                "md5": "dcd95bfa0b49cd393a83464a1ad9601c",
                "sha256": "087c341e4704bf1fd8126cbe795307789dd0864458cbabdffec2f4e623e47e93"
            },
            "downloads": -1,
            "filename": "lab_student_survey-0.4.27.tar.gz",
            "has_sig": false,
            "md5_digest": "dcd95bfa0b49cd393a83464a1ad9601c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.13,>=3.9",
            "size": 15755,
            "upload_time": "2024-11-15T10:02:16",
            "upload_time_iso_8601": "2024-11-15T10:02:16.520861Z",
            "url": "https://files.pythonhosted.org/packages/80/5b/3d70f2af8ebf5f62de873f4466f4a17cee78fc559eab202028262a99d61e/lab_student_survey-0.4.27.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-15 10:02:16",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "34j",
    "github_project": "lab-student-survey",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "lab-student-survey"
}
        
34j
Elapsed time: 1.56286s