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.29.tar.gz (52.8 kB view details)

Uploaded Source

Built Distribution

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

preheat_open-1.29-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: preheat_open-1.29.tar.gz
  • Upload date:
  • Size: 52.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for preheat_open-1.29.tar.gz
Algorithm Hash digest
SHA256 d8527c67882cf01f05ed4198cf172a708a63b347a9cd88e16d79edb2bb415f85
MD5 7ce04e0057ed49bb7f815f2f9e119390
BLAKE2b-256 55ad05715f842c53cc4b1384b72e89d9925ca45972d21b3e660a408a833e561d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: preheat_open-1.29-py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for preheat_open-1.29-py3-none-any.whl
Algorithm Hash digest
SHA256 bafffc1574acb6067d44f48c8c824106138fc5dabe6f3681df0a1c4cddf5d625
MD5 c002e46a8136dfd0a9f5d980d10a7e14
BLAKE2b-256 16f556af05cf9db1638fbeb67ac5fb28e06f38e55250f5741a0c33faf489061c

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