Skip to main content

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.2.0
  • Package version: 0.2.0
  • 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.WellboresApi(api_client)
    well_id = 'well_id_example' # str | 
    create_wellbore_request_body = em_toolhub.CreateWellboreRequestBody() # CreateWellboreRequestBody |  (optional)

    try:
        # Create wellbore
        api_response = api_instance.create_wellbore(well_id, create_wellbore_request_body=create_wellbore_request_body)
        print("The response of WellboresApi->create_wellbore:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling WellboresApi->create_wellbore: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.erdosmiller.com

Class Method HTTP request Description
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

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (API Key)

Author

Metadata

Release files for em-toolhub 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for em-toolhub 0.2.0
File Size Uploaded Provenance
em_toolhub-0.2.0.tar.gz 37.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for em-toolhub 0.2.0
File Interpreter ABI Platform
em_toolhub-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 121.8 kB

Release files / em_toolhub-0.2.0.tar.gz

Download URL em_toolhub-0.2.0.tar.gz
Size 37.0 kB
Tags Source
SHA-256 checksum
How to use checksums
998949052530c664cdc209c0ca6debfac681d9ec86c26dc110eb1e7b3730fb5a
BLAKE2b-256 checksum
How to use checksums
2ff53652d794596ef9ab102f1f8b3fa7781af57363104cbff8beff3a1bd8bde2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / em_toolhub-0.2.0-py3-none-any.whl

Download URL em_toolhub-0.2.0-py3-none-any.whl
Size 84.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3160b27814702345e5ad35c47e721088ffd2402cad73a79a31c08c697ceee949
BLAKE2b-256 checksum
How to use checksums
b7c2d58a406c859e135095f6ce6e744fdcb066edce45641426673e62e19ab886
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for em-toolhub 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page