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.

Requiere Python 3.9+ (3.10 o superior recomendado).

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>=1" "twine>=6"
    python -m build
    python -m twine check dist/*
    TWINE_USERNAME=__token__ TWINE_PASSWORD=pypi-XXXXXXXX python -m twine upload dist/*
    

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

    Si twine check falla con Metadata is missing required fields: Name, Version y menciona Metadata-Version 2.3 como máximo, tenés Twine anterior a v6. Actualizá: python -m pip install -U "twine>=6" y volvé a ejecutar el check. El comando correcto es twine check o python -m twine check, no python twine check.

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

Integración y prueba manual

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.2.tar.gz (8.5 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.2-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: boolean_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 8.5 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.2.tar.gz
Algorithm Hash digest
SHA256 599c001b8018bfb491cafdcc1de564a8781ae93f55040976c93f6a4288454793
MD5 1483c208ad8c079f68140336bd8ff5a4
BLAKE2b-256 062547e970ee71483da63de22418a2a27adae395c0247bbd31a2fdb6b4ca61f6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: boolean_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc06e5a365f3b2aba9de1801b22d50b556b9cf213b0761c0a7d521566b9b517c
MD5 10ad6901d0d309d55d47d47c03993905
BLAKE2b-256 1a26ffc1691f104196d79386c6c7046def3d25087a76932f09ae880cde299518

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