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
Built Distributions
File details
Details for the file python-databasin-0.4.2.tar.gz
.
File metadata
- Download URL: python-databasin-0.4.2.tar.gz
- Upload date:
- Size: 6.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e7bfa36d46220573521dd65a80e5d831b706d7d99a451d1e9234a7340fc1e68 |
|
MD5 | d8262683120ea4b56bd64bfa52c6bbea |
|
BLAKE2b-256 | 09793478842b20e3873daf3bb3fe6aa60ced27a961ede247667a1b052e42d459 |
Provenance
File details
Details for the file python_databasin-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: python_databasin-0.4.2-py3-none-any.whl
- Upload date:
- Size: 8.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e1f9e67d9edf8e664ffd7def7ea5d8541d77402faf212b249f253cf7be82d1e |
|
MD5 | 755b71e864aa06615d0765c30e43cc62 |
|
BLAKE2b-256 | 8db5bb383f5c103965aa4c95e5471fbedbc6270caa0b4a1a4554d79a773d8467 |
Provenance
File details
Details for the file python_databasin-0.4.2-py2-none-any.whl
.
File metadata
- Download URL: python_databasin-0.4.2-py2-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 2
- 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bab09d33f814e578f101c255bda350e2bac2cf026c5a613aea1a4f105759248f |
|
MD5 | 623b55bdd16383286b78c5afbbeb9ebd |
|
BLAKE2b-256 | c2cc787e60795749149bbd018d457e112b8bda0c5f53256895a4121aa5cf29f4 |