A Python API for accessing the Bazean database
Project description
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.0.5.tar.gz
(3.3 kB
view hashes)
Built Distribution
pybd-0.0.5-py3-none-any.whl
(7.7 kB
view hashes)