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.1
  • Package version: 0.1.1
  • 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/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.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 a 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 a file
FilesApi download_file GET /api/v1/wells/{wellId}/files/{fileId}/download Download a file
FilesApi get_file GET /api/v1/wells/{wellId}/files/{fileId} Get file metadata
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.1.tar.gz (62.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.1-py3-none-any.whl (189.6 kB view details)

Uploaded Python 3

File details

Details for the file em_toolhub-0.1.1.tar.gz.

File metadata

  • Download URL: em_toolhub-0.1.1.tar.gz
  • Upload date:
  • Size: 62.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.1.tar.gz
Algorithm Hash digest
SHA256 a58e8a4a967b115f58a615c58f605b9c42cb994e368258111c4217aed0a02e62
MD5 fd6fbb21b662360f8b1ad60e7d172ffc
BLAKE2b-256 332cd3bdedd48d2d64a802fbc540d71536562e9fa744b7b5e65ef7b39bf4f7ff

See more details on using hashes here.

File details

Details for the file em_toolhub-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: em_toolhub-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 189.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e933de732d1116334735db5e2a6498fd770103fbc1e4467ec45016d7022c5d25
MD5 15387d1606d1bb2de1292b454aad57a0
BLAKE2b-256 b28215ed748e34cdfdc6b5734694de47783374fff99334504c886ea30d56ef09

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