Skip to main content

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 install waylay-sdk along with only this service, or
  • pip install waylay-sdk[services] to install waylay-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 install waylay-sdk along with only this service including the typed models, or
  • pip install waylay-sdk[services,services-types] to install waylay-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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

waylay-sdk-registry-2.12.4rc1.tar.gz (39.1 kB view details)

Uploaded Source

Built Distribution

waylay_sdk_registry-2.12.4rc1-py3-none-any.whl (49.0 kB view details)

Uploaded Python 3

File details

Details for the file waylay-sdk-registry-2.12.4rc1.tar.gz.

File metadata

File hashes

Hashes for waylay-sdk-registry-2.12.4rc1.tar.gz
Algorithm Hash digest
SHA256 a919f05b1a9b1248c44751a56eb7618233becc9f59d4ad44547eb5bbe6edc260
MD5 85de095626881b119441648bebe6fdb7
BLAKE2b-256 c6a8d5338fb26540cbaf570e2afe5a3e39476aba10124c14947d51bab005170e

See more details on using hashes here.

File details

Details for the file waylay_sdk_registry-2.12.4rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for waylay_sdk_registry-2.12.4rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 6591938c700456245571c1ad7726cd51d07e30c503a194ba0322e89784e02306
MD5 a34fe9100eceb12f7370eb7b80c99a1c
BLAKE2b-256 faf99bcda1b0a95f6b920d3c00f5493678792fa160cb18967420bf1703a0b30d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page