Waylay Function Registry
Project description
Waylay Registry Service
V2 API to build and deploy Waylay functions (plugs, webscripts, BYOML models).
This Python package is automatically generated based on the Waylay Registry OpenAPI specification (API version: 2.12.4)
It consists of a plugin for the waylay-sdk package, and contains the Registry api methods. Note that the typed model classes for all path params, query params, body params and responses for each of the api methods are contained in a separate package called waylay-sdk-registry-types.
Requirements.
This package requires Python 3.9+.
Installation
Typically this package is installed when installing the waylay-sdk package to enable the service's functionality. When the service api methods are required, waylay-sdk-registry is included in:
pip install waylay-sdk[registry]
to installwaylay-sdk
along with only this service, orpip install waylay-sdk[services]
to installwaylay-sdk
along with all services. When the typed models are required, both waylay-sdk-registry and waylay-sdk-registry-types are included in:pip install waylay-sdk[registry,registry-types]
to installwaylay-sdk
along with only this service including the typed models, orpip install waylay-sdk[services,services-types]
to installwaylay-sdk
along with all services along with the typed models.
Usage
from pprint import pprint
# Import the waylay-client from the waylay-sdk package
from waylay.sdk.client import WaylayClient
from waylay.sdk.api.api_exceptions import ApiError
# Intialize a waylay client instance
waylay_client = WaylayClient.from_profile()
# Note that the typed model classes for responses/parameters/... are only available when `waylay-sdk-registry-types` is installed
from registry.models.function_type import FunctionType
from registry.models.job_state_result import JobStateResult
from registry.models.job_type_schema import JobTypeSchema
from registry.models.jobs_response import JobsResponse
try:
# List Jobs
# calls `GET /registry/v2/jobs/`
api_response = await waylay_client.registry.jobs.list(
# query parameters:
query = {
},
)
print("The response of registry.jobs.list:\n")
pprint(api_response)
except ApiError as e:
print("Exception when calling registry.jobs.list: %s\n" % e)
Project details
Release history Release notifications | RSS feed
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-registry-2.12.4rc1.tar.gz
.
File metadata
- Download URL: waylay-sdk-registry-2.12.4rc1.tar.gz
- Upload date:
- Size: 39.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a919f05b1a9b1248c44751a56eb7618233becc9f59d4ad44547eb5bbe6edc260 |
|
MD5 | 85de095626881b119441648bebe6fdb7 |
|
BLAKE2b-256 | c6a8d5338fb26540cbaf570e2afe5a3e39476aba10124c14947d51bab005170e |
File details
Details for the file waylay_sdk_registry-2.12.4rc1-py3-none-any.whl
.
File metadata
- Download URL: waylay_sdk_registry-2.12.4rc1-py3-none-any.whl
- Upload date:
- Size: 49.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6591938c700456245571c1ad7726cd51d07e30c503a194ba0322e89784e02306 |
|
MD5 | a34fe9100eceb12f7370eb7b80c99a1c |
|
BLAKE2b-256 | faf99bcda1b0a95f6b920d3c00f5493678792fa160cb18967420bf1703a0b30d |