Skip to main content

Waylay rules engine

Project description

Waylay Rules Service

The REST api to manage rule tasks and rule templates in the Waylay platform.

This Python package is automatically generated based on the Waylay Rules OpenAPI specification (API version: 6.5.0)

It consists of a plugin for the waylay-sdk package, and contains the Rules 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-rules-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-rules is included in:

  • pip install waylay-sdk[rules] 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-rules and waylay-sdk-rules-types are included in:
  • pip install waylay-sdk[rules,rules-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-rules-types` is installed
from rules.models.execute_plugs_specification import ExecutePlugsSpecification
from rules.models.transformer_execution_result import TransformerExecutionResult
try:
    # Execute Specified Transformer Version
    # calls `POST /rules/v1/transformers/{name}/versions/{version}`
    api_response = await waylay_client.rules.plugs_execution.execute_transformer_version(
        'name_example', # name | path param "name"
        'version_example', # version | path param "version"
    )
    print("The response of rules.plugs_execution.execute_transformer_version:\n")
    pprint(api_response)
except ApiError as e:
    print("Exception when calling rules.plugs_execution.execute_transformer_version: %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-rules-6.5.0rc1.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

waylay_sdk_rules-6.5.0rc1-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

File details

Details for the file waylay-sdk-rules-6.5.0rc1.tar.gz.

File metadata

  • Download URL: waylay-sdk-rules-6.5.0rc1.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for waylay-sdk-rules-6.5.0rc1.tar.gz
Algorithm Hash digest
SHA256 c2aacc4bede8056bf98bd9683fe5d11da9dd23dd8a22b7e7ff429308615c2b1f
MD5 408b95e61fe33a54f738a32197818e4f
BLAKE2b-256 277d60aff7e6544eef34fc5158b464cc5d6f6324741ffb07ebd76ab2517d69dc

See more details on using hashes here.

File details

Details for the file waylay_sdk_rules-6.5.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for waylay_sdk_rules-6.5.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 e752d7a627da2ec2d47cf148bb5c5ad383a3f81ea625814e22fdfe2e416d1177
MD5 612db92e1ca51e79265a342e539ab941
BLAKE2b-256 6d715e3344e32f3ec6f0693f6910383eced50ea15807161b23c739f4a2f6174b

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