mytardisclient
Command Line Interface and Python classes for interacting with MyTardis’s REST API.
Install:
pip install mytardisclient
Install latest development version:
pip install git+https://github.com/mytardis/mytardisclient.git@master#egg=mytardisclient
Example
Determine the location of the configuration file where the MyTardis URL is specified:
>>> from mtclient.conf import config >>> config.path '/Users/james/.config/mytardisclient/mytardisclient.cfg' >>> config.url 'https://mytardis.example.com'
Use mytardisclient’s Dataset model class to look up a public dataset (with ID 125) from the MyTardis server, using its RESTful API:
>>> from mtclient.models.dataset import Dataset >>> Dataset.objects.get(id=125) <Dataset: Test Public Dataset1>
The syntax is intended to be similar to Django ORM syntax, however it is not nearly as powerful yet.
Tests
Tests can be run with:
pytest --cov=mtclient
or:
pytest --cov=mtclient --cov-report=html
Building Documentation
Documentation can be built with:
cd docs/ make html
Metadata
Release files for mytardisclient 0.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mytardisclient-0.3.4.tar.gz | 61.0 kB | Without provenance | Details for mytardisclient-0.3.4.tar.gz |
Release files / mytardisclient-0.3.4.tar.gz
| Download URL | mytardisclient-0.3.4.tar.gz |
|---|---|
| Size | 61.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fddeefc9cf639cddb7d2fec3c0c83b5eb8d047edcaa6bdac9868090b6fc518d
|
|
BLAKE2b-256 checksum How to use checksums |
5a8f02ce6eadae807907f890e1fc882884cee9d6d2dc0d3995e090348b3af8d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|
Security for mytardisclient 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.