Skip to main content

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

Project description

python-databasin 0.5.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.5.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

python_databasin-0.5.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: python-databasin-0.5.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

File hashes

Hashes for python-databasin-0.5.1.tar.gz
Algorithm Hash digest
SHA256 6c245fa1a2767bd59b1d3bdf257e49fee6e56836bab501e6a7beb1781c930e1f
MD5 8d85e9ef4be66315257d987e975d109a
BLAKE2b-256 794ff0dfc8101221803b80a202abc2e9cfe9ca1af459f49581bf3d1403e3681b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_databasin-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

File hashes

Hashes for python_databasin-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 622866ca78e9501c0bbb9b1fd5aafade5bb34fcacd1628b4d9fe4ce785e41a16
MD5 5b2d386635587ec1b24f5847c452a89a
BLAKE2b-256 38f79cc72c56c167b2447cdb1a45949b6fc829f4528cd2fed86091d4cb75eb02

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