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:
- Access Token environment variable
- API Key environment variable
- 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
Metadata
Release files for quartzbio 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quartzbio-1.6.0.tar.gz | 584.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quartzbio-1.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / quartzbio-1.6.0.tar.gz
| Download URL | quartzbio-1.6.0.tar.gz |
|---|---|
| Size | 584.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3a60340396f3eb321fbfd16467affa5739e60905ae06e79591a9f7c4e08cb10
|
|
BLAKE2b-256 checksum How to use checksums |
0e082a0b2ec8e4b30fb2b3e4c3f0f68040b65c1e4c07878f0670ec336895ced6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|
Release files / quartzbio-1.6.0-py3-none-any.whl
| Download URL | quartzbio-1.6.0-py3-none-any.whl |
|---|---|
| Size | 619.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
498f96c24260795b6c5318ebb69bd8ffcab6610c925ca3f8d4cfe9c980e40817
|
|
BLAKE2b-256 checksum How to use checksums |
a11968b963215391a8bfb371cbac656b68baa233dcd07631edd5687ec4df0a14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.13
|