A REST client library for SAP AI Core API.
Project description
Procaine is a REST client library for SAP AI Core API. Reduces the pain.
Installation
To use Procaine, first install it using pip:
$ pip install procaine
Usage
Run a flow:
>>> from procaine import aicore >>> auth = {"url": AUTH_URL, "clientid": CLIENT_ID, "clientsecret": CLIENT_SECRET} >>> api = aicore.Client(AI_API_URL, auth) >>> hello = api.create_execution("hello-world") >>> hello {'id': 'e96bc32ee9bf9e63', 'message': 'Execution scheduled', 'status': 'UNKNOWN', 'targetStatus': 'COMPLETED'} >>> api.execution(hello) { ... 'status': 'COMPLETED', ... 'targetStatus': 'COMPLETED'} >>> logs = api.execution_logs(hello) >>> print(logs) _____________ < hello world > ------------- \ \ \ ## . ## ## ## == ## ## ## ## === /""""""""""""""""___/ === ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~ \______ o __/ \ \ __/ \____\______/
Documentation
More usage examples and detailed documentation could be found on https://procaine.readthedocs.io/
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
procaine-0.4.1.tar.gz
(12.9 kB
view details)
Built Distribution
procaine-0.4.1-py3-none-any.whl
(13.7 kB
view details)
File details
Details for the file procaine-0.4.1.tar.gz
.
File metadata
- Download URL: procaine-0.4.1.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 955488ed8028cf6bdb62a81c3c8ace45ac5867fcc74bfe724a8ded15b2a0c63a |
|
MD5 | 6fbce27ba2f463559a1b1129067f62e6 |
|
BLAKE2b-256 | 4e74e5e19a41599089865792aaae45cf7c20b06ebfedb26d6e31f355aba0cf46 |
File details
Details for the file procaine-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: procaine-0.4.1-py3-none-any.whl
- Upload date:
- Size: 13.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aed80b6ccdce1a7892c44ac77c3a4bd89a76419983145af577c1e5f2dd1c6fb |
|
MD5 | 924ae3ca0dce2f39027f5d133ae05e19 |
|
BLAKE2b-256 | df78b0940e9cbd931d618bb7e5c35428c160e01b9a0c67e50cd17eb859f3eb40 |