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.6.tar.gz
(3.3 kB
view details)
Built Distribution
pybd-0.0.6-py3-none-any.whl
(7.7 kB
view details)
File details
Details for the file pybd-0.0.6.tar.gz
.
File metadata
- Download URL: pybd-0.0.6.tar.gz
- Upload date:
- Size: 3.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 685d99a5a2ed27a08f8aa237564c732a3e0010a558320bb6e0d1edfcc3e1971c |
|
MD5 | 7b2552742d2f4c1bddfb0a23bcb8939f |
|
BLAKE2b-256 | 7ff3bd79f29dca4e01ed2bbefa937fd1eb767b0a7741bde1f6d1f82ed8f23115 |
File details
Details for the file pybd-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: pybd-0.0.6-py3-none-any.whl
- Upload date:
- Size: 7.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 899e143a844da22f91adbaf0741b46e15417c9c906eff903170535cd6026a5a7 |
|
MD5 | 8d11cf1e0e1a04c9217763df41629130 |
|
BLAKE2b-256 | bb19ac8a25ff703567eae6b3c5725ec74522057e0c6d6cc049e542a2bb3b401d |