Python wrapper to interface with ITk DB.
Project description
ITk DB
To install as a user
pip install itkdb
or if you wish to develop/contribute
git clone ...
cd production_database_scripts/
pip install -e .[develop]
or
git clone ...
cd production_database_scripts/
pip install -e .[complete]
Using
Command line available via
itkdb --help
Environment Variables
See itkdb/settings/base.py for all environment variables that can be set. All environment variables for this package are prefixed with ITKDB_
. As of now, there are:
ITKDB_ACCESS_CODE1
: access code #1 for authenticationITKDB_ACCESS_CODE2
: access code #2 for authenticationITKDB_AUTH_URL
: authentication serverITKDB_SITE_URL
: API serverITKDB_CASSETTE_LIBRARY_DIR
: for tests, where to store recorded requests/responses
Develop
Bump Version
Run bumpversion x.y.z
to bump to the next version. We will always tag any version we bump, and this creates the relevant commits/tags for you. All you need to do is git push --tags
and that should be it.
Examples
import itkdb
client = itkdb.Client()
comps = client.get(
'listComponents', json={'project': 'P', 'pageInfo': {'pageSize': 32}}
)
for i, comp in enumerate(comps):
print(i, comp['code'])
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
itkdb-0.2.1.tar.gz
(1.1 MB
view details)
Built Distribution
itkdb-0.2.1-py2.py3-none-any.whl
(12.7 kB
view details)
File details
Details for the file itkdb-0.2.1.tar.gz
.
File metadata
- Download URL: itkdb-0.2.1.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eeefed8ec68bd0eee0c27ed1c53fa73f317ba6eab7eb9a755f084b9c0791be0 |
|
MD5 | 9dd7a0260f23fae28e6385e0e7b9c74e |
|
BLAKE2b-256 | 2fac99596a098fb01170cd60e70c840b06b8993fe244a9a16c395ca2056ebd4f |
File details
Details for the file itkdb-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: itkdb-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 12.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb80f0ffe336a57cbbdbecac0d977e41e25b63f4ce5e3b2f9d73e9e2498760e4 |
|
MD5 | cea9600b84e3d62d689e0d5d6ab12127 |
|
BLAKE2b-256 | 88bc27125c3f4a6f101e7e834267212cad53ddf944eab881d8be42cb7405034a |