Skip to main content

The SolveBio Python client (DEPRECATED)

Project description

SolveBio Python Package

SolveBio Python Client

This package is deprecated. Please install and use quartzbio instead:

pip install quartzbio

This package will no longer be maintained after March 31, 2026.

Migration guide: https://github.com/quartzbio/quartzbio-python

This is the SolveBio Python package and command-line interface (CLI). This module is tested against Python 2.7, 3.6, 3.7, 3.8, 3.10, PyPy and PyPy3.

Developer documentation is available at docs.solvebio.com. For more information about SolveBio visit www.solvebio.com.

Installation & Setup

Install solvebio using pip:

pip install solvebio

For interactive use, we recommend installing IPython and gnureadline:

pip install ipython
pip install gnureadline

To log in, type:

solvebio login

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

Install from Git

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

Development

git clone https://github.com/solvebio/solvebio-python.git
cd solve-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 solvebio-python to PyPI with the following steps:

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

Support

Developer documentation is available at docs.solvebio.com.

If you experience problems with this package, please create a GitHub Issue.

For all other requests, please email SolveBio Support.

Configuring the Client

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

SOLVEBIO_API_HOST

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

SOLVEBIO_ACCESS_TOKEN

  • The OAuth2 access token for authenticating with the API.

SOLVEBIO_API_KEY

  • The API Key to use for authenticating with the API.

The lookup order for credentials is:

  1. Access Token
  2. API Key
  3. Local Credentials file

SOLVEBIO_LOGLEVEL

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

SOLVEBIO_LOGFILE

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

SOLVEBIO_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.

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

solvebio-2.35.0.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

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

solvebio-2.35.0-py3-none-any.whl (2.9 MB view details)

Uploaded Python 3

File details

Details for the file solvebio-2.35.0.tar.gz.

File metadata

  • Download URL: solvebio-2.35.0.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for solvebio-2.35.0.tar.gz
Algorithm Hash digest
SHA256 d4548042e8939f06b63ddc8af9f9649adcbba0001b1652ba99f4e3f24787057e
MD5 e1f1a1c7ffa2ce1111432def0958c6ef
BLAKE2b-256 6b2585f39b95622909a352186aa640b5fa04b4503b48fb809e2bcdac8387f58c

See more details on using hashes here.

File details

Details for the file solvebio-2.35.0-py3-none-any.whl.

File metadata

  • Download URL: solvebio-2.35.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for solvebio-2.35.0-py3-none-any.whl
Algorithm Hash digest
SHA256 888ca2a9003ccc37cddb7abb0e0fcddf2b735a2887a83ccaf03359b43895a3e0
MD5 b97cec400cc79676941b11c2424f0255
BLAKE2b-256 2f1109ca024ef5d905708c2cfb4106e051faa88f5fdc0cdb294d3a4b15c71c57

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