Drillinginfo Direct Access API Python Client
Project description
# direct-access-py
A thin wrapper around Drillinginfo's Direct Access API
### Install
```commandline
python setup.py install
```
### Usage
```commandline
from directaccess import DirectAccessV1, DirectAccessV2
d1 = DirectAccessV1(api_key=<your-api-key>)
for row in d1.query('landtrac-leases', county_parish='Reeves', state_province='TX', min_expiration_date='2018-06-01'):
print(row)
# initialize DirectAccessV2 object
d2 = DirectAccessV2(
client_id=<your-client-id>,
client_secret=<your-client-secret>,
api_key=<your-api-key>
)
# iterate over rows as dicts
for row in d2.query('well-origins', pagesize=10000):
print(row)
```
A thin wrapper around Drillinginfo's Direct Access API
### Install
```commandline
python setup.py install
```
### Usage
```commandline
from directaccess import DirectAccessV1, DirectAccessV2
d1 = DirectAccessV1(api_key=<your-api-key>)
for row in d1.query('landtrac-leases', county_parish='Reeves', state_province='TX', min_expiration_date='2018-06-01'):
print(row)
# initialize DirectAccessV2 object
d2 = DirectAccessV2(
client_id=<your-client-id>,
client_secret=<your-client-secret>,
api_key=<your-api-key>
)
# iterate over rows as dicts
for row in d2.query('well-origins', pagesize=10000):
print(row)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
directaccess-0.4.2.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for directaccess-0.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a588a5f2f564107004af2fcd2d0ced71fac1739085ed03c08a6502b252c26155 |
|
MD5 | 5330b1da3f18b548953ddde7eaefa12e |
|
BLAKE2b-256 | 387ccbb7415f5cf37b827565d659ca1578d036254c5d02cc0c2e728a6842497f |