A client library for Data Basin (http://databasin.org)
Project description
python-databasin 0.4.2
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)
Project details
Release history Release notifications | RSS feed
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.4.2.tar.gz
(6.3 kB
view hashes)
Built Distributions
Close
Hashes for python_databasin-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e1f9e67d9edf8e664ffd7def7ea5d8541d77402faf212b249f253cf7be82d1e |
|
MD5 | 755b71e864aa06615d0765c30e43cc62 |
|
BLAKE2b-256 | 8db5bb383f5c103965aa4c95e5471fbedbc6270caa0b4a1a4554d79a773d8467 |
Close
Hashes for python_databasin-0.4.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bab09d33f814e578f101c255bda350e2bac2cf026c5a613aea1a4f105759248f |
|
MD5 | 623b55bdd16383286b78c5afbbeb9ebd |
|
BLAKE2b-256 | c2cc787e60795749149bbd018d457e112b8bda0c5f53256895a4121aa5cf29f4 |