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.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 0.1.3
  • Package version: 0.1.3
  • Generator version: 7.22.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://erdosmiller.com

Requirements.

Python 3.10+

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 https://api.erdosmiller.com
# See configuration.py for a list of all supported configuration parameters.
configuration = em_toolhub.Configuration(
    host = "https://api.erdosmiller.com"
)

# 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 https://api.erdosmiller.com

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.3.tar.gz (59.2 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.3-py3-none-any.whl (173.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: em_toolhub-0.1.3.tar.gz
  • Upload date:
  • Size: 59.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for em_toolhub-0.1.3.tar.gz
Algorithm Hash digest
SHA256 66e4fa920dbcef3cbe861b377c4c09d467c5fd10c2324373565ed9852c79a472
MD5 c2ab99b3bc59bb18b32df7ccfc132ca5
BLAKE2b-256 1994a54c4fab552512851e627f4ed0646eadaa5b549bb3f5a085b0f24d4d6715

See more details on using hashes here.

File details

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

File metadata

  • Download URL: em_toolhub-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 173.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for em_toolhub-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 57f60b7ac043b168819cd71763e46dac428bdf674796d4f3a2cdb62b56ef275e
MD5 d851960d0bb5b5cdaee314ce64f8a755
BLAKE2b-256 e1aa5fbf9af79b93a1c91a5a4c7f720e8618876492894725c50c32c02b58390d

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