Skip to main content

Boolean SDK: ACS permission checks with memory and Redis caching

Project description

boolean-sdk

Python SDK for ACS permission checks with in-memory and Redis caching.

from boolean.sdk import ACSClient, BooleanSDKConfig

config = BooleanSDKConfig(
    acs_base_url="https://example.com/acs",
    redis_url="redis://localhost:6379/0",
)
with ACSClient(config) as client:
    result = client.check_permission(token, "juzgado", "sentencias", "write")
    assert result.allowed in (True, False)

Publicar en PyPI

  1. Cuenta en pypi.org y un API token (scope para todo el usuario o solo el proyecto boolean-sdk tras el primer upload).

  2. Desde esta carpeta (sdk/python):

    python -m pip install build twine
    python -m build
    twine check dist/*
    TWINE_USERNAME=__token__ TWINE_PASSWORD=pypi-XXXXXXXX twine upload dist/*
    

    Sustituí pypi-XXXXXXXX por el token que te muestra PyPI.

Para probar antes en TestPyPI: twine upload --repository testpypi dist/* (crear cuenta y token en test.pypi.org).

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

boolean_sdk-0.1.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

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

boolean_sdk-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file boolean_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: boolean_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.9

File hashes

Hashes for boolean_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 20ef3b821ed7ce89bd1f94d670919d109bb85eda6e1e62a9c94f7f87d3a84f90
MD5 330f7317315f31021a80eeeb67304231
BLAKE2b-256 9f5b913bdb7edb15879b2deebd472f434e56d0cd03588b97114b178e6558813a

See more details on using hashes here.

File details

Details for the file boolean_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: boolean_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.9

File hashes

Hashes for boolean_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd9266be5ddeedb29e176a180ac58d9116d18567462aed257987503e18b066f0
MD5 230ea27d4cbd13ba36b79a97a64ab037
BLAKE2b-256 3a8ed077f385d19a7eb5cb3731ecca2098b203b90e644987132a524abcf71d1f

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