qri-python
██████╗ ██████╗ ██╗
██╔═══██╗██╔══██╗██║
██║ ██║██████╔╝██║
██║▄▄ ██║██╔══██╗██║
╚██████╔╝██║ ██║██║
╚══▀▀═╝ ╚═╝ ╚═╝╚═╝
Python client for qri ("query")
Installation
pip install qri
About
Python wrapper to enable usage of qri, the dataset toolchain. Can either use a locally installed qri command-line program to work with your local repository, or can directly get datasets from the Qri Cloud.
Dataset objects returned by this library have the components that exist in the standard qri model. The body is returned as a Pandas DataFrame in order to easily integrate with other data science systems, like Jupyter Notebook.
Usage
The following examples assume you have the latest release of the qri command-line client installed. You can get this from https://github.com/qri-io/qri/releases
import qri
# Pull a dataset from cloud and add it to your repository
$ qri.pull("b5/world_bank_population")
Fetching from registry...
"Added b5/world_bank_population: ..."
# List datasets in your repository
$ qri.list()
[Dataset("b5/world_bank_population")]
# Get that single dataset as a variable
$ d = qri.get("b5/world_bank_population")
# Look at metadata description
$ d.meta.description
( 1 ) United Nations Population Division. World Population Prospects: 2017 Revision...
# Get the dataset body as a pandas DataFrame
$ d.body
. country_name country_code indicator_name ...
0 Afghanistan AFG Population, total ...
...
TODO: Save changes
Metadata
Release files for qri 0.1.5
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 |
|---|---|---|---|---|
| qri-0.1.5.tar.gz | 9.4 kB | Without provenance | Details for qri-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qri-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for qri-0.1.5-py3-none-any.whl |
Total release size: 19.5 kB
Release files / qri-0.1.5.tar.gz
| Download URL | qri-0.1.5.tar.gz |
|---|---|
| Size | 9.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62878c66179c1f7b8fe2bfadfdb91f5e638b35d275d06b66dee87defe8bbfbd4
|
|
BLAKE2b-256 checksum How to use checksums |
5be9be21b3b04f715f73958f9c4abb1580d0f7480739f78c38006120efe0e971
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.8
|
Release files / qri-0.1.5-py3-none-any.whl
| Download URL | qri-0.1.5-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1547497430dd0a473512b069bdab2356c4e092bc393555227b4b897c89f68dc
|
|
BLAKE2b-256 checksum How to use checksums |
ded36c08c3311317092bbfd4d970a39ca03c8496453748a31dd32442e1ec93da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.8
|
Security for qri 0.1.5
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.