synbiohub_adapter is a Python 3 package that provides an API to SynBioHub.
synbiohub_adapter is not compatible with Python 2.
To install the current release of synbiohub_adapter:
pip3 install git+https://github.com/SD2E/synbiohub_adapter.git@v1.3
You can also install from a git clone:
pip3 install .
If you would like to install synbiohub_adapter so that changes to the source will be represented in the imported code without having to re-install, run this command:
pip3 install -e .
Running tests requires the user provide a password for SynBioHub through the SBH_PASSWORD
environment variable, e.g.
SBH_PASSWORD=<pword> python3 -m unittest discover tests
The tests include a check for conformance with Python style best-practices. If a new style violation is introduced into the code base, the test will fail. To diagnose this failure, run the following test:
VERBOSE=1 python3 -m unittest tests/test_pycodestyle.py
Run bash in docker container:
docker-compose run --rm synbiohub_adapter bash