Waylay Broker
Project description
Waylay Data Service
Data is ingested into the platform by the Waylay Broker.
This Python package is automatically generated based on the Waylay Data OpenAPI specification (API version: 2.14.0)
It consists of a plugin for the waylay-sdk package, and contains the Data 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-data-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-data is included in:
pip install waylay-sdk[data]
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-data and waylay-sdk-data-types are included in:pip install waylay-sdk[data,data-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-data-types` is installed
from data.models.timestamped_resource_event import TimestampedResourceEvent
try:
# Stream Events For Resource
# calls `GET /data/v1/events/{resourceId}`
api_response = await waylay_client.data.events.stream_events(
'resource_id_example', # resource_id | path param "resourceId"
)
print("The response of data.events.stream_events:\n")
pprint(api_response)
except ApiError as e:
print("Exception when calling data.events.stream_events: %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
Hashes for waylay-sdk-data-2.14.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a35c50afb4aba0dde204cb8ce414d965f8b0a734f6e14f14fd954dec08c666f |
|
MD5 | b1a210d7c27a76c225d73bd16161cb0f |
|
BLAKE2b-256 | 3175bde5c96c7505fc2458e4c1a883694a5123f2680f885af103f4d351450967 |
Hashes for waylay_sdk_data-2.14.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccde5822101c7a292a061c786eae8b67590280befd02952c12483b58237cdd7c |
|
MD5 | a481cf88abae8f721f7b7ccbc3c320bd |
|
BLAKE2b-256 | 7d3c5e188a8138c98146d9191d7a4364c48b9180d76f3cbcd69c9b54c154e579 |