ToolHub Customer API
Project description
em-toolhub
REST API for customer access to ToolHub well data.
Authentication
All endpoints require Bearer token authentication using an API key:
Authorization: Bearer thub_live_xxxxxxxxxxxxxxxxxxxx
API keys are issued per-organization and inherit well access permissions.
Rate Limits
- Standard tier: 70 requests/minute
- Premium tier: 300 requests/minute
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.2
- Package version: 0.1.2
- Generator version: 7.19.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://erdosmiller.com
Requirements.
Python 3.9+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/Erdos-Miller/repo.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/Erdos-Miller/repo.git)
Then import the package:
import em_toolhub
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import em_toolhub
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import em_toolhub
from em_toolhub.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = em_toolhub.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (API Key): bearerAuth
configuration = em_toolhub.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with em_toolhub.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = em_toolhub.FilesApi(api_client)
well_id = 'well_id_example' # str |
file_id = 'file_id_example' # str |
try:
# Delete file
api_response = api_instance.delete_file(well_id, file_id)
print("The response of FilesApi->delete_file:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling FilesApi->delete_file: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| FilesApi | delete_file | DELETE /api/v1/wells/{wellId}/files/{fileId} | Delete file |
| FilesApi | download_file | GET /api/v1/wells/{wellId}/files/{fileId}/download | Download file |
| FilesApi | get_file | GET /api/v1/wells/{wellId}/files/{fileId} | Get file details |
| FilesApi | list_files | GET /api/v1/wells/{wellId}/files | List files |
| SurveysApi | create_survey | POST /api/v1/wells/{wellId}/surveys | Create survey |
| SurveysApi | delete_survey | DELETE /api/v1/wells/{wellId}/surveys/{surveyId} | Delete survey |
| SurveysApi | get_survey | GET /api/v1/wells/{wellId}/surveys/{surveyId} | Get survey details |
| SurveysApi | list_surveys | GET /api/v1/wells/{wellId}/surveys | List surveys for a well |
| WellboresApi | create_wellbore | POST /api/v1/wells/{wellId}/wellbores | Create wellbore |
| WellboresApi | delete_wellbore | DELETE /api/v1/wells/{wellId}/wellbores/{wellboreId} | Delete wellbore |
| WellboresApi | get_wellbore | GET /api/v1/wells/{wellId}/wellbores/{wellboreId} | Get wellbore |
| WellboresApi | get_wellbore_tree | GET /api/v1/wells/{wellId}/wellbores/tree | Get wellbore tree |
| WellboresApi | list_wellbores | GET /api/v1/wells/{wellId}/wellbores | List wellbores |
| WellboresApi | update_wellbore | PUT /api/v1/wells/{wellId}/wellbores/{wellboreId} | Update wellbore |
| WellsApi | get_well | GET /api/v1/wells/{wellId} | Get well details |
| WellsApi | list_wells | GET /api/v1/wells | List wells |
Documentation For Models
- CreateSurvey201ResponseBody
- CreateSurvey201ResponseBodyData
- CreateSurvey201ResponseBodyDataCorrectionsInner
- CreateSurvey201ResponseBodyDataRaw
- CreateSurvey201ResponseBodyMeta
- CreateSurvey400ResponseBody
- CreateSurvey400ResponseBodyError
- CreateSurvey401ResponseBody
- CreateSurvey404ResponseBody
- CreateSurvey500ResponseBody
- CreateSurveyRequestBody
- CreateSurveyRequestBodyRaw
- CreateWellbore201ResponseBody
- CreateWellbore201ResponseBodyData
- CreateWellbore400ResponseBody
- CreateWellbore401ResponseBody
- CreateWellbore500ResponseBody
- CreateWellboreRequestBody
- DeleteFile401ResponseBody
- DeleteFile404ResponseBody
- DeleteFile500ResponseBody
- DeleteSurvey200ResponseBody
- DeleteSurvey200ResponseBodyData
- DeleteSurvey401ResponseBody
- DeleteSurvey404ResponseBody
- DeleteSurvey500ResponseBody
- DeleteWellbore200ResponseBody
- DeleteWellbore400ResponseBody
- DeleteWellbore401ResponseBody
- DeleteWellbore404ResponseBody
- DeleteWellbore500ResponseBody
- DownloadFile401ResponseBody
- DownloadFile404ResponseBody
- DownloadFile500ResponseBody
- ErrorMessage
- GetFile200ResponseBody
- GetFile200ResponseBodyData
- GetFile401ResponseBody
- GetFile404ResponseBody
- GetFile500ResponseBody
- GetSurvey200ResponseBody
- GetSurvey401ResponseBody
- GetSurvey404ResponseBody
- GetSurvey500ResponseBody
- GetWell200ResponseBody
- GetWell200ResponseBodyData
- GetWell401ResponseBody
- GetWell404ResponseBody
- GetWell500ResponseBody
- GetWellbore200ResponseBody
- GetWellbore401ResponseBody
- GetWellbore404ResponseBody
- GetWellbore500ResponseBody
- GetWellboreTree200ResponseBody
- GetWellboreTree200ResponseBodyData
- GetWellboreTree200ResponseBodyDataTreeInner
- GetWellboreTree200ResponseBodyDataTreeInnerChildrenInner
- GetWellboreTree200ResponseBodyDataTreeInnerChildrenInnerChildrenInner
- GetWellboreTree200ResponseBodyDataTreeInnerChildrenInnerChildrenInnerChildrenInner
- GetWellboreTree401ResponseBody
- GetWellboreTree500ResponseBody
- ListFiles200ResponseBody
- ListFiles200ResponseBodyData
- ListFiles200ResponseBodyDataFilesInner
- ListFiles401ResponseBody
- ListFiles404ResponseBody
- ListFiles500ResponseBody
- ListSurveys200ResponseBody
- ListSurveys200ResponseBodyData
- ListSurveys200ResponseBodyDataSurveysInner
- ListSurveys401ResponseBody
- ListSurveys404ResponseBody
- ListSurveys500ResponseBody
- ListWellbores200ResponseBody
- ListWellbores200ResponseBodyData
- ListWellbores401ResponseBody
- ListWellbores404ResponseBody
- ListWellbores500ResponseBody
- ListWells200ResponseBody
- ListWells200ResponseBodyData
- ListWells200ResponseBodyDataWellsInner
- ListWells401ResponseBody
- ListWells500ResponseBody
- UpdateWellbore200ResponseBody
- UpdateWellbore400ResponseBody
- UpdateWellbore401ResponseBody
- UpdateWellbore404ResponseBody
- UpdateWellbore500ResponseBody
- UpdateWellboreRequestBody
Documentation For Authorization
Authentication schemes defined for the API:
bearerAuth
- Type: Bearer authentication (API Key)
Author
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file em_toolhub-0.1.2.tar.gz.
File metadata
- Download URL: em_toolhub-0.1.2.tar.gz
- Upload date:
- Size: 59.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed119875a1af05ef129b1b13fb70ea6dc2060b7cf3cff4efe8c085e21557bf03
|
|
| MD5 |
df99bbcdfa500df3c95559aabc239f34
|
|
| BLAKE2b-256 |
3551360c87e79926e31797a92ea4fabafca2a5e7a79a03a6c9991f65c4b3585a
|
File details
Details for the file em_toolhub-0.1.2-py3-none-any.whl.
File metadata
- Download URL: em_toolhub-0.1.2-py3-none-any.whl
- Upload date:
- Size: 179.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95b4118ef69580114cf25d92021eb6753972b3c96953ecb925ad747f4e83baa2
|
|
| MD5 |
7199ff7a75ab5b45150cb0c91eab895f
|
|
| BLAKE2b-256 |
ccffa1596be42bef155433807487a06f320f9cbc0138e70846d600ae3a1368c5
|