Waylay Python SDK.
Project description
Waylay Python SDK
Python SDK for the Waylay Platform.
This waylay-sdk-core
package provides a basic SDK client for the Waylay REST apis.
See Waylay Docs for documentation.
Installation
This package requires a python runtime 3.9
or higher.
The basic client can be installed with
pip install waylay-sdk-core
This client provides configuration, authorization and plugin features for the SDK.
It includes a generic http client to make authenticated calls to the services available on your Waylay gateway endpoint.
Support for specific Waylay services or tools is provided by separate extension packages.
See waylay-sdk
to install a client that includes the recommended extensions.
Basic usage
Interactive Authentication
When used outside the Waylay platform (e.g. in a python notebook) the client requires you to provide
- the gateway endpoint:
api.waylay.io
for Enterprise users, - an API key-secret pair: see Waylay Console at >Settings>Authentication keys.
from waylay.sdk import WaylayClient
# this will interactively request the gateway and credentials on first usage.
client = WaylayClient.from_profile()
# list the available service packages
client.services
# use the generic api client to see the status page of the 'registry' service.
resp = await client.api_client.request('GET', '/registry/v2')
Credentials and endpoints are stored in a local profile file (you can have multiple such profiles). Other authentication methods are available (JWToken, pass apiKey/Secret directly)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file waylay_sdk_core-0.2.0.tar.gz
.
File metadata
- Download URL: waylay_sdk_core-0.2.0.tar.gz
- Upload date:
- Size: 28.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b855b79f5cdf4228747dcc00ec51595ad47e2c3b83b29e79d85c016d75009de3 |
|
MD5 | 43a450e85654c36d2ad0a4297c5b98ff |
|
BLAKE2b-256 | 7ac015e538136a462980e6a1033cb876f9fee6c8f736007fcfde130f8f7bce6a |
File details
Details for the file waylay_sdk_core-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: waylay_sdk_core-0.2.0-py3-none-any.whl
- Upload date:
- Size: 34.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b522969ceebbd4fb2ceafe9a951ca134b2af194578aeef768ee3c2849cf4cc67 |
|
MD5 | 87fafb25e2f2d5817e887441ce1ba454 |
|
BLAKE2b-256 | 9b4b31041f3929d2c0c074e20d5a82df2396230eeda8f5aa00ee3578c7fc1b14 |