bpsgeodb-0.0.5
توضیحات
BPS Geodatabase - API Authorization and Access Python Modules
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bpsgeodb-0.0.5 |
| نام | bpsgeodb |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Brazil Petrostudies Servicos Geologicos Ltda |
| ایمیل نویسنده | support@brazilpetrostudies.com.br |
| آدرس صفحه اصلی | https://github.com/brazil-petrostudies/python-bpsgeodb |
| آدرس اینترنتی | https://pypi.org/project/bpsgeodb/ |
| مجوز | - |
# bpsgeodb
BPS Geodatabase - API Authorization and Access Python Modules
----------------------------------------------------------------
The objective of this module is to facilitate the authorization flow in our API.
More information about the API you can find in the DEVELOPER DOCS section of the BPS Geodatabase.
Installation
------------
``` pip install bspgeodb ```
Code Example
------------
```
import bpsgeodb
import pathlib
import dotenv
from pprint import pprint
# Access to the API requires authorization.
# You must set up all necessary environment variables for the Authorization
# to work. Optionally you may read the environment variables from .env file.
# ATTENTION: Make sure you do not add your API KEYS to any code repository.
env_path = pathlib.Path('.') / '.env'
dotenv.load_dotenv(dotenv_path=env_path)
# create a BPS Geodb API Service instance
api = bpsgeodb.ApiService()
# Start authorization
api.authorize()
# Get all wells with Oil Geochemistry data
data = api.getData("oil_geochemistry/wells")
# Print API response
pprint(data)
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl bpsgeodb-0.0.5:
pip install bpsgeodb-0.0.5.whl
نصب پکیج tar.gz bpsgeodb-0.0.5:
pip install bpsgeodb-0.0.5.tar.gz