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.
Command-line application
The sparrow-loader
command line application allows you to inspect
and validate import 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.5.tar.gz
(38.2 kB
view hashes)
Built Distribution
Close
Hashes for sparrow_loader-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d78fd96f2ff9427d7de46243cd9c07c602afcb72ee1f25c17cb644f4fef4809 |
|
MD5 | 45b93ba602d1f61368577bc53e05764e |
|
BLAKE2b-256 | 3f859d524362d980ac28e56aeb193fd9dc9f07488f0a1cb9b4d8860d45e8e7ab |