BPS Geodatabase - API Authorization and Access Python Modules
Project description
bpsgeodb
BPS Geodatabase - API Authorization and Access Python Modules
The objective of this module is to facilitate the authorization flow in our API. More information about the API you can find in the DEVELOPER DOCS section of the BPS Geodatabase.
Installation
pip install bspgeodb
Code Example
import bpsgeodb
import pathlib
import dotenv
from pprint import pprint
# Access to the API requires authorization.
# You must set up all necessary environment variables for the Authorization
# to work. Optionally you may read the environment variables from .env file.
# ATTENTION: Make sure you do not add your API KEYS to any code repository.
env_path = pathlib.Path('.') / '.env'
dotenv.load_dotenv(dotenv_path=env_path)
# create a BPS Geodb API Service instance
api = bpsgeodb.ApiService()
# Start authorization
api.authorize()
# Get all wells with Oil Geochemistry data
data = api.getData("oil_geochemistry/wells")
# Print API response
pprint(data)
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
bpsgeodb-0.0.5.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bpsgeodb-0.0.5.tar.gz.
File metadata
- Download URL: bpsgeodb-0.0.5.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f456e7ee93895dbe1f09db13205d3d6cdb6873ee7a9c04deb1d6fa994ec6aa36
|
|
| MD5 |
7aa3a29c775e1f904d12108cf15ae64f
|
|
| BLAKE2b-256 |
1aaf4cf3d38933c03050420995c76273c33f0e71ff10c0b996202fc75f88d7da
|
File details
Details for the file bpsgeodb-0.0.5-py3-none-any.whl.
File metadata
- Download URL: bpsgeodb-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9267050a81049c3456c1d366d54f03a7098de477dc83cfa301342b134ae4270b
|
|
| MD5 |
e009ece7d090da5c51bf8ea03cb3c5e3
|
|
| BLAKE2b-256 |
e5f8d6b67666f3e689f45b57a3174b0ed78be48dae4b793c4d4539b7cc6f6a6a
|