pydplace
A Python library to curate D-PLACE data.
To install pydplace run
pip install pydplace
Usage
Bootstrapping a pydplace-curated dataset
pydplace provides a cldfbench dataset template to create the skeleton of files and directories for a
D-PLACE dataset, to be run with cldfbench new.
Running
cldfbench new --template dplace_dataset
will create a dataset skeleton looking as follows
$ tree testtree/
Implementing CLDF creation
Implementing CLDF creation means - as for any other cldfbench-curated dataset - filling in the
cmd_makecldf method of the Dataset subclass in cldfbench_<id>.py.
Running CLDF creation
With cmd_makecldf implemented, CLDF creation can be triggered running
cldfbench makecldf cldfbench_<id>.py
The resulting CLDF dataset can be validated running
pytest
Release workflow
cldfbench makecldf --glottolog-version v5.0 --with-cldfreadme cldfbench_<id>.py
pytest
Now inspect the changes and add a corresponding section to CHANGELOG.md.
cldfbench zenodo --communities dplace cldfbench_<id>.py
cldfbench cldfviz.map cldf --pacific-centered --format png --width 20 --output map.png --with-ocean --no-legend
cldfbench readme cldfbench_<id>.py
dplace check cldfbench_<id>.py
git commit -a -m"release v3.1"
git push origin
dplace release cldfbench_<id>.py v3.1
Then create a release on GitHub, thereby pushing the repos to Zenodo.
Using the datasets
$ csvgrep -c Var_ID -m AnnualMeanTemperature cldf/data.csv | csvstat -c Value
4. "Value"
Type of data: Number
Contains null values: False
Unique values: 1649
Smallest value: -19,45
Largest value: 29,153
Sum: 32.700,717
Mean: 16,449
Median: 19,721
StDev: 9,684
Most common values: 14,392 (9x)
21,66 (6x)
6,96 (6x)
23,335 (5x)
21,619 (5x)
Row count: 1988
Metadata
Release files for pydplace 3.2.1
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 |
|---|---|---|---|---|
| pydplace-3.2.1.tar.gz | 388.7 kB | Without provenance | Details for pydplace-3.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydplace-3.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pydplace-3.2.1-py2.py3-none-any.whl |
Total release size: 783.5 kB
Release files / pydplace-3.2.1.tar.gz
| Download URL | pydplace-3.2.1.tar.gz |
|---|---|
| Size | 388.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67358c6c7d9d96049334e3c94ef17af5c9c2153008f3b6bc63a4b7d9bf37f584
|
|
BLAKE2b-256 checksum How to use checksums |
01f370c459a517ca932ed5f8326d505be60b8342c6d62f74ebbd07fce53be519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / pydplace-3.2.1-py2.py3-none-any.whl
| Download URL | pydplace-3.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 394.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b7a9f29d3cb578e3de9c01e150879d569f167a77d1ba654f5edd45b69322e4c3
|
|
BLAKE2b-256 checksum How to use checksums |
559805e33bd912a71a67f6f182f1f0c08aeaba808e38abe692190c486be7d885
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for pydplace 3.2.1
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.