A wrapper for the Intellinget Plant API
Project description
Python App Store API Client
A python implmentation of the Intelligent Plant industrial appstore API client
See the example folder for example on how to use the library for authorization code and implicit OAuth grant flows.
Getting started
Installing using pip
pip install intelligent-plant
Installing from Source
Using pip:
pip install git+https://github.com/intelligentplant/py-app-store-api
Alternatively clone the Git repo:
git clone https://github.com/intelligentplant/py-app-store-api.git
Example Scripts
The 'example' folder contains a series of examples which demonstrate the available authentication methods and queries that you can make using this library.
To install dependencies used by the example scripts run
pip install -r example-requirements.txt
Querying the Industrial App Store
In order to query the industrial app store you must register as a developer and create an app registration. Full instructions can be found here: https://wiki.intelligentplant.com/doku.php?id=dev:app_store_developers
Once you have created and app registration you will need to copy and rename config-example.json
to config.json
and populate the id
and secret
fields with you app ID and app secret.
To run the authorization code grant flow example run:
python example\authorization_code_grant_flow.py
To run the authorization code grant flow example with the PKCE extensionrun:
python example\authorization_code_grant_flow_pkce.py
To run the implicit grant flow example run:
The implicit grant flow is deprecated and is disabled by default
python example\implicit_grant_flow.py
Querying a local App Store Connect or Data Core node
To run the NTLM (windows authentication) example you will need to have a data core node available on the local network.
If you have an App Store Connect (https://appstore.intelligentplant.com/Home/DataSources) installed locally you can run the example without modification. If you are trying to authenticate with a data core node you will need to change the base_url
variable defined in the script to match the URL of the Data Core admin UI.
Run the example using:
python example\ntlm_example.py
Example Notebooks
You can find examples of how to use the library to make queries in our Jupyer Hub demo notebooks (these notebooks expect a valid Industrial App Store access token to be present in the ACCESS_TOKEN
environment variable).
https://github.com/intelligentplant/jupyter-hub-demo/tree/master/Python
To use this library as part of a Jupyter Notebook join the Jupyter Hub:
https://appstore.intelligentplant.com/Home/AppProfile?appId=40d7a49722f84be4986318bb5cc98cf3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file intelligent_plant-1.6.1.tar.gz
.
File metadata
- Download URL: intelligent_plant-1.6.1.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc371d7f087321e0c6faf630d676c0d9f79da5e0b98a0399ddf7eeb00934f1ab |
|
MD5 | 0cb94f85b5f34ba83907dad0f3ac460b |
|
BLAKE2b-256 | e2d536e1bedf4f617a31e2ddf71b26a7c2d079b86be36752d606f8ed79d405b4 |
File details
Details for the file intelligent_plant-1.6.1-py3-none-any.whl
.
File metadata
- Download URL: intelligent_plant-1.6.1-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48685511343f80b9cc90739039d8aaf4e7916b565dd0ee2f5366b4e17088eba |
|
MD5 | ff43c625fc0a5168cd20e103256416c9 |
|
BLAKE2b-256 | 54dc4a5bb887d8727e4e3d5bdf0950489c9a378b52d4625263ce80bf53569bed |