Skip to main content

Depende

Dependency declarations for Python frameworks and tools.

Test Python package version


Documentation: https://depende.tiangolo.com

Source Code: https://github.com/tiangolo/depende


depende provides small dependency declarations in the style of FastAPI for reuse by frameworks and tools.

Install

uv add depende

Or if using pip:

pip install depende

Usage

from depende import Depends, DependsInfo

Depends(...) returns a frozen DependsInfo metadata object with:

  • dependency: a callable dependency, or None
  • use_cache: whether a framework may reuse the dependency result within its active solving context
  • scope: an opaque framework-defined string, or None

The package only declares dependency metadata. It does not solve, execute, cache, inject request data, manage lifecycles, generate OpenAPI, or define framework-specific scopes.

Example

from depende import Depends
from typing import Annotated


def get_settings() -> dict[str, str]:
    return {"mode": "prod"}


SettingsDep = Annotated[dict[str, str], Depends(get_settings, scope="command")]

Frameworks decide what scope means and how dependency solving works.

License

This project is licensed under the terms of the MIT license.

Metadata

Release files for depende 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for depende 0.1.3
File Size Uploaded Provenance Actions
depende-0.1.3.tar.gz 4.5 kB Without provenance Details for depende-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for depende 0.1.3
File Interpreter ABI Platform Actions
depende-0.1.3-py3-none-any.whl Python 3 none any Details for depende-0.1.3-py3-none-any.whl

Total release size: 8.2 kB

Release files / depende-0.1.3.tar.gz

Download URL depende-0.1.3.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
14608829faf9f2a99d1877d326d21f87f5b33d59f9296d02cafefcc32a05052f
BLAKE2b-256 checksum
How to use checksums
4af08d2cce703a148dfa4cd11d195e4e433a598bdc2147ee378f4165c4bca74e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / depende-0.1.3-py3-none-any.whl

Download URL depende-0.1.3-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d81d2fea729f23e3e8c4b49da53f4d1c7e50f14322f17991064bc747a8443cf
BLAKE2b-256 checksum
How to use checksums
76fdfa6ea5780afac9774520c57c15a9cf4391af2e54e54b7b0479161e178518
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for depende 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page