A set of common tools for various bear projects.
Project description
Bear Dereth
A set of common tools for various bear projects.
Installation
uv pip install bear-dereth
Dependency Injection
The project ships with a lightweight dependency injection container. Services can register cleanup callbacks that run when the container shuts down:
from bear_dereth.di import DeclarativeContainer
class AppContainer(DeclarativeContainer):
db: Database
db = Database()
AppContainer.register("db", db)
AppContainer.register_teardown(lambda: db.close())
AppContainer.shutdown()
Callbacks registered with :func:register_teardown run after any service
shutdown() method has been invoked.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bear_dereth-0.5.10-py3-none-any.whl.
File metadata
- Download URL: bear_dereth-0.5.10-py3-none-any.whl
- Upload date:
- Size: 114.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09224aa261b9724bf7e9cb67f0b8b4a455672ed909b1aca6060a7575b65d6d47
|
|
| MD5 |
8f36e31e321ad194973fa86fcd39dd6a
|
|
| BLAKE2b-256 |
be4cbf3ed34d9fb7343342380c259cde0716d5aed4dee7242afe245644df1ae1
|