How budecosystem/bud-microframe works
Project type and purpose
• This is a Python micro-framework library (“budmicroframe”) that helps microservices interact with Dapr crypto components.
• Its purpose is to wrap Dapr’s local crypto component (and other Dapr building blocks) behind a simple API (e.g., DaprServiceCrypto) so service authors can encrypt/decrypt data easily.
File structure
• Top-level modules:
• budmicroframe/commons – reusable helpers (config, logging, validators, resiliency, async utilities)
• budmicroframe/shared – high-level Dapr wrappers (dapr_service, dapr_workflow, http_client, psql_service)
• budmicroframe/internal – internal routes and main entrypoint (meta_routes.py, main.py)
• Configuration exists in commons/config.py, and type hints in py.typed.
• setup.py / pyproject.toml define packaging; requirements.txt lists dependencies.
README
• Describes steps to: generate keys → create a Dapr component YAML → configure .env → call DaprServiceCrypto.encrypt/decrypt.
• Emphasizes integration with Dapr sidecar and local filesystem for key storage.