Skip to main content

A python client for the refine.bio API.

Project description

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!

import pyrefinebio

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

See the documentation 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
  • 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.

Generating the Docs

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

I recommend setting up a virtual environment before installing the requirements, but that step is optional.

To install the requirements:

$ 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrefinebio-0.4.11.tar.gz (43.8 kB view details)

Uploaded Source

Built Distribution

pyrefinebio-0.4.11-py3-none-any.whl (66.8 kB view details)

Uploaded Python 3

File details

Details for the file pyrefinebio-0.4.11.tar.gz.

File metadata

  • Download URL: pyrefinebio-0.4.11.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for pyrefinebio-0.4.11.tar.gz
Algorithm Hash digest
SHA256 ac314a7e4ab4e4edd665e4242a3423712504d4497cd6f1b39d89cea02b60be2c
MD5 f858c1725b24006a9e61daa19d4c387c
BLAKE2b-256 67c8749c19dd95236917ee6ebab6edf24df0531e09b70fccb228b46057d3f84e

See more details on using hashes here.

File details

Details for the file pyrefinebio-0.4.11-py3-none-any.whl.

File metadata

  • Download URL: pyrefinebio-0.4.11-py3-none-any.whl
  • Upload date:
  • Size: 66.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for pyrefinebio-0.4.11-py3-none-any.whl
Algorithm Hash digest
SHA256 7229ce0fe41dccf75495ab40c6149a4dda07f06c30370201f9c060faef5dc255
MD5 52f8dd4038b2870a6fbb2fe8b65300d4
BLAKE2b-256 2da92d6827c791f0f5f828e1f8c13e979faedf6604f473c5a4bf4ee29cfbc284

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page