Skip to main content

A set of common tools for various bear projects.

Project description

Bear Dereth

pypi version

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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

bear_dereth-0.5.16-py3-none-any.whl (116.6 kB view details)

Uploaded Python 3

File details

Details for the file bear_dereth-0.5.16-py3-none-any.whl.

File metadata

  • Download URL: bear_dereth-0.5.16-py3-none-any.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bear_dereth-0.5.16-py3-none-any.whl
Algorithm Hash digest
SHA256 0a5389f903dab0a92f81844593a0667caf8d224a4ef6f3a3cc39b64270b49621
MD5 9e3db61900639ab3538aeb93dd1dc5ac
BLAKE2b-256 6bdc5f705ba4b0a71eacbbe107ea60c884a2594ef95306adea2d5058fe82bc13

See more details on using hashes here.

Provenance

The following attestation bundles were made for bear_dereth-0.5.16-py3-none-any.whl:

Publisher: build-wheels.yml on sicksubroutine/bear-dereth

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