Skip to main content

python-databasin 0.6.1

Build Status Coverage Status

python-databasin is a client library for interacting with Data Basin.

Install

$ pip install python-databasin

Example usage

The code snippet below will import a NetCDF dataset into Data Basin and make it public. Note that the account you use must have import permission and the import must have complete metadata and style information.

from databasin.client import Client

c = Client()
c.login('user', 'pass')

# Package must have complete metadata and style necessary for one-step import
dataset = c.import_netcdf_dataset('/path/to/netcdf_with_metadata_and_style.zip')

# One-step imports are private by default
dataset.make_public()

print(dataset.id)
print(dataset.title)

You can also upload Esri layer packages (.lpk). As with NetCDF's, layer packages for now must have the all metadata required by Data Basin to successfully import:

dataset = c.import_lpk('/path/to/lpk_with_metadata.lpk')
print(dataset.id)
print(dataset.title)

python-databasin can be used with an API key instead of a password:

from databasin.client import Client

c = Client()
c.set_api_key('<username>', '<api key>')

my_datasets = c.list_my_datasets()

Metadata

Release files for python-databasin 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-databasin 0.6.1
File Size Uploaded Provenance
python_databasin-0.6.1.tar.gz 7.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for python-databasin 0.6.1
File Interpreter ABI Platform
python_databasin-0.6.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / python_databasin-0.6.1.tar.gz

Download URL python_databasin-0.6.1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0f69da0082289e02d027e8742373b7c532298b723dbaf5505e5f84e7c1a88a0a
BLAKE2b-256 checksum
How to use checksums
1a5acd4544e3a93d06cd964e6a7a58c20aa9141166577eaf6897a9da1d1558f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1021-azure

Release files / python_databasin-0.6.1-py3-none-any.whl

Download URL python_databasin-0.6.1-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d060546dde50d793820d090972a81d8f0417adad594e76fc572e6959ba28bdf6
BLAKE2b-256 checksum
How to use checksums
133ef961f099fc978932544e2d769533c7a1f14636d84cff762a2e3cef06b93e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1021-azure

Security for python-databasin 0.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page