...
Official Python2/3 client to Intercax’s Syndeia Cloud v3.5 SP1 REST API.
This Python package is automatically generated by the OpenAPI Generator project:
API version: 3.5 SP1
Package version: 3.5.01
Build package: org.openapitools.codegen.languages.PythonClientCodegen
...
(Ana)conda Package Manager
Python 2.7 and 3.5+ (natively or via Conda)
Connection details of Intercax Syndeia Cloud v3.5 SP1 server
Credentials to access Intercax Syndeia Cloud v3.5 SP1 server
Installation & Uninstallation
...
Code Block | ||
---|---|---|
| ||
conda install /some/path/syndeia_cloud_35x_client_sdk-3.5.01-py_0.tar.bz2 # ex: for v3.5.0.21, update as appropriate |
conda uninstall
...
The general pattern is to:
Instantiate the configuration (once) with the Syndeia Cloud URL, your username, and password (see STEPs 2-3 in Quickstart below)
Instantiate the API client using the configuration from previous step (see STEP 4 in Quickstart below)
Use the API client object to instantiate other main API classes, such as:
AuthAPI for sign-in and other authentication calls (see STEP 5 in Quickstart below).
UserAPI for create, read, update, delete operations on users
RepositoryAPI for create, read, update, delete operations on repositories (see STEP 6 in Quickstart below)
ContainerAPI for create, read, update, delete operations on containers (see STEP 7 in Quickstart below)
ArtifactAPI for create, read, update, delete operations on artifacts (see STEP 8 in Quickstart below)
RelationAPI for create, read, update, delete operations on relations (see STEP 9 in Quickstart below)
(Strictly speaking, steps 6+ are optional but it will show you how to make sample calls to some of the core endpoint concepts, ie: Repositories, Containers, Artifacts, and Relations)
...
To use the Syndeia Cloud python3 client SDK in Jupyter Notebook:
Ensure that you have already installed the SDK (see conda install section above) & JupyterLab/Notebook (
conda install jupyterlab
orconda install notebook
).Launch JupyterLab/Notebook (ex: via Anaconda-Navigator or the CLI) and open the provided example iPython Notebook file (
syndeia_cloud_3.5.0_client_sdk_example.ipynb
) from the accompanyingsyndeia_cloud_35x_client_sdk...-py_0_docs
package:Edit the 3rd cell to specify your deployment’s Syndeia Cloud’s
configuration.host
andconfiguration.username
values as described in the comments.Click in the side area of the editing area and select all cells via Command-A (on Mac) or CTRL-A (on Windows)
Run the selected cells by hitting Shift-Enter.
You will be prompted for your specified user’s password, enter it in.
After submitting it, you should get results similar to the below for some of the cells ( the exact results will differ depending on what data you have, if any, on the server)
If one of the outputs is too verbose, you can encapsulate results in a scrollable area by R-clicking the side area next to a cell and selecting Enable Scrolling for Outputs to make navigating the Jupyter notebook easier.
Authorization
Syndeia Cloud 3.5 currently supports Basic Auth + an LDAP(S) + SAML2 authentication provider
Syndeia Cloud 3.5 repositories currently support Basic + OAuth
...
Unzip the syndeia_cloud_35x_client_sdk-3.5.01-py_0_docs.zip
, you should see the following file listing:
...