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 https://img.shields.io/badge/code%20style-black-000000.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.

Files for pybd, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size pybd-0.1.2-py3-none-any.whl (8.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pybd-0.1.2.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page