Skip to main content

Waylay Broker Types

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 is considered an extension of the waylay-sdk-data package, and it consists of the typed model classes for all path params, query params, body params and responses for each of the api methods in waylay-sdk-data.

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 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-data and waylay-sdk-data-types are included in:
  • pip install waylay-sdk[data,data-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-data-types` is installed
from ..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


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-data-types-2.14.0rc1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

waylay_sdk_data_types-2.14.0rc1-py3-none-any.whl (41.7 kB view details)

Uploaded Python 3

File details

Details for the file waylay-sdk-data-types-2.14.0rc1.tar.gz.

File metadata

File hashes

Hashes for waylay-sdk-data-types-2.14.0rc1.tar.gz
Algorithm Hash digest
SHA256 0c0f129546275f0959a96d24a13e8185170eefeb2154d9bfbf748ea76dc8e3a4
MD5 10c9f4ac19a4c2b1d3eb85a631931fea
BLAKE2b-256 4d61af7d4fa16df9e4670ac8a2be64124142a0594c1bb50c69c6f8bc54e6d3e3

See more details on using hashes here.

File details

Details for the file waylay_sdk_data_types-2.14.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for waylay_sdk_data_types-2.14.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 610d7815392e65d55485306700bdaecec413fd1649979cf914c4fdebf0db9024
MD5 60cc4c41e6d2a9f1832ead2b5a1447dd
BLAKE2b-256 4b6b1642e7cd6bad540e3eaa2b11a48b388dd8a7e5c51b4effae5f8d5ba0c0db

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