Utilities for loading data into Sparrow
Project description
sparrow.loader
The sparrow.loader
module helps you prepare data for loading
into the Sparrow geochemistry database system.
When disconnected from a database, it can be used to check that data is ready to be imported into a standard installation of Sparrow.
If connected to a Sparrow installation's PostgreSQL database, the module can be used to insert data into the appropriate tables.
Key functions
validate_data(schema_name: str, data: dict)
Checks data against a loader schemashow_loader_schemas(schema_name: str, ..., nest_depth=0)
Show the fields for one or several loader schemas.
Installation
pip install sparrow-loader
Requires Python >=3.9
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sparrow-loader-1.0.3.tar.gz
(37.6 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_loader-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebca28ce9bf4e1ebe6ae8a582b93a379a79a506a778142d39bca19931ed99f45 |
|
MD5 | b7d1ad011a34e12fdebb99d776e530dd |
|
BLAKE2b-256 | 470b0dd201a3536c2038e0931df99e8f8986cec126832425988317dd5f9f4d85 |