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-0.29.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-0.29.0-py3-none-any.whl (35.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for generic_ml_cache_bootstrap-0.29.0.tar.gz
Algorithm Hash digest
SHA256 84410d02dcd22c13f23c4b2c903483536f7a52fff8e5dddc24459abb937e13aa
MD5 9be331debe8c08492805a0e9cca04790
BLAKE2b-256 7e5b67bdc89536cc43d62372463687b1d3cbf4223d0ec7a47cd8b541b07a0f70

See more details on using hashes here.

Provenance

The following attestation bundles were made for generic_ml_cache_bootstrap-0.29.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-0.29.0-py3-none-any.whl.

File metadata

File hashes

Hashes for generic_ml_cache_bootstrap-0.29.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17aab4cdd3104c2ba174cb0c6307b5c96e0d6b0a582ce1e98dd2da60644cfb8a
MD5 e75ff643fe41009f38b6f48b3a619c81
BLAKE2b-256 f6895e6e83bb839ef06d43d827eed9ec0a1ddf1e3821f4bfa5b3e2c4ef1f8467

See more details on using hashes here.

Provenance

The following attestation bundles were made for generic_ml_cache_bootstrap-0.29.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