pycites
pycites is a package to download and interact with the CITES Trade Database using Python. citesdb exists for R users to load and analzyes this data, so we wanted a way to do the same!
Currently very much a work in progress. Currently only downloads and loads data.
Installation
pip install pycites
Usage instructions
To download the CITES Trade Database and load into a dataframe, run the following in a Jupyter notebook or Python shell:
import pycites
pycites.get_data()
df = pycites.load_data()
This will download and extract the zip file from the CITES website, do some basic data validation (e.g. drop rows with missing or incorrect Years), and combine the data into a single compressed CSV file. This uses a decent amount of memory, so may cause issues on a machines with low resource.
Roadmap
- Release a CSV to make it easier for users to download and load data
- Experiement with other data formats for better memory usage of data (currently pretty high)
- Add a CLI for downloading data
- Include metadata and other useful information, like
citesdb - Add additional functionality for analysis (time series and network analyses), and integrate with other data sources (such as World Bank)
- Setup CI and testing
Metadata
Release files for pycites 0.1.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 |
|---|---|---|---|---|
| pycites-0.1.4.tar.gz | 5.5 kB | Without provenance | Details for pycites-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycites-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for pycites-0.1.4-py3-none-any.whl |
Total release size: 11.5 kB
Release files / pycites-0.1.4.tar.gz
| Download URL | pycites-0.1.4.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3217f0d80ed3ca7b430de66c98c1245390e4441b069e7bcabe82ce3e4cb92516
|
|
BLAKE2b-256 checksum How to use checksums |
5fc5fdf365256bebd3488469f2e5dfa73fe68570f32138222736cd7a34a931a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.2 Linux/5.4.0-107-generic
|
Release files / pycites-0.1.4-py3-none-any.whl
| Download URL | pycites-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f890a0efbacdf50bef1ba88782d575969ea420a17b61818acc139b15ad33044
|
|
BLAKE2b-256 checksum How to use checksums |
13d072b5a5dc8df63fe20418a918023b09d5d01130c2d2a95e259106bbb51d86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.2 Linux/5.4.0-107-generic
|
Security for pycites 0.1.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.