IBM CPD Orchestration Python Client
This package supports users in usage of CPD Orchestration. It's primary usage is to enable users to store artifact results of a Orchestration Flow run.
Usage
Client construction
CPDOrchestration client is constructed from IAM APIKEY, which can be provided
in a few ways:
-
explicitly:
from ibm_cpp_orchestration import CPDOrchestration client = CPDOrchestration(apikey) # or client = CPDOrchestration.from_apikey(apikey)
-
implicitly:
APIKEY=... export APIKEY
from ibm_cpp_orchestration import CPDOrchestration client = CPDOrchestration() # or client = CPDOrchestration.new_instance() # or client = CPDOrchestration.from_apikey()
All of the above may also define service_name and url.
Usage in Python notebooks
Notebooks run in Orchestration Platform get inputs and expose outputs as a node in Orchestration Flow:
{
"id": ...,
"type": "execution_node",
"op": "run_container",
"app_data": {
"pipeline_data": {
"name": ...,
"config": {
"link": {
"component_id_ref": "run-notebook"
}
},
"inputs": [
...,
{
"name": "model_name",
"group": "env_variables",
"type": "String",
"value_from": ...
}
],
"outputs": [
{
"name": "trained_model",
"group": "output_variables",
"type": {
"CPDPath": {
"path_type": "resource",
"resource_type": "asset",
"asset_type": "wml_model"
}
}
}
]
}
},
...
}
Inside of the notebook, inputs are available as environmental variables:
model_name = os.environ['model_name']
Outputs are exposed using sdk method, store_results:
client = CPDOrchestration.from_apikey(...)
client.store_results({
"trained_model": ... // cpd path to the trained model
})
Other features
Client also provides a method to get WML instance credentials:
client.get_wml_credentials() # the scope passed in notebook
# or
client.get_wml_credentials("cpd://projects/123456789")
Contribution
See a separate document on contribution.
Metadata
Release files for ibm-cpp-orchestration 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ibm-cpp-orchestration-0.1.0.tar.gz | 11.7 kB | Without provenance | Details for ibm-cpp-orchestration-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ibm_cpp_orchestration-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ibm_cpp_orchestration-0.1.0-py3-none-any.whl |
Total release size: 28.1 kB
Release files / ibm-cpp-orchestration-0.1.0.tar.gz
| Download URL | ibm-cpp-orchestration-0.1.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ad41b3bb181c856d901e86260a80ffb30e527a9e755fe6c96e853c317722e46
|
|
BLAKE2b-256 checksum How to use checksums |
72bd48c6ea82832bca3dbd0f19e76a104ddd835cf40f02f0c5e0218811ba8fd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|
Release files / ibm_cpp_orchestration-0.1.0-py3-none-any.whl
| Download URL | ibm_cpp_orchestration-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6dce1b0cec7628815a2cbcb4a7d26fdf0a53dbfc8088b095694fa9090c7c50b2
|
|
BLAKE2b-256 checksum How to use checksums |
a58cd4e2cfb64e5816b8229ea1f07d3c45bd68319692be536081a3f9edde28d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.9.0
|
Security for ibm-cpp-orchestration 0.1.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.