Skip to main content

Waylay Python SDK.

Project description

Waylay Python SDK

Python SDK for the Waylay Platform.

This waylay-sdk-core package provides a basic SDK client for the Waylay REST apis.

See Waylay Docs for documentation.

Installation

This package requires a python runtime 3.9 or higher.

The basic client can be installed with

pip install waylay-sdk-core

This client provides configuration, authorization and plugin features for the SDK.

It includes a generic http client to make authenticated calls to the services available on your Waylay gateway endpoint.

Support for specific Waylay services or tools is provided by separate extension packages.

See waylay-sdk to install a client that includes the recommended extensions.

Basic usage

Interactive Authentication

When used outside the Waylay platform (e.g. in a python notebook) the client requires you to provide

  • the gateway endpoint: api.waylay.io for Enterprise users,
  • an API key-secret pair: see Waylay Console at >Settings>Authentication keys.
from waylay.sdk import WaylayClient

# this will interactively request the gateway and credentials on first usage.
client = WaylayClient.from_profile()

# list the available service packages
client.services

# use the generic api client to see the status page of the 'registry' service.
resp = await client.api_client.request('GET', '/registry/v2')

Credentials and endpoints are stored in a local profile file (you can have multiple such profiles). Other authentication methods are available (JWToken, pass apiKey/Secret directly)

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_core-0.2.4.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

waylay_sdk_core-0.2.4-py3-none-any.whl (35.8 kB view details)

Uploaded Python 3

File details

Details for the file waylay_sdk_core-0.2.4.tar.gz.

File metadata

  • Download URL: waylay_sdk_core-0.2.4.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.0

File hashes

Hashes for waylay_sdk_core-0.2.4.tar.gz
Algorithm Hash digest
SHA256 1e4a2fa30aa9d4bf457aa630858bbfe939e8088eb862af301a08a32f4f47f0aa
MD5 e6478f3664ed147d8a63d91471cf21ce
BLAKE2b-256 a5e4fe8d6521acf68d8dd59fdd9c927b496fa049922a216b610db1243b835d35

See more details on using hashes here.

File details

Details for the file waylay_sdk_core-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for waylay_sdk_core-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 20b5f24f0400ab1360edaf35d1be41a488239a6cdce9dff282b3ce2e30c80554
MD5 d2ff8ecc386cc9beee60d6d93c3e00c1
BLAKE2b-256 bae50ac28c6ae6db2be0606f72a300b3118e855e836cc17e48f43ba0dc760a40

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