Skip to main content

LibreDTE: Bridge Python para la Biblioteca PHP (Core)

Bridge que expone, desde Python, las operaciones de libredte/libredte-lib-core, a través de libredte-lib-core-dispatcher, usando derafu-backbone-bridge como base.

Uso

from libredte_lib_core_bridge import Dispatcher

dispatcher = Dispatcher()  # environment='prod', debug=False por defecto

result = dispatcher.dispatch(
    'billing.identifier.caf_loader::load',
    xml=xml_base64,
)
caf = result.value
result.metadata  # ExecutionMetadata: tiempo, memoria, etc.

dispatch() nunca deja pasar un error de PHP sin tipar: lanza una excepción Python (derafu_backbone_bridge.BackboneBridgeError o una de sus subclases) en vez de una excepción PHP cruda. Esa excepción carga el Problem/ExecutionMetadata reales detrás del error (.problem, .metadata), no solo un mensaje y un nombre de clase.

Arquitectura

  • Dispatcher es una subclase de derafu_backbone_bridge.GenericDispatcher, pre-cableada con el Bootstrap::boot() de libredte-lib-core-dispatcher.

  • No sabe dónde vive el código PHP en disco: eso se resuelve vía la variable de entorno BACKBONE_DISPATCHER_AUTOLOAD (o pasando autoload_path explícito al construir Dispatcher).

  • No importa phpy en ningún punto: todo el manejo de phpy vive dentro de derafu-backbone-bridge.

Desarrollo

make install-dev
make check   # ruff + tests

Los tests requieren phpy (solo disponible dentro del contenedor docker-python3.14-caddy-server construido con PHPY_ENABLED=true) y una instalación real de libredte-lib-core-dispatcher (con sus propias dependencias de Composer) accesible en disco. No usan ningún fixture externo: generan un CAF real y válido en memoria vía el propio caf_faker::create de libredte-lib-core.

Términos y condiciones de uso

Este proyecto es software libre y puede ser redistribuido y/o modificado bajo los términos de la Licencia Pública General Affero de GNU (AGPL), versión 3 o (a elección) cualquier versión posterior. Ver COPYING.

Metadata

Release files for libredte-lib-core-bridge 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libredte-lib-core-bridge 0.3.0
File Size Uploaded Provenance Actions
libredte_lib_core_bridge-0.3.0.tar.gz 32.0 kB Without provenance Details for libredte_lib_core_bridge-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for libredte-lib-core-bridge 0.3.0
File Interpreter ABI Platform Actions
libredte_lib_core_bridge-0.3.0-py3-none-any.whl Python 3 none any Details for libredte_lib_core_bridge-0.3.0-py3-none-any.whl

Total release size: 62.0 kB

Release files / libredte_lib_core_bridge-0.3.0.tar.gz

Download URL libredte_lib_core_bridge-0.3.0.tar.gz
Size 32.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b177dd0a3770c4ab8539bfdafaa839847aa72b1c3d884200c277f179b646bb41
BLAKE2b-256 checksum
How to use checksums
42933559b2c2a8c19fd63b00ab56b22eaec105aeeb872925d39eeeaaf0780044
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / libredte_lib_core_bridge-0.3.0-py3-none-any.whl

Download URL libredte_lib_core_bridge-0.3.0-py3-none-any.whl
Size 30.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
413c3cbb5913b4adc6cdc707937ec08618b4a4e1dc32244604afb61b2cad4e6c
BLAKE2b-256 checksum
How to use checksums
cb18184af50bc4d4afd292edc382171bf31fe80905e1e3141a6aceffb488004f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for libredte-lib-core-bridge 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page