Skip to main content

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 schema
  • show_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.8.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

sparrow_loader-1.0.8-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file sparrow-loader-1.0.8.tar.gz.

File metadata

  • Download URL: sparrow-loader-1.0.8.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.3 Darwin/21.6.0

File hashes

Hashes for sparrow-loader-1.0.8.tar.gz
Algorithm Hash digest
SHA256 51994f3d827fecaedcd0030afbed8d24dd08fda8e15d4a94b1884645f0290f04
MD5 6ba599f3ea541cb99f86f11af8ef10be
BLAKE2b-256 4ad71091d6d571a3811a46d8e2924fb22b19549721c562cd40c7f90f2f9fc62a

See more details on using hashes here.

File details

Details for the file sparrow_loader-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: sparrow_loader-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.3 Darwin/21.6.0

File hashes

Hashes for sparrow_loader-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ccd3d70ee539225ad81eb1873dfe8e2960f94221dded2e024194e1e92ae3fcea
MD5 2bff1dc44d796f9da38b419acea88826
BLAKE2b-256 37732c0bb23f89f4df4e30918f17b879b3493f7f6a97ae10353e565f34510190

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page