pyrefinebio


Namepyrefinebio JSON
Version 0.4.11 PyPI version JSON
download
home_pagehttps://github.com/AlexsLemonade/refinebio-py
SummaryA python client for the refine.bio API.
upload_time2023-11-14 22:19:17
maintainer
docs_urlNone
authorChildhood Cancer Data Lab
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements click iso8601 pyrate-limiter pytimeparse PyYAML requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # refinebio-py

A python client for the refine.bio API.

## Usage

`pyrefinebio` can be installed via pip

```
$ pip install pyrefinebio
```

You can then import and start using it right away!

```python
import pyrefinebio

pyrefinebio.download_dataset(
    "./ds.zip",
    "foo@bar.com",
    dataset_dict={
        "SRP066781": ["ALL"]
    }
)
```

See the [documentation](https://alexslemonade.github.io/refinebio-py/index.html) for more help!

## Testing

Tests can be run with:

```
python -m unittest discover tests -b
```

## Releasing to PyPI

`pyrefinebio` can automatically be released to PyPI via a GitHub action.

To trigger the action, create a new release via GitHub:
- go to the [GitHub repo's release page](https://github.com/AlexsLemonade/refinebio-py/releases)
- click `Draft a new release`
- fill out the form
    - the Tag version should be in the form `vX.X.X`
- click `Publish release`
- the action should automatically be triggered

## Documentation

The docs are generated using [sphinx autodoc](https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html).

### Generating the Docs

Before you can generate the docs you must install pyrefienbio and sphinx requirements.

I recommend setting up a [virtual environment](https://docs.python.org/3/tutorial/venv.html)
before installing the requirements, but that step is optional.

To install the requirements:

```bash
$ pip install -r requirements.txt
$ pip install -r docs-requirements.txt
```

Then, to generate the docs navigate to `./docs` and run the command:

```
$ make html
```

The output will be in `./docs/_build`

Open `./docs/_build/html/*` in a browser to view the docs

### Deploying the Docs to Github Pages

First, set the variable `release` in `./docs/conf.py` to the correct version.

Then, clone the branch `gh-pages` into a folder `./doc-output`

You can use the following command to do this:

```
$ git clone --single-branch --branch gh-pages https://github.com/AlexsLemonade/refinebio-py.git doc-output
```

Navigate tho `./docs` and run the command:

```
$ make github
```

Navigate to `./doc-output` and commit and push any changes

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AlexsLemonade/refinebio-py",
    "name": "pyrefinebio",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Childhood Cancer Data Lab",
    "author_email": "ccdl@alexslemonade.org",
    "download_url": "https://files.pythonhosted.org/packages/67/c8/749c19dd95236917ee6ebab6edf24df0531e09b70fccb228b46057d3f84e/pyrefinebio-0.4.11.tar.gz",
    "platform": null,
    "description": "# refinebio-py\n\nA python client for the refine.bio API.\n\n## Usage\n\n`pyrefinebio` can be installed via pip\n\n```\n$ pip install pyrefinebio\n```\n\nYou can then import and start using it right away!\n\n```python\nimport pyrefinebio\n\npyrefinebio.download_dataset(\n    \"./ds.zip\",\n    \"foo@bar.com\",\n    dataset_dict={\n        \"SRP066781\": [\"ALL\"]\n    }\n)\n```\n\nSee the [documentation](https://alexslemonade.github.io/refinebio-py/index.html) for more help!\n\n## Testing\n\nTests can be run with:\n\n```\npython -m unittest discover tests -b\n```\n\n## Releasing to PyPI\n\n`pyrefinebio` can automatically be released to PyPI via a GitHub action.\n\nTo trigger the action, create a new release via GitHub:\n- go to the [GitHub repo's release page](https://github.com/AlexsLemonade/refinebio-py/releases)\n- click `Draft a new release`\n- fill out the form\n    - the Tag version should be in the form `vX.X.X`\n- click `Publish release`\n- the action should automatically be triggered\n\n## Documentation\n\nThe docs are generated using [sphinx autodoc](https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html).\n\n### Generating the Docs\n\nBefore you can generate the docs you must install pyrefienbio and sphinx requirements.\n\nI recommend setting up a [virtual environment](https://docs.python.org/3/tutorial/venv.html)\nbefore installing the requirements, but that step is optional.\n\nTo install the requirements:\n\n```bash\n$ pip install -r requirements.txt\n$ pip install -r docs-requirements.txt\n```\n\nThen, to generate the docs navigate to `./docs` and run the command:\n\n```\n$ make html\n```\n\nThe output will be in `./docs/_build`\n\nOpen `./docs/_build/html/*` in a browser to view the docs\n\n### Deploying the Docs to Github Pages\n\nFirst, set the variable `release` in `./docs/conf.py` to the correct version.\n\nThen, clone the branch `gh-pages` into a folder `./doc-output`\n\nYou can use the following command to do this:\n\n```\n$ git clone --single-branch --branch gh-pages https://github.com/AlexsLemonade/refinebio-py.git doc-output\n```\n\nNavigate tho `./docs` and run the command:\n\n```\n$ make github\n```\n\nNavigate to `./doc-output` and commit and push any changes\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "A python client for the refine.bio API.",
    "version": "0.4.11",
    "project_urls": {
        "Homepage": "https://github.com/AlexsLemonade/refinebio-py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2da92d6827c791f0f5f828e1f8c13e979faedf6604f473c5a4bf4ee29cfbc284",
                "md5": "52f8dd4038b2870a6fbb2fe8b65300d4",
                "sha256": "7229ce0fe41dccf75495ab40c6149a4dda07f06c30370201f9c060faef5dc255"
            },
            "downloads": -1,
            "filename": "pyrefinebio-0.4.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "52f8dd4038b2870a6fbb2fe8b65300d4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 66773,
            "upload_time": "2023-11-14T22:19:15",
            "upload_time_iso_8601": "2023-11-14T22:19:15.344517Z",
            "url": "https://files.pythonhosted.org/packages/2d/a9/2d6827c791f0f5f828e1f8c13e979faedf6604f473c5a4bf4ee29cfbc284/pyrefinebio-0.4.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67c8749c19dd95236917ee6ebab6edf24df0531e09b70fccb228b46057d3f84e",
                "md5": "f858c1725b24006a9e61daa19d4c387c",
                "sha256": "ac314a7e4ab4e4edd665e4242a3423712504d4497cd6f1b39d89cea02b60be2c"
            },
            "downloads": -1,
            "filename": "pyrefinebio-0.4.11.tar.gz",
            "has_sig": false,
            "md5_digest": "f858c1725b24006a9e61daa19d4c387c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 43763,
            "upload_time": "2023-11-14T22:19:17",
            "upload_time_iso_8601": "2023-11-14T22:19:17.019885Z",
            "url": "https://files.pythonhosted.org/packages/67/c8/749c19dd95236917ee6ebab6edf24df0531e09b70fccb228b46057d3f84e/pyrefinebio-0.4.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-14 22:19:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AlexsLemonade",
    "github_project": "refinebio-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "click",
            "specs": [
                [
                    "==",
                    "7.1.2"
                ]
            ]
        },
        {
            "name": "iso8601",
            "specs": [
                [
                    "==",
                    "0.1.16"
                ]
            ]
        },
        {
            "name": "pyrate-limiter",
            "specs": [
                [
                    "==",
                    "2.10.0"
                ]
            ]
        },
        {
            "name": "pytimeparse",
            "specs": [
                [
                    "==",
                    "1.1.8"
                ]
            ]
        },
        {
            "name": "PyYAML",
            "specs": [
                [
                    "==",
                    "5.3.1"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.24.0"
                ]
            ]
        }
    ],
    "lcname": "pyrefinebio"
}
        
Elapsed time: 0.19259s