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

Uploaded Source

Built Distribution

waylay_sdk_core-0.2.3-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for waylay_sdk_core-0.2.3.tar.gz
Algorithm Hash digest
SHA256 22a8f820549cf8b19600b61d72c1839009e9eca78563612be91080ff117abaf2
MD5 5ecc7ee51964027e787eb0d538abf9f5
BLAKE2b-256 69f0093c806ca501ce0a81b136ea66a8e8210b1c297ef3e7e68c854feb0a037c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waylay_sdk_core-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b02767ebbe88e9f5268384aed17fb0a3fc4d5dd98b84000563bfd4a1d2fff10b
MD5 473643c99174eb73cc46956a6614a8d4
BLAKE2b-256 9a83f458d4c2569492f563f4019a4ac5010cc049277cebb5288c681bd40e93dd

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