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.6.tar.gz
(1.1 MB
view details)
Built Distribution
itkdb-0.2.6-py2.py3-none-any.whl
(13.0 kB
view details)
File details
Details for the file itkdb-0.2.6.tar.gz
.
File metadata
- Download URL: itkdb-0.2.6.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0caef104dd3030005793ec65c3ae0287dbf0c221c4798e847a05a34ffd93504 |
|
MD5 | 87276c33fd6be8befb5517fed289adbc |
|
BLAKE2b-256 | 942967d64df3e34a8f1d9365dfd9e8d4f37fc3026af8904c2e60c8f4d8980233 |
File details
Details for the file itkdb-0.2.6-py2.py3-none-any.whl
.
File metadata
- Download URL: itkdb-0.2.6-py2.py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1938b4088491c6f920d813b68c2af98e1177424004bfa2cc8f5faec9894dd0a8 |
|
MD5 | 312f50233e89d00c4b342de4a16f9853 |
|
BLAKE2b-256 | 3d2ebdde397585d977fea098f22c5940a84e4659c976aa869824cf87675a1fd0 |