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.1.tar.gz
(1.5 kB
view hashes)
Built Distribution
Close
Hashes for directaccess-0.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73148bda0d2ae38556359b334cf1dca031e59950d03f666e1dcb1f6012da6bb9 |
|
MD5 | 3bace5798aa6465a31870e0cb610b6fe |
|
BLAKE2b-256 | f5cee9c87a5aad5a196367efa6814fb431fe1a8416213cb874fd2bdc66b253ed |