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.2.tar.gz
(37.1 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_loader-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b924a48867ff6d36041e1a09b3d80e9066cc2b5c1a205e0f38a0831b2d34f035 |
|
MD5 | f45a301422558e4f3f0e4d2490239f75 |
|
BLAKE2b-256 | ef04c9417abe1eb689b9030bf5b7e8cf1e210b677ade32afab5446ed9ae1636b |