Skip to main content

Python SDK for RLAAS HTTP APIs

Project description

RLAAS Python SDK

Lightweight client for RLAAS HTTP APIs.

Install (local)

pip install -e .

Example

from rlaas_sdk import RlaasClient, CheckRequest

client = RlaasClient("http://localhost:8080")

decision = client.check_limit(CheckRequest(
    request_id="req-1",
    org_id="acme",
    tenant_id="retail",
    signal_type="http",
    operation="charge",
    endpoint="/v1/charge",
    method="POST",
    user_id="u1",
))

print(decision.allowed, decision.action, decision.reason)

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

rlaas_sdk-1.1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

rlaas_sdk-1.1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file rlaas_sdk-1.1.2.tar.gz.

File metadata

  • Download URL: rlaas_sdk-1.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for rlaas_sdk-1.1.2.tar.gz
Algorithm Hash digest
SHA256 3199d574eef3ebdf40d594b3d42a1452e5016422171936ad67fba879eb0c580b
MD5 18bea498855b15cb09b3587b8dc4a3f1
BLAKE2b-256 804f3f7b6a9cf93812018b86516e0f17d6ea2a9817a6b41a8c9fe2237d77e6b8

See more details on using hashes here.

File details

Details for the file rlaas_sdk-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: rlaas_sdk-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for rlaas_sdk-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f776df7e8f77063f11fbbbcc99c45e5de4540659ab168c78bf5f0f8cfa02baf
MD5 584d399387fff8c2eee9ffe934ce4fc4
BLAKE2b-256 6566c8701dd192504ab78a42ec9a2616ae47f62fc27c14eeab9b3e04de7fa655

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