Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A python library to access Grambank data

Project description

pygrambank

Curation tools for Grambank data.

Build Status codecov PyPI

Install

pygrambank can be installed from PyPI via

pip install pygrambank

or from a clone of [glottobank/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 help <SUBCOMMAND>

e.g.

$ grambank help check

    grambank --repos PATH/TO/Grambank check
    
    Run data quality checks on a grambank repository.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pygrambank, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size pygrambank-1.0.0-py2.py3-none-any.whl (25.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size pygrambank-1.0.0.tar.gz (21.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page