PyPI - Version docs GitHub

Infer and validate data-type schemas in Python.

Installation#

pip install baskerville

Example#

# mascots.csv
Name,LOC,Species
Ferris,42,Crab
Corro,7,Urchin
>>> import baskerville
>>> fields = baskerville.infer_csv("mascots.csv")
>>> print(baskerville.display_fields(fields))
╭──────┬─────────┬─────────╮
│ Name │ LOC     │ Species │
├──────┼─────────┼─────────┤
│ Text │ Integer │ Text    │
│      │ Float   │         │
│      │ Text    │         │
╰──────┴─────────┴─────────╯

Contributing#

Versioning#

The repo bases versioning from Conventional Commits