Gen.IA.L CAPA Python SDK 🛡️
SDK cliente oficial para integrar el motor de gobernanza de privacidad y cumplimiento normativo (Ley 21.719 - Chile) de Gen.IA.L CAPA en tus aplicaciones, CRMs y agentes de Inteligencia Artificial.
📦 Instalación
uv add genial-capa
# o con pip
pip install genial-capa
🚀 Uso Rápido
1. Cliente Asíncrono (AsyncCapaClient)
import asyncio
from genial_capa import AsyncCapaClient
async def main():
async with AsyncCapaClient(api_key="sk_capa_tu_api_key_aqui") as capa:
decision = await capa.evaluate(
text="El paciente Juan Pérez, RUT 12.345.678-5, presenta hipertensión.",
destination="ExternalLLM",
operation="PROMPT_ANALYSIS",
)
print("Veredicto:", decision.verdict) # ALLOW, MASK, DENY
print("Texto seguro:", decision.sanitized_text)
asyncio.run(main())
2. Decorador @enforce (Intercepción Automática)
from genial_capa import enforce
@enforce(operation="CUSTOMER_SUPPORT", destination="ExternalLLM")
async def consultar_ia(prompt: str) -> str:
# Si la política es MASK, 'prompt' llega automáticamente anonimizado
# Si la política es DENY, la función nunca se ejecuta y lanza CapaPolicyViolationError
return f"Respuesta para: {prompt}"
Metadata
Release files for genial-capa 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| genial_capa-0.1.0.tar.gz | 34.0 kB | With provenance | Details for genial_capa-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| genial_capa-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for genial_capa-0.1.0-py3-none-any.whl |
Total release size: 46.8 kB
Release files / genial_capa-0.1.0.tar.gz
| Download URL | genial_capa-0.1.0.tar.gz |
|---|---|
| Size | 34.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5cf3b7b582ae4a3a337e21be04cd0871f277662d259971236bdee136a528e8e
|
|
BLAKE2b-256 checksum How to use checksums |
81b4a2fdd0b73b8b7f3a41b03028497fcf72fa9177e87dfc3245e0c2a2ce3a77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logRelease files / genial_capa-0.1.0-py3-none-any.whl
| Download URL | genial_capa-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67efb6c8ae717736bca4b076b1726f8dcb0e03f2100694417c62d3b316a3beb9
|
|
BLAKE2b-256 checksum How to use checksums |
84292acff7e43bd74358d23d03738ea38ed1e591ecda5fd11581c9e3aa171a89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logSecurity for genial-capa 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for genial_capa-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 31, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.