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.5-py3-none-any.whl (115.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bear_dereth-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 115.5 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

Hashes for bear_dereth-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b0e568d8d356491a39b406f70d2f7b24ac8a499e72ce40e6906edf26ae067b34
MD5 22b8c3368d65be6899e4e0d29d1d3d5a
BLAKE2b-256 da525cab9067ed3241fad1d5e2106f016720d9733a70b431ab7f1dcba5fa3a53

See more details on using hashes here.

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