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.2.tar.gz
(3.3 kB
view details)
Built Distribution
pybd-0.0.2-py3-none-any.whl
(7.7 kB
view details)
File details
Details for the file pybd-0.0.2.tar.gz
.
File metadata
- Download URL: pybd-0.0.2.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.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55787b2a1136ee6a84acb28067fa5cb61d3b86228a53c6d15deafc20e4e75927 |
|
MD5 | 40102256837ff2720c10733a0b692d91 |
|
BLAKE2b-256 | 67aa7393c5e7b2d230a15fbf3bcee5f6aebc17b1184e5dfe42d4d65adf74bb7b |
File details
Details for the file pybd-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: pybd-0.0.2-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.6.3 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d6999a253ffb550b400fb35640155dbc90731cc82d6d9be5f6210cfe6fda627 |
|
MD5 | 1e86b29062e6c804a2d9d1dc7a59c1b3 |
|
BLAKE2b-256 | 4307300d917e4af018f55d5994eb5c7c17bd86aec7b222ec149c30ab6192fc60 |