pyglottography
Programmatic curation of Glottography datasets
Installation
Install via pip from PyPI:
pip install pyglottography
[!NOTE] We use GDAL's ogr2ogr command to convert between GeoJSON and GeoPackage formats. Thus, some functionality of
pyglottographyrequires a working GDAL installation.
Curating Glottography datasets with pyglottography
Bootstrapping a new dataset
pyglottography provides a cldfbench project template,
which can be used with the cldfbench new command:
cldfbench new --template glottography
Providing the raw data
The cldfbench workflow uses data in a project's raw directory - enriched with information from
etc - to create a CLDF dataset in the cldf directory. By default, pyglottography expects input
data as follows:
- Geo-data, i.e. shapes for languoid areas, is expected in a GeoJSON file
raw/dataset.geojson. Each feature in thie GeoJSON file should have a unique value for theidproperty. - Metadata about the shapes is expected in a CSV file
etc/features.csv. This file must have anidcolumn with values corresponding to the featureids in the geo-data.
While metadata could be read entirely from the properties object of features in the GeoJSON file,
pyglottography looks up the metadata in a different file to allow for more transparent curation.
Since the Glottolog language catalog is released in a new version about twice a year, it is necessary
to be able to recreate a Glottography dataset with updated Glottocodes. With the raw data setup as
implemented in pyglottography, this only requires changes in etc/features.csv, which can easily
be tracked with versioning software such as git.
Running the CLDF creation
cldfbench makecldf cldfbench_<dsid>.py
Metadata
Release files for pyglottography 2.0.3
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 |
|---|---|---|---|---|
| pyglottography-2.0.3.tar.gz | 26.9 kB | Without provenance | Details for pyglottography-2.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyglottography-2.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pyglottography-2.0.3-py2.py3-none-any.whl |
Total release size: 53.1 kB
Release files / pyglottography-2.0.3.tar.gz
| Download URL | pyglottography-2.0.3.tar.gz |
|---|---|
| Size | 26.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3eb0b8e0af1d187cd2421777297e4498cc83e3559fe26bddf30e08a211ff290
|
|
BLAKE2b-256 checksum How to use checksums |
6320ffaada6d36698606a9ac2567e9138b74f562796dbb9a809f3217f302e98c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / pyglottography-2.0.3-py2.py3-none-any.whl
| Download URL | pyglottography-2.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 26.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c4489f3db85406adb36e75c0348a150b2cda38f65d2e6a6543b7c64a166f5863
|
|
BLAKE2b-256 checksum How to use checksums |
da93e33f524944c31179cb3319de801b6b74d67dc2b4c576f45767245616f810
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for pyglottography 2.0.3
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.