Skip to main content

A Python API for accessing the Bazean database

Project description

https://travis-ci.org/daytum/PyBD.svg?branch=master https://coveralls.io/repos/github/daytum/PyBD/badge.svg?branch=master Documentation Status https://badge.fury.io/py/pybd.svg

A Python API to access the Bazean Postgres database

Example Usage

A simple Python script that gets the production data from 10 wells from the state of Texas operated by XOM:

from pybd import PyBD

db = PyBD(user='bazean_postgres_username', password='bazean_postgres_password')
db.set_fetch_size(10)
latitude, longitude, apis = db.get_well_locations_by_ticker_and_state('XOM', 'TX')

oil_production = []
for i in range(10):
   dates, oil, gas, water = db.get_production_from_api(apis[i])
   oil_production += [oil]

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

pybd-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

pybd-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file pybd-0.1.0.tar.gz.

File metadata

  • Download URL: pybd-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for pybd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 99532de9ddf617f89b2973cf0074e9252c2c3a7504b9622dbae40a1e4ccbd188
MD5 bf46edb09e7c586e97675038d02321e5
BLAKE2b-256 ecd9c7486b67e3de8b4e94c51b1d482c5b04f01902bd41a794118ac7a9bce02c

See more details on using hashes here.

File details

Details for the file pybd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pybd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

File hashes

Hashes for pybd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9f56f38b6445f939bb1f1ac18a28447eedaa4a4b7293f4035562c6d2f215040
MD5 f6e75ac24e86fe5dfbf261da978eca10
BLAKE2b-256 218bbe6ba1e7f559223792166b1493c8bcc6cb1ed3e8b1ad52846c48a0ca9821

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