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.1.tar.gz
(37.1 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_loader-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64814e82530b6dcaff193fe70466c926085d33a7b22714870fae3f83870c3213 |
|
MD5 | 97bba3982a0eac0ee22f10d94c74759d |
|
BLAKE2b-256 | 70f9727e4feb24600ba15dd0a7393700b9df13104f3e2f185ec3ccf23531c72f |