Skip to main content

Composition root and plugin discovery for generic-ml-cache: discovers gmlcache.adapters plugins (with load-time whitelisting and provenance trust) and wires the application.

Project description

generic-ml-cache-bootstrap

The composition root and plugin discovery for gmlcache

The startup layer that assembles the application. It discovers the gmlcache.adapters plugins (whitelisting them at load time and judging which distributions are trusted), then wires the core use cases to the concrete adapters and hands the drivers a ready application API.

It is the one place that freely wires both core and adapters — the composition root in hexagonal terms. The drivers (cli, daemon) get their wired application from bootstrap and reach the domain only through the inbound ports of that ApplicationApi bundle; the DB-backed adapters are grouped behind an injectable PersistenceBackend, so no driver ever touches a raw connection. A driver keeps only a few deliberate direct edges to adapters, each a driver-policy choice rather than domain wiring: the CLI's own encrypt/decrypt/rotate command helpers (the crypto adapters) and its demo stub adapter, and each driver selecting its own diagnostics (logging) adapter. An adapter never imports bootstrap (that would be a leaf calling the composition root). These edges are frozen by import-linter contracts.

Install

You normally get it transitively (pip install generic-ml-cache-cli pulls it in). Installed on its own:

pip install generic-ml-cache-bootstrap

License

Apache-2.0 — see LICENSE and NOTICE.

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

generic_ml_cache_bootstrap-1.0.0.tar.gz (36.6 kB view details)

Uploaded Source

Built Distribution

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

generic_ml_cache_bootstrap-1.0.0-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

Details for the file generic_ml_cache_bootstrap-1.0.0.tar.gz.

File metadata

File hashes

Hashes for generic_ml_cache_bootstrap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 501252965dd2b26bef9983f2f927c53b622ac919d9013a90917083f50dd1f8bc
MD5 bbc1830c0c7bf9cd1ab6c874585a0714
BLAKE2b-256 d8e26d59e94b45327fd3e574319f7d863e5217971acd403131c11cae6e9645fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for generic_ml_cache_bootstrap-1.0.0.tar.gz:

Publisher: release.yml on danielslobozian/generic-ml-cache

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file generic_ml_cache_bootstrap-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for generic_ml_cache_bootstrap-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dd36d3db821a8db8099952a4a75978905856affbf51f8516446ef994a8c6dafd
MD5 dc757210d1b1eef5a1fe27e0e0be1641
BLAKE2b-256 52f29826f2f9fae0621f58b40ea239ae765c1dcbb5bb501072f9f9c3d9e5b5f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for generic_ml_cache_bootstrap-1.0.0-py3-none-any.whl:

Publisher: release.yml on danielslobozian/generic-ml-cache

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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