Skip to main content

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

Project description

# python-databasin 0.4.1

[![Build Status](https://travis-ci.org/consbio/python-databasin.png?branch=master)](https://travis-ci.org/consbio/python-databasin) [![Coverage Status](https://coveralls.io/repos/consbio/python-databasin/badge.svg?branch=master&service=github)](https://coveralls.io/github/consbio/python-databasin?branch=master)

```python-databasin``` is a client library for interacting with [Data Basin](http://databasin.org).

# Install
```bash
$ 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.

```python
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:

```python
dataset = c.import_lpk('/path/to/lpk_with_metadata.lpk')
print(dataset.id)
print(dataset.title)
```


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

Uploaded Source

Built Distributions

python_databasin-0.4.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

python_databasin-0.4.1-py2-none-any.whl (9.8 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: python-databasin-0.4.1.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/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for python-databasin-0.4.1.tar.gz
Algorithm Hash digest
SHA256 3fdf65b29fa4d89233b777f77fc5e73910fa5ec0b271f6ccf349ed9fb3da5fc9
MD5 b9b14b0a2591f0e9105c8a26c896fafd
BLAKE2b-256 7ad8496d7995ae1a0aef04490a3fb116f4e025857e348de91fe8ec0887323f4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_databasin-0.4.1-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/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for python_databasin-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7fdc9e5b7375520e7fef6f21b0403ebb4bae8b645896dc874ee2c20764b76bb7
MD5 72de74239bd25e1321c32883f96863d7
BLAKE2b-256 c9848ff2e9d5b7d378c8cc924631bf1055a87a4e9c8260e227a1bd53d46a3171

See more details on using hashes here.

File details

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

File metadata

  • Download URL: python_databasin-0.4.1-py2-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for python_databasin-0.4.1-py2-none-any.whl
Algorithm Hash digest
SHA256 908de9ea248c1ce24d7e2f27cb77efb2ead10baa5e5296fea9c74bb2c0a7e684
MD5 aa94ee9fb34daf261a2f1123b798fd49
BLAKE2b-256 8dc9f3691ee1da71ea83aa5cd5b4bb427899c4da7a145db6f879c26381d4877d

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