Skip to main content

A client library for Data Basin (http://databasin.org)

Project description

python-databasin 0.5.4

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.5.4.tar.gz (8.0 kB view details)

Uploaded Source

Built Distributions

python_databasin-0.5.4-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

python_databasin-0.5.4-py2-none-any.whl (10.0 kB view details)

Uploaded Python 2

File details

Details for the file python-databasin-0.5.4.tar.gz.

File metadata

  • Download URL: python-databasin-0.5.4.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for python-databasin-0.5.4.tar.gz
Algorithm Hash digest
SHA256 b70a8be0d026a97505af7b165b10004591436cc71d1ac549682fff653db83a0a
MD5 649b070e0e3f24803b9ce92f77f9958f
BLAKE2b-256 4306d2320764032164b6b104194a734c216935cc93daae57f0f96181efbe208f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_databasin-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for python_databasin-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 981447f360e66482dd6dc91d539d92d0212114e555333c6eb831ccc969e4d891
MD5 f36b8c5184944d47b1ff4ea40c3a7ac9
BLAKE2b-256 f9bc8b907625b475f09abf5b99757f2eeeab139ed5ea2e45a0c4c5cace6a803e

See more details on using hashes here.

File details

Details for the file python_databasin-0.5.4-py2-none-any.whl.

File metadata

  • Download URL: python_databasin-0.5.4-py2-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5

File hashes

Hashes for python_databasin-0.5.4-py2-none-any.whl
Algorithm Hash digest
SHA256 4dc75345df6b764df97f7a6b4e0b25158902a064183b418c453de4d6e14cbad6
MD5 95facea5cec940c893e51bc9d9370d35
BLAKE2b-256 e70b6b6f176eb60f9df6f9e9e40ce175de0bba73a346a19eca92503df3eac94d

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