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 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-rules and waylay-sdk-rules-types are included in:pip install waylay-sdk[rules,rules-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-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
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-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2aacc4bede8056bf98bd9683fe5d11da9dd23dd8a22b7e7ff429308615c2b1f |
|
MD5 | 408b95e61fe33a54f738a32197818e4f |
|
BLAKE2b-256 | 277d60aff7e6544eef34fc5158b464cc5d6f6324741ffb07ebd76ab2517d69dc |
File details
Details for the file waylay_sdk_rules-6.5.0rc1-py3-none-any.whl
.
File metadata
- Download URL: waylay_sdk_rules-6.5.0rc1-py3-none-any.whl
- Upload date:
- Size: 27.2 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 | e752d7a627da2ec2d47cf148bb5c5ad383a3f81ea625814e22fdfe2e416d1177 |
|
MD5 | 612db92e1ca51e79265a342e539ab941 |
|
BLAKE2b-256 | 6d715e3344e32f3ec6f0693f6910383eced50ea15807161b23c739f4a2f6174b |