Skip to main content

A library mapped to ComboCurve's API.

Project description

ComboCurve API Helper combocurve-api-helper

A utility library mapped to ComboCurve's API.

Petroleum Engineering Toolbox


PyPi Version

Open in Visual Studio Code

Installation

Install from Python package repository:

python -m pip install combocurve-api-helper

or install directly from GitHub:

python -m pip install git+https://github.com/petbox-dev/combocurve-api-helper.git@main

Setup

Two files are required in ~/.combocurve:

  • cc-api.config.json
  • combocurve.json

These are given by ComboCurve when configuring API access. Example files are provided in ./config-examples/ to demonstrate the expected file structures.


cc-api.config.example.json:

{
    "apikey": "<apikey>"
}

combocurve.example.json:

{
  "type": "service_account",
  "project_id": "beta-combocurve",
  "private_key_id": "<private_key_id>",
  "private_key": "<private_key>",
  "client_email": "<client_email>",
  "client_id": "<client_id>",
  "auth_uri": "https://accounts.google.com/o/oauth2/auth",
  "token_uri": "https://oauth2.googleapis.com/token",
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "client_x509_cert_url": "<client_x509_cert_url>"
}

Contributing

  1. Fork the repository:

    • On this GitHub page, click "Fork" to create a copy under your own account.
  2. CLone the forked repo onto on your machine:

    git clone https://github.com/<your-username>/combocurve-api-helper.git
    cd combocurve-api-helper
    
  3. Set the upstream remote:

    • This allows you to fetch updates from the original repository:
    git remote add upstream https://github.com/petbox-dev/combocurve-api-helper.git
    
  4. Create a new branch:

    • Always create a new branch for your feature or fix
    • A common convention is to name the branch your GitHub username, a forward slash, and a brief description of the work you're doing
    git checkout -b <your-username>/<your-branch-name>
    
  5. Make your changes, and commit:

    • After adding your files, or making edits, ensure typechecking succeeds, then commit your changes
    mypy --package combocurve_api_helper
    
    git add .
    git commit -m "<description of changes>"
    
  6. Push to your fork:

    git push origin <the-name-of-your-branch>
    
  7. Create a pull request:

    • Go to "Pull Requests" tab in this repo, and click "compare across forks"
    • Choose your branch as the source and keep the default main branch as the target
      • ie: petbox-dev/combocurve-api-helper (main) <- your-username/combocurve-api-helper (your-branch-name)
    • Fill the title and description with a summary of the proposed changes
    • Request a review from @dsfulf

Authors

  • David Fulford

License

MIT License

Copyright (c) 2023 Petroleum Engineering Toolbox

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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

combocurve_api_helper-1.2.0.tar.gz (95.8 kB view details)

Uploaded Source

Built Distribution

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

combocurve_api_helper-1.2.0-py3-none-any.whl (109.9 kB view details)

Uploaded Python 3

File details

Details for the file combocurve_api_helper-1.2.0.tar.gz.

File metadata

  • Download URL: combocurve_api_helper-1.2.0.tar.gz
  • Upload date:
  • Size: 95.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.13

File hashes

Hashes for combocurve_api_helper-1.2.0.tar.gz
Algorithm Hash digest
SHA256 748bc9b1504fafdd2e51a879692a07552b0efeef7c295a7e386bc8caaf148e51
MD5 07a6aca2b0065cb5d610e2452db3574a
BLAKE2b-256 506e2ff5a006df6d9bde0ad3e4b8ecddb95f02981a000e5b9651acab98cdc372

See more details on using hashes here.

File details

Details for the file combocurve_api_helper-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for combocurve_api_helper-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0161badf72d76bb3dd8fdfe11df194591dd2c17dc039bae561c01c64d5105346
MD5 1f88b4cc26229940439ec2618e25d76f
BLAKE2b-256 8327c781ecca32298d7b29895b92697d30246a6e3a6bd58d0d5e6dfb32bec282

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