Skip to main content

beta release of the Waylay Python SDK

Project description

waylay-beta

⚠️ This package is DEPRECATED. Please migrate to waylay-sdk

This Python SDK helps you to connect with the REST APIs of the Waylay Platform.

It provides a selection of services and utilities, focused on supporting our data science users:

  • importing and querying timeseries data.
  • uploading your own machine learning models for usage in the Waylay Rule Engine
  • provisioning waylay resources and resource types.

The SDK is optimised for interactive usage in Jupyter Notebooks.

Prerequisites

This package requires a python runtime 3.9 or higher (validated up to 3.11). For datascience purposes you typically want to prepare an anaconda environment:

conda create --name my_waylay_env python=3.11
conda activate my_waylay_env
conda install jupyter
pip install waylay-beta
jupyter notebook 

Installation

pip install waylay-beta

BYOML dependencies

If you want to prepare BYOML models (Enterprise), extra dependency configurations are available, that will check or install framework-specific dependencies.

Either for a specific runtime:

byoml-pytorch-1.4, byoml-tensorflow-2.4, byoml-pytorch-1.8, byoml-xgboost-1.3, byoml-sklearn-0.24, byoml-pytorch-1.5, byoml-sklearn-0.22, byoml-xgboost-1.0, byoml-custom-1.0, byoml-tensorflow-2.1

or for the default runtime of one of the supported frameworks:

byoml-xgboost, byoml-tensorflow, byoml-sklearn, byoml-custom, byoml-pytorch

E.g. to install with sklearn dependencies for byoml:

pip install waylay-beta['byoml-sklearn-0.24']

or

pip install waylay-beta['byoml-sklearn']

In some cases (e.g. older framework versions) it might be needed to use the same python version when serializing models. Check the supported python version with calls such as:

> waylay_client.byoml.runtimes.get('byoml-pytorch-1.8')
{'framework': 'pytorch', 'framework_version': '1.8', 'name': 'byoml-pytorch-1.8', 'python_version': '3.7'}

Quickstart

  • Login to the waylay console, and get hold of an API key, API secret pair [>Settings>Authentication keys]

    [Enterprise] https://console.waylay.io

  • Create an SDK client

    from waylay import WaylayConfig, WaylayClient
    waylay_client = WaylayClient.from_profile()
    

    On first usage, this will prompt for a gateway endpoint,

    [Enterprise] api.waylay.io (default)

    and your API key/API secret credentials.

For more details see

[Enterprise] https://docs.waylay.io

Usage Examples

See demo notebooks for the usage examples supported in the current release.

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_beta-0.7.3.tar.gz (107.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_beta-0.7.3-py3-none-any.whl (113.2 kB view details)

Uploaded Python 3

File details

Details for the file waylay_beta-0.7.3.tar.gz.

File metadata

  • Download URL: waylay_beta-0.7.3.tar.gz
  • Upload date:
  • Size: 107.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for waylay_beta-0.7.3.tar.gz
Algorithm Hash digest
SHA256 ce27047cd1849653b4b3cb117b16a53c4b715c12bb519dc4c0ae7e48aa312852
MD5 f103910ef99c103842e510473f192e77
BLAKE2b-256 d84004e886fe4078d8639345c2433524f9773e6eb21525aa1158074fbb62b9a1

See more details on using hashes here.

File details

Details for the file waylay_beta-0.7.3-py3-none-any.whl.

File metadata

  • Download URL: waylay_beta-0.7.3-py3-none-any.whl
  • Upload date:
  • Size: 113.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for waylay_beta-0.7.3-py3-none-any.whl
Algorithm Hash digest
SHA256 84db096c2e9fb1011a10e9681b7323b1aa8bea139795b1b6ea28a2696be9817e
MD5 70c5fcf2534068d1b68e058c1e4081be
BLAKE2b-256 dc725a375970beefc8215373d49c4947f746b49468f238a4009034db60a00fb3

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