Skip to main content

No project description provided

Project description

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()

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

python_databasin-0.6.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

python_databasin-0.6.1-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file python_databasin-0.6.1.tar.gz.

File metadata

  • Download URL: python_databasin-0.6.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1021-azure

File hashes

Hashes for python_databasin-0.6.1.tar.gz
Algorithm Hash digest
SHA256 0f69da0082289e02d027e8742373b7c532298b723dbaf5505e5f84e7c1a88a0a
MD5 854c6d3ec491217add3387083b31f182
BLAKE2b-256 1a5acd4544e3a93d06cd964e6a7a58c20aa9141166577eaf6897a9da1d1558f5

See more details on using hashes here.

File details

Details for the file python_databasin-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: python_databasin-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1021-azure

File hashes

Hashes for python_databasin-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d060546dde50d793820d090972a81d8f0417adad594e76fc572e6959ba28bdf6
MD5 cd4e72518dd6cb2209d8c8be1d541dac
BLAKE2b-256 133ef961f099fc978932544e2d769533c7a1f14636d84cff762a2e3cef06b93e

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