Skip to main content

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 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 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


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-2.14.0.20240327.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

waylay_sdk_data-2.14.0.20240327-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file waylay-sdk-data-2.14.0.20240327.tar.gz.

File metadata

File hashes

Hashes for waylay-sdk-data-2.14.0.20240327.tar.gz
Algorithm Hash digest
SHA256 ca23447062203f525c4eeb875ebf00f47151d550eac45762de8057e24b57dfc8
MD5 2de04276ab19c8250522e36435b1d424
BLAKE2b-256 223404c72e512b0c4debb17399cf47e371b48b8317d6faf719aa377f30e3c984

See more details on using hashes here.

File details

Details for the file waylay_sdk_data-2.14.0.20240327-py3-none-any.whl.

File metadata

File hashes

Hashes for waylay_sdk_data-2.14.0.20240327-py3-none-any.whl
Algorithm Hash digest
SHA256 a8da066b3eec4dfdde6d6f15cfaac7372d0e411b7a3d9ce8fabd64f88fa95178
MD5 e8d459149aa9a789f134aedae54716f9
BLAKE2b-256 d0c3f5460f487796b26300a78503dd9b13a881f7b15c56e3b4fae2fa9a8651c3

See more details on using hashes here.

Supported by

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