Name | procaine JSON |
Version |
0.4.1
JSON |
| download |
home_page | |
Summary | A REST client library for SAP AI Core API. |
upload_time | 2023-04-06 13:20:19 |
maintainer | |
docs_url | None |
author | romk |
requires_python | >=3.7 |
license | |
keywords |
ai core
aicore
ai api
ai-api
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
Procaine
========
**Procaine** is a REST client library for SAP AI Core API. Reduces the pain.
Installation
------------
To use *Procaine*, first install it using pip:
.. code-block:: console
$ 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/
Raw data
{
"_id": null,
"home_page": "",
"name": "procaine",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "AI Core,AICore,AI API,ai-api",
"author": "romk",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/4e/74/e5e19a41599089865792aaae45cf7c20b06ebfedb26d6e31f355aba0cf46/procaine-0.4.1.tar.gz",
"platform": null,
"description": "Procaine\n========\n\n**Procaine** is a REST client library for SAP AI Core API. Reduces the pain.\n\n\nInstallation\n------------\n\nTo use *Procaine*, first install it using pip:\n\n.. code-block:: console\n\n $ pip install procaine\n\n\nUsage\n-----\n\nRun a flow::\n\n >>> from procaine import aicore\n\n >>> auth = {\"url\": AUTH_URL, \"clientid\": CLIENT_ID, \"clientsecret\": CLIENT_SECRET}\n >>> api = aicore.Client(AI_API_URL, auth)\n\n >>> hello = api.create_execution(\"hello-world\")\n >>> hello\n {'id': 'e96bc32ee9bf9e63', 'message': 'Execution scheduled', 'status': 'UNKNOWN', 'targetStatus': 'COMPLETED'}\n\n >>> api.execution(hello)\n { ... 'status': 'COMPLETED', ... 'targetStatus': 'COMPLETED'}\n \n >>> logs = api.execution_logs(hello)\n >>> print(logs)\n _____________ \n < hello world >\n ------------- \n \\\n \\\n\t\\ \n\t\t ## . \n\t\t## ## ## == \n\t ## ## ## ## === \n\t /\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"\"___/ === \n ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~ \n\t \\______ o __/ \n\t \\ \\ __/ \n\t \\____\\______/ \n\n\nDocumentation\n-------------\n\nMore usage examples and detailed documentation could be found on https://procaine.readthedocs.io/\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A REST client library for SAP AI Core API.",
"version": "0.4.1",
"split_keywords": [
"ai core",
"aicore",
"ai api",
"ai-api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "df78b0940e9cbd931d618bb7e5c35428c160e01b9a0c67e50cd17eb859f3eb40",
"md5": "924ae3ca0dce2f39027f5d133ae05e19",
"sha256": "8aed80b6ccdce1a7892c44ac77c3a4bd89a76419983145af577c1e5f2dd1c6fb"
},
"downloads": -1,
"filename": "procaine-0.4.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "924ae3ca0dce2f39027f5d133ae05e19",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 13719,
"upload_time": "2023-04-06T13:20:16",
"upload_time_iso_8601": "2023-04-06T13:20:16.842129Z",
"url": "https://files.pythonhosted.org/packages/df/78/b0940e9cbd931d618bb7e5c35428c160e01b9a0c67e50cd17eb859f3eb40/procaine-0.4.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4e74e5e19a41599089865792aaae45cf7c20b06ebfedb26d6e31f355aba0cf46",
"md5": "6fbce27ba2f463559a1b1129067f62e6",
"sha256": "955488ed8028cf6bdb62a81c3c8ace45ac5867fcc74bfe724a8ded15b2a0c63a"
},
"downloads": -1,
"filename": "procaine-0.4.1.tar.gz",
"has_sig": false,
"md5_digest": "6fbce27ba2f463559a1b1129067f62e6",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 12923,
"upload_time": "2023-04-06T13:20:19",
"upload_time_iso_8601": "2023-04-06T13:20:19.432323Z",
"url": "https://files.pythonhosted.org/packages/4e/74/e5e19a41599089865792aaae45cf7c20b06ebfedb26d6e31f355aba0cf46/procaine-0.4.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-06 13:20:19",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "procaine"
}