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.10 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-1.0.0.tar.gz (29.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_core-1.0.0-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: waylay_sdk_core-1.0.0.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for waylay_sdk_core-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2a788bebf1008925aa6149fdbb7f1f17f2beab4c7b490d1faf563199c00154a8
MD5 7e656f6422286770523f18eee598bb8b
BLAKE2b-256 6bd7dbfe6c8d700042f30e6af8538734d236091722bc80691fe11ca69e4a0b9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for waylay_sdk_core-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9db08a3fae7ef4e87a97e49e1554f49274a131640ce751200afa5e12046e7d9b
MD5 f995c497b622fecaae7c62d708d7e2d2
BLAKE2b-256 8329d17d025c9bd3382146e78e637266877f73b28842af6eb048f63c3796a2e9

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