Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bpsgeodb-0.0.5-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for bpsgeodb-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f456e7ee93895dbe1f09db13205d3d6cdb6873ee7a9c04deb1d6fa994ec6aa36
MD5 7aa3a29c775e1f904d12108cf15ae64f
BLAKE2b-256 1aaf4cf3d38933c03050420995c76273c33f0e71ff10c0b996202fc75f88d7da

See more details on using hashes here.

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

Hashes for bpsgeodb-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9267050a81049c3456c1d366d54f03a7098de477dc83cfa301342b134ae4270b
MD5 e009ece7d090da5c51bf8ea03cb3c5e3
BLAKE2b-256 e5f8d6b67666f3e689f45b57a3174b0ed78be48dae4b793c4d4539b7cc6f6a6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page