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.3.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.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rlaas_sdk-1.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 23643fdd263e00f2c970aba61c33ed54b71f101ab6574cc64c9862d53cbfbea5
MD5 2fff55c2a88e83f417113161c75a9316
BLAKE2b-256 0411638808d3d8dfb8e500c0cf7ae03c08619254a5243b77f8647d92fda29954

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rlaas_sdk-1.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d6c3e5dc03ded3d5972dbb5fef9039d37c7cba5b8ad6188fa0abc6f02f7e6790
MD5 6ce0a1f81075e8fcf92c01f4bf3d192b
BLAKE2b-256 8d15d5f614ef2c5bf4a1c21ba0e2ed87a0f18eda57ee9fd06ad4735a9ce37b1f

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