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.0
  • Package version: 0.1.0
  • 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 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
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.0.tar.gz (41.5 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.0-py3-none-any.whl (101.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: em_toolhub-0.1.0.tar.gz
  • Upload date:
  • Size: 41.5 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.0.tar.gz
Algorithm Hash digest
SHA256 e2a8f09528b872b6b9f9302531ec9f501c36c53fa5347428efb60bffeafa0d59
MD5 34ba3cd7c2e1f49e41213b2e6a0508f0
BLAKE2b-256 2c336f7f5ea58ae67bd466e210a43726c12f980610f8ad4e457d604f79802da8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: em_toolhub-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 101.1 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2d4a75c07adeeeb5b80ecd1f560f52a6a5b8e85e5d6dbe840bcd96fe0c0eb9a7
MD5 286c0be417e967c7db7dfaed3f9c5f72
BLAKE2b-256 676d1dcc711767d54b292011002e796e950123aefe1d0e85bcdfade0d0262d7a

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