Skip to main content

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/

Metadata

Release files for procaine 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for procaine 0.4.1
File Size Uploaded Provenance
procaine-0.4.1.tar.gz 12.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for procaine 0.4.1
File Interpreter ABI Platform
procaine-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 26.6 kB

Release files / procaine-0.4.1.tar.gz

Download URL procaine-0.4.1.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
955488ed8028cf6bdb62a81c3c8ace45ac5867fcc74bfe724a8ded15b2a0c63a
BLAKE2b-256 checksum
How to use checksums
4e74e5e19a41599089865792aaae45cf7c20b06ebfedb26d6e31f355aba0cf46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / procaine-0.4.1-py3-none-any.whl

Download URL procaine-0.4.1-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8aed80b6ccdce1a7892c44ac77c3a4bd89a76419983145af577c1e5f2dd1c6fb
BLAKE2b-256 checksum
How to use checksums
df78b0940e9cbd931d618bb7e5c35428c160e01b9a0c67e50cd17eb859f3eb40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for procaine 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page