Dimcli
Dimcli is a Python client for accessing the Dimensions Analytics API. It makes it easier to authenticate against the API, send queries to it and process the JSON data being returned.
>>> import dimcli
>>> dimcli.login(key="private-key-here",
endpoint="https://app.dimensions.ai/api/dsl/v2")
>>> dsl = dimcli.Dsl()
>>> res = dsl.query("""search grants for "malaria" return researchers""")
>>> print(res.json)
{'researchers': [{'id': 'ur.01332073522.49',
'count': 75,
'last_name': 'White',
'first_name': 'Nicholas J'},
{'id': 'ur.01343654360.43',
'count': 59,
'last_name': 'Marsh',
'first_name': 'Kevin'},
.............
],
'_stats': {'total_count': 8735}}
CLI
Dimcli includes also a command line interface (CLI) that aims at simplifying the process of learning the grammar of the Dimensions Search Language (DSL).
Jupyter
Dimcli plays nice with Jupyter notebooks too. It comes with various magic commands for querying the API, transforming JSON data into dataframes and turning them into interactive tables with hyperlinks - so that data can be inspected further on external websites.
More info
For more information see the Getting Started with Dimcli tutorial.
Current version: see pypi homepage. Source code hosted on github.
Comments, bug reports
Dimcli lives on Github. You can file issues or pull requests there. Suggestions, pull requests and improvements welcome!
Metadata
Release files for dimcli 1.8
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 |
|---|---|---|---|---|
| dimcli-1.8.tar.gz | 218.9 kB | Without provenance | Details for dimcli-1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dimcli-1.8-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for dimcli-1.8-py2.py3-none-any.whl |
Total release size: 471.0 kB
Release files / dimcli-1.8.tar.gz
| Download URL | dimcli-1.8.tar.gz |
|---|---|
| Size | 218.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c15fff460f5a0c12cefe12fb55fe9aa246c1258738e5028f1f049963a691bb21
|
|
BLAKE2b-256 checksum How to use checksums |
8ee1910a6d6cc7b4cacb762c05ec798ce06d9fbb277f8c8dc50d8193b7c7b352
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.22
|
Release files / dimcli-1.8-py2.py3-none-any.whl
| Download URL | dimcli-1.8-py2.py3-none-any.whl |
|---|---|
| Size | 252.1 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d1cdb13e737592e6fc7c35b822dc68217835c40a5e1e3a9c0ac882103c2672d8
|
|
BLAKE2b-256 checksum How to use checksums |
4f296e345da74af99f39a35c1359e20a2e46c2a614e4bb9ffd00b73679b68a69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.22
|
Security for dimcli 1.8
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.