pygrambank
Curation tools for Grambank data.
Install
pygrambank can be installed from PyPI via
pip install pygrambank
or from a clone of [grambank/pygrambank]:
git clone ...
cd pygrambank
pip install -e .
You should install pygrambank in a virtual environment to make sure it does not mess with a system-wide Python installation.
CLI
Installing pygrambank will also install a command line program grambank. Data curation functionality is implemented as subcommands
of this program. To get information about available subcommands, run
grambank --help
More info on individual subcommands can be obtained running
grambank <SUBCOMMAND> -h
e.g.
$ grambank describe -h
usage: grambank describe [-h] [--columns] SHEET
Describe a (set of) sheets.
This includes checking for correctness - i.e. the functionality of `grambank check`.
While references will be parsed, the corresponding sources will **not** be looked up
in Glottolog (since this is slow). Thus, for a final check of a sheet, you must run
`grambank sourcelookup`.
positional arguments:
SHEET Path of a specific TSV file to check or substring of a filename
(e.g. a glottocode)
optional arguments:
-h, --help show this help message and exit
--columns List columns of the sheet (default: False)
API
pygrambank also allows programmatic access to Grambank data from Python
programs. All functionality is mediated through a pygrambank.Grambank
instance:
>>> from pygrambank import Grambank
>>> gb = Grambank('.')
>>> gb.sheets_dir
PosixPath('original_sheets')
>>> for sheet in gb.iter_sheets():
... print(sheet)
... break
...
original_sheets/AH_alag1248.tsv
Release files for pygrambank 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 | |
|---|---|---|---|
| pygrambank-2.1.tar.gz | 54.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygrambank-2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 113.5 kB
Release files / pygrambank-2.1.tar.gz
| Download URL | pygrambank-2.1.tar.gz |
|---|---|
| Size | 54.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f45dc5dd705f88238bba76994d40df2e80ea0b3867023f5e8dca4243139c68d0
|
|
BLAKE2b-256 checksum How to use checksums |
1f2b06844e2469e59ff1b49c828ca6c73b14a6adb351220c59d8e8a2ba7b1356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / pygrambank-2.1-py2.py3-none-any.whl
| Download URL | pygrambank-2.1-py2.py3-none-any.whl |
|---|---|
| Size | 59.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3b9edbbe5374fa17208b0e53d8c37e2b1ca0ee37f997b6787c941cfcb8bfe34f
|
|
BLAKE2b-256 checksum How to use checksums |
5714b496e487db8816826dcd14d168653d804637efd7b9b4b86dbf7b72628f2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|