Skip to main content

Python wrapper for Neogrid Technologies' REST API

Project description

PreHEAT Open Python Package

This is the open Python package to consume Neogrids REST API.

For a quick introduction to how to use it on real-world data, see the quick start guide.

Installation and configuration

Simple installation:

Install the package directly from PyPi using:

pip install preheat_open

Configuring the toolbox

First, make sure that you have created an API key for your user. This can be done on your user profile page in the PreHEAT App.

Now, you can store the API key in a configuration file. This user configuration file should be created in the following places:

OS User level (recommended) Machine level
Windows C:/Users/[your user]/.preheat/config.json (unsupported)
Linux ~/.preheat/config.json /etc[/opt]/preheat/config.json

The configuration files are read in the following priority order (using the first available):

1- User level

2- Machine level (Linux only): /etc/opt/preheat/config.json

3- Machine level (Linux only): /etc/preheat/config.json

And then add the following content in this file (adjusting with your API key):

{
  "PREHEAT_API_KEY": "YOUR_API_KEY_HERE"
}

Alternatively, you can also just import it explicitly in your code using the following command in your code (this is however not recommended, as you risk compromising your API key when sharing your code with others) :

from preheat_open import set_api_key

set_api_key("YOUR_API_KEY_HERE")

Additional Information

You can find additional information about the PreHeat API here.

Contributions

We encourage pull requests if you have developed new interesting features.

Code style: black Imports: isort

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

preheat_open-1.39.tar.gz (66.5 kB view details)

Uploaded Source

Built Distribution

preheat_open-1.39-py3-none-any.whl (67.2 kB view details)

Uploaded Python 3

File details

Details for the file preheat_open-1.39.tar.gz.

File metadata

  • Download URL: preheat_open-1.39.tar.gz
  • Upload date:
  • Size: 66.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for preheat_open-1.39.tar.gz
Algorithm Hash digest
SHA256 2350fa541eeeddb11749e67359715364e37dd6198c74184bd00edf6a297b255b
MD5 10e92bb444d6fc27ea06159001c71016
BLAKE2b-256 6f93ecbae3404442fd4007dcd1f5d63ea33007f9ed758e7de257472b4f958a41

See more details on using hashes here.

File details

Details for the file preheat_open-1.39-py3-none-any.whl.

File metadata

  • Download URL: preheat_open-1.39-py3-none-any.whl
  • Upload date:
  • Size: 67.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for preheat_open-1.39-py3-none-any.whl
Algorithm Hash digest
SHA256 6f2499a55deb4c9bcf38bd938734f6fc8b152b4731df5b2974194588c7da5cc5
MD5 d8e848b780322d33c0527b1b86f01a90
BLAKE2b-256 72fd2e4e66f29a3d554c7bdf4ba9f7d3c8b901d3d3b3c314c26311847adfecd3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page