A client library for Data Basin (http://databasin.org)
Project description
python-databasin 0.5.3
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
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.5.3.tar.gz
(8.0 kB
view hashes)
Built Distributions
Close
Hashes for python_databasin-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6470b45dbdb278dcd1ae693341d9bc92a4ed70297639438d2fad816fe89f6792 |
|
MD5 | 40a9776721f498ecfbac17e71b7d3a59 |
|
BLAKE2b-256 | d9f38ead3fe321aade66c076169ceda1d53812338823effe54bc569bc89dfb58 |
Close
Hashes for python_databasin-0.5.3-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b2586cb9fe648d047deee7c264efa8756fde70e520217ce5939c133147cbe37 |
|
MD5 | 2faaa96d73a7db6d302c8d578300d71d |
|
BLAKE2b-256 | 755077dff365f029338f3ce15739ce62cfabfc2123bdd92b55cd80fc25b50ab0 |