tidepool-data-science-project


Nametidepool-data-science-project JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/miriamkw/data-science-tidepool-api-python
SummaryPython repository to facilitate using the Tidepool API (forked).
upload_time2023-10-15 09:58:10
maintainer
docs_urlNone
authorYour Name
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements black coverage flake8 matplotlib mypy numpy pandas pip-chill plotly pre-commit pytest python-dotenv requests scipy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Tidepool API - Data Science Python Bindings

#### -- Project Status: Active
#### -- Project Disclaimer: This work is for Development

## Project Objective
The purpose of this project is to

* Expose in an organized way the Tidepool API in Python
* Support data science tasks and projects that use Tidepool data


## Project Description

This project is a large refactor of Data Science code integrating with and using the 
Tidepool API.


## Getting Started with this project

Tidepool API

See `tidepool_api.py` for class representing the api. Code example of downloading health data for a user:

```
from data_science_tidepool_api_python.makedata.tidepool_api import TidepoolAPI

tp_api = TidepoolAPI(username, password)
tp_api.login()
user_data = tp_api.get_user_event_data()
tp_api.logout()
```

Projects using the API:

The Tidepool Big Data Donation Project data science code lives in `projects/tbddp`.
The Tidepool Period Project data science code lives in `projects/tbddp`


## Contributing Guide
1. All are welcome to contribute to this project.
1. Naming convention for notebooks is
`[short_description]-[initials]-[date_created]-[version]`,
e.g. `initial_data_exploration-jqp-2020-04-25-v-0-1-0.ipynb`.
A short `_` delimited description, the creator's initials, date of creation, and a version number,
1. Naming convention for data files, figures, and tables is
`[PHI (if applicable)]-[short_description]-[date created or downloaded]-[code_version]`,
e.g. `raw_project_data_from_mnist-2020-04-25-v-0-1-0.csv`,
or `project_data_figure-2020-04-25-v-0-1-0.png`.

NOTE: PHI data is never stored in github and the .gitignore file includes this requirement as well.


## Tidepool Data Science Team
|Name (with github link)    |  [Tidepool Slack](https://tidepoolorg.slack.com/)   |
|---------|-----------------|
|[Cameron Summers](https://github.com/[scaubrey]) |  @Cameron Summers    |


### Technologies (Update this list)
* Python (99% of the time)
* [Anaconda](https://www.anaconda.com/) for our virtual environments
* Pandas for working with data (99% of the time)
* Google Colab for sharing examples
* Pytest for testing
* Travis for continuous integration testing
* Black for code style
* Flake8 for linting
* [Sphinx](https://www.sphinx-doc.org/en/master/) for documentation
* Numpy docstring format
* pre-commit for githooks

## Getting Started with the Conda Virtual Environment
1. Install [Miniconda](https://conda.io/miniconda.html). CAUTION for python virtual env users: Anaconda will automatically update your .bash_profile
so that conda is launched automatically when you open a terminal. You can deactivate with the command `conda deactivate`
or you can edit your bash_profile.
2. If you are new to [Anaconda](https://docs.anaconda.com/anaconda/user-guide/getting-started/)
check out their getting started docs.
3. If you want the pre-commit githooks to install automatically, then following these
[directions](https://pre-commit.com/#automatically-enabling-pre-commit-on-repositories).
4. Clone this repo (for help see this [tutorial](https://help.github.com/articles/cloning-a-repository/)).
5. In a terminal, navigate to the directory where you cloned this repo.
6. Run `conda update -n base -c defaults conda` to update to the latest version of conda
7. Run `conda env create -f conda-environment.yml --name [input-your-env-name-here]`. This will download all of the package dependencies
and install them in a conda (python) virtual environment. (Insert your conda env name in the brackets. Do not include the brackets)
8. Run `conda env list` to get a list of conda environments and select the environment
that was created from the environmental.yml file (hint: environment name is at the top of the file)
9. Run `conda activate <conda-env-name>` or `source activate <conda-env-name>` to start the environment.
10. If you did not setup your global git-template to automatically install the pre-commit githooks, then
run `pre-commit install` to enable the githooks.
11. Run `deactivate` to stop the environment.

## Maintaining Compatability with venv and virtualenv
This may seem counterintuitive, but when you are loading new packages into your conda virtual environment,
load them in using `pip`, and export your environment using `pip-chill > requirements.txt`.
We take this approach to make our code compatible with people that prefer to use venv or virtualenv.
This may also make it easier to convert existing packages into pypi packages. We only install packages directly
in conda using the conda-environment.yml file when packages are not available via pip (e.g., R and plotly-orca).

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/miriamkw/data-science-tidepool-api-python",
    "name": "tidepool-data-science-project",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Your Name",
    "author_email": "YourName@tidepool.org",
    "download_url": "https://files.pythonhosted.org/packages/94/ad/366a0e5e7cae82cce4153a6f9ad25e3e3f2405aefaaf4edac50c47238954/tidepool_data_science_project-0.0.3.tar.gz",
    "platform": null,
    "description": "# Tidepool API - Data Science Python Bindings\n\n#### -- Project Status: Active\n#### -- Project Disclaimer: This work is for Development\n\n## Project Objective\nThe purpose of this project is to\n\n* Expose in an organized way the Tidepool API in Python\n* Support data science tasks and projects that use Tidepool data\n\n\n## Project Description\n\nThis project is a large refactor of Data Science code integrating with and using the \nTidepool API.\n\n\n## Getting Started with this project\n\nTidepool API\n\nSee `tidepool_api.py` for class representing the api. Code example of downloading health data for a user:\n\n```\nfrom data_science_tidepool_api_python.makedata.tidepool_api import TidepoolAPI\n\ntp_api = TidepoolAPI(username, password)\ntp_api.login()\nuser_data = tp_api.get_user_event_data()\ntp_api.logout()\n```\n\nProjects using the API:\n\nThe Tidepool Big Data Donation Project data science code lives in `projects/tbddp`.\nThe Tidepool Period Project data science code lives in `projects/tbddp`\n\n\n## Contributing Guide\n1. All are welcome to contribute to this project.\n1. Naming convention for notebooks is\n`[short_description]-[initials]-[date_created]-[version]`,\ne.g. `initial_data_exploration-jqp-2020-04-25-v-0-1-0.ipynb`.\nA short `_` delimited description, the creator's initials, date of creation, and a version number,\n1. Naming convention for data files, figures, and tables is\n`[PHI (if applicable)]-[short_description]-[date created or downloaded]-[code_version]`,\ne.g. `raw_project_data_from_mnist-2020-04-25-v-0-1-0.csv`,\nor `project_data_figure-2020-04-25-v-0-1-0.png`.\n\nNOTE: PHI data is never stored in github and the .gitignore file includes this requirement as well.\n\n\n## Tidepool Data Science Team\n|Name (with github link)    |  [Tidepool Slack](https://tidepoolorg.slack.com/)   |\n|---------|-----------------|\n|[Cameron Summers](https://github.com/[scaubrey]) |  @Cameron Summers    |\n\n\n### Technologies (Update this list)\n* Python (99% of the time)\n* [Anaconda](https://www.anaconda.com/) for our virtual environments\n* Pandas for working with data (99% of the time)\n* Google Colab for sharing examples\n* Pytest for testing\n* Travis for continuous integration testing\n* Black for code style\n* Flake8 for linting\n* [Sphinx](https://www.sphinx-doc.org/en/master/) for documentation\n* Numpy docstring format\n* pre-commit for githooks\n\n## Getting Started with the Conda Virtual Environment\n1. Install [Miniconda](https://conda.io/miniconda.html). CAUTION for python virtual env users: Anaconda will automatically update your .bash_profile\nso that conda is launched automatically when you open a terminal. You can deactivate with the command `conda deactivate`\nor you can edit your bash_profile.\n2. If you are new to [Anaconda](https://docs.anaconda.com/anaconda/user-guide/getting-started/)\ncheck out their getting started docs.\n3. If you want the pre-commit githooks to install automatically, then following these\n[directions](https://pre-commit.com/#automatically-enabling-pre-commit-on-repositories).\n4. Clone this repo (for help see this [tutorial](https://help.github.com/articles/cloning-a-repository/)).\n5. In a terminal, navigate to the directory where you cloned this repo.\n6. Run `conda update -n base -c defaults conda` to update to the latest version of conda\n7. Run `conda env create -f conda-environment.yml --name [input-your-env-name-here]`. This will download all of the package dependencies\nand install them in a conda (python) virtual environment. (Insert your conda env name in the brackets. Do not include the brackets)\n8. Run `conda env list` to get a list of conda environments and select the environment\nthat was created from the environmental.yml file (hint: environment name is at the top of the file)\n9. Run `conda activate <conda-env-name>` or `source activate <conda-env-name>` to start the environment.\n10. If you did not setup your global git-template to automatically install the pre-commit githooks, then\nrun `pre-commit install` to enable the githooks.\n11. Run `deactivate` to stop the environment.\n\n## Maintaining Compatability with venv and virtualenv\nThis may seem counterintuitive, but when you are loading new packages into your conda virtual environment,\nload them in using `pip`, and export your environment using `pip-chill > requirements.txt`.\nWe take this approach to make our code compatible with people that prefer to use venv or virtualenv.\nThis may also make it easier to convert existing packages into pypi packages. We only install packages directly\nin conda using the conda-environment.yml file when packages are not available via pip (e.g., R and plotly-orca).\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Python repository to facilitate using the Tidepool API (forked).",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/miriamkw/data-science-tidepool-api-python"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b3454c36072b79d15816e6d962178fd36e4161ddf09cd54125c83cd578cb56a7",
                "md5": "8015c34e31c4a88e650c8f109db2d9d5",
                "sha256": "cb2276056924a1b96740430805ba4da1da47b68971faad098f0fed94e915b8d8"
            },
            "downloads": -1,
            "filename": "tidepool_data_science_project-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8015c34e31c4a88e650c8f109db2d9d5",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 14515,
            "upload_time": "2023-10-15T09:58:09",
            "upload_time_iso_8601": "2023-10-15T09:58:09.137814Z",
            "url": "https://files.pythonhosted.org/packages/b3/45/4c36072b79d15816e6d962178fd36e4161ddf09cd54125c83cd578cb56a7/tidepool_data_science_project-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "94ad366a0e5e7cae82cce4153a6f9ad25e3e3f2405aefaaf4edac50c47238954",
                "md5": "4083edb71fc5e071ba317e05f18323c5",
                "sha256": "ef9d6d68f0ae105578d46f8fec6a491755c9f0a40b7678b95c45eb5cb2e5dd8b"
            },
            "downloads": -1,
            "filename": "tidepool_data_science_project-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "4083edb71fc5e071ba317e05f18323c5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 14289,
            "upload_time": "2023-10-15T09:58:10",
            "upload_time_iso_8601": "2023-10-15T09:58:10.413174Z",
            "url": "https://files.pythonhosted.org/packages/94/ad/366a0e5e7cae82cce4153a6f9ad25e3e3f2405aefaaf4edac50c47238954/tidepool_data_science_project-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-15 09:58:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "miriamkw",
    "github_project": "data-science-tidepool-api-python",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "black",
            "specs": [
                [
                    "==",
                    "19.10b0"
                ]
            ]
        },
        {
            "name": "coverage",
            "specs": [
                [
                    "==",
                    "5.1"
                ]
            ]
        },
        {
            "name": "flake8",
            "specs": [
                [
                    "==",
                    "3.7.9"
                ]
            ]
        },
        {
            "name": "matplotlib",
            "specs": [
                [
                    "==",
                    "3.2.1"
                ]
            ]
        },
        {
            "name": "mypy",
            "specs": [
                [
                    "==",
                    "0.770"
                ]
            ]
        },
        {
            "name": "numpy",
            "specs": [
                [
                    "==",
                    "1.18.1"
                ]
            ]
        },
        {
            "name": "pandas",
            "specs": [
                [
                    "==",
                    "1.0.3"
                ]
            ]
        },
        {
            "name": "pip-chill",
            "specs": [
                [
                    "==",
                    "1.0.0"
                ]
            ]
        },
        {
            "name": "plotly",
            "specs": [
                [
                    "==",
                    "4.6.0"
                ]
            ]
        },
        {
            "name": "pre-commit",
            "specs": [
                [
                    "==",
                    "2.2.0"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": [
                [
                    "==",
                    "5.4.1"
                ]
            ]
        },
        {
            "name": "python-dotenv",
            "specs": [
                [
                    "==",
                    "0.13.0"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.23.0"
                ]
            ]
        },
        {
            "name": "scipy",
            "specs": [
                [
                    "==",
                    "1.4.1"
                ]
            ]
        }
    ],
    "tox": true,
    "lcname": "tidepool-data-science-project"
}
        
Elapsed time: 0.35807s