Skip to main content

The QuartzBio Python client

Project description

QuartzBio Python Client

This is the QuartzBio Python package and command-line interface (CLI).

Installation & Setup

Install quartzbio using pip:

pip install quartzbio

For interactive use, we recommend installing IPython and gnureadline:

pip install ipython
pip install gnureadline

To log in, type:

quartzbio login

Enter your QuartzBio credentials and you should be good to go!

Install from Git

pip install -e git+https://github.com/quartzbio/quartzbio-python.git#egg=quartzbio

Development

git clone https://github.com/quartzbio/quartzbio-python.git
cd quartzbio-python/
python setup.py develop

or 

pip install -e .

Or install tox and run:

pip install tox
tox

Releasing

You will need to configure Twine in order to push to PyPI.

Maintainers can release quartzbio-python to PyPI with the following steps:

bumpversion <major|minor|patch>
git push --tags
make changelog
make release

Support

For requests, please email QuartzBio Product Support.

Configuring the QuartzBio Client

The QuartzBio python client can be configured by setting system environment variables. Supported environment variables are:

QUARTZBIO_API_HOST

  • The URL of the target API backend. If not specified the value from the local credentials file will be used.

QUARTZBIO_ACCESS_TOKEN

  • The OAuth2 access token for authenticating with the API.

The lookup order for credentials is:

  1. Access Token environment variable
  2. API Key environment variable
  3. Local Credentials file entry for the specific API host

QUARTZBIO_LOGLEVEL

  • The log level at which to log messages. If not specified the default log level will be WARN.

QUARTZBIO_LOGFILE

  • The file in which to write log messages. If the file does not exist it will be created. If not specified '~/.quartzbio/quartzbio-python.log' will be used by default.

QUARTZBIO_RETRY_ALL

  • Flag for enabling aggressive retries for failed requests to the API. When truthy, the client will attempt to retry a failed request regardless of the type of operation. This includes idempotent and nonidempotent operations: "HEAD", "GET", "PUT", "POST", "PATCH", "DELETE", "OPTIONS", "TRACE" If this value is not set it will default to false and retries will only be enabled for idempotent operations.

Documentation

Project documentation is powered by Sphinx + Sphinx Autobuild.

To build the docs locally and view them in a browser:

make sphinx-autobuild

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

quartzbio-1.3.0rc2.tar.gz (584.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quartzbio-1.3.0rc2-py3-none-any.whl (619.7 kB view details)

Uploaded Python 3

File details

Details for the file quartzbio-1.3.0rc2.tar.gz.

File metadata

  • Download URL: quartzbio-1.3.0rc2.tar.gz
  • Upload date:
  • Size: 584.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for quartzbio-1.3.0rc2.tar.gz
Algorithm Hash digest
SHA256 4268a8f29daa8ae9c34cf41d75582484f1d2e7de7238514552dbcd72bed72364
MD5 efa4bb5afae67e5208b051e167ee0190
BLAKE2b-256 cf79b0c5333131f1e405f99985426a3af042d016ac2b1189a6e82c0c1aa71801

See more details on using hashes here.

File details

Details for the file quartzbio-1.3.0rc2-py3-none-any.whl.

File metadata

  • Download URL: quartzbio-1.3.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 619.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for quartzbio-1.3.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 af7a1b82046a2350ac09a7f41fbfa6921ddacfdbdb8e2c05008d8506f5b79508
MD5 ffa98ebf6d50af0dd74a6541b3a90a89
BLAKE2b-256 f91d9c75bd9d0d720db9e67d633593731b9a1f1106480a306efd12ba1643198e

See more details on using hashes here.

Supported by

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