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 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.
QUARTZBIO_API_KEY
- The API Key to use for authenticating with the API. We strongly recommend using access tokens.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quartzbio-1.1.0.tar.gz.
File metadata
- Download URL: quartzbio-1.1.0.tar.gz
- Upload date:
- Size: 108.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bbddc96099fe057cede303bd4b6d2f77a943665615f595450510641dd011891
|
|
| MD5 |
ed520b9cb5e16253316c021f1fcfe3a4
|
|
| BLAKE2b-256 |
626f6beb2f73e2c34e189f768bc8fb766a46fd8fa5fbbcbf9a28b1f98218d743
|
File details
Details for the file quartzbio-1.1.0-py3-none-any.whl.
File metadata
- Download URL: quartzbio-1.1.0-py3-none-any.whl
- Upload date:
- Size: 139.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d07eda55ff8478419e027d142b54dd88abb83f596754505f0b8c0740392d0c12
|
|
| MD5 |
1433a47bc2bf9ebb31616af9b996d097
|
|
| BLAKE2b-256 |
3a832d7047f4f9be5fac9f89fdbba29faecbc6dbc7415415971293cf91ac9cd0
|