Skip to main content

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

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

em_toolhub-0.1.2.tar.gz (59.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

em_toolhub-0.1.2-py3-none-any.whl (179.8 kB view details)

Uploaded Python 3

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

Hashes for em_toolhub-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ed119875a1af05ef129b1b13fb70ea6dc2060b7cf3cff4efe8c085e21557bf03
MD5 df99bbcdfa500df3c95559aabc239f34
BLAKE2b-256 3551360c87e79926e31797a92ea4fabafca2a5e7a79a03a6c9991f65c4b3585a

See more details on using hashes here.

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

Hashes for em_toolhub-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 95b4118ef69580114cf25d92021eb6753972b3c96953ecb925ad747f4e83baa2
MD5 7199ff7a75ab5b45150cb0c91eab895f
BLAKE2b-256 ccffa1596be42bef155433807487a06f320f9cbc0138e70846d600ae3a1368c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page