Dependency declarations for Python frameworks and tools.
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, orNoneuse_cache: whether a framework may reuse the dependency result within its active solving contextscope: an opaque framework-defined string, orNone
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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| depende-0.1.2.tar.gz | 4.5 kB | Without provenance | Details for depende-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| depende-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for depende-0.1.2-py3-none-any.whl |
Total release size: 8.2 kB
Release files / depende-0.1.2.tar.gz
| Download URL | depende-0.1.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1339f048de5824ba118cd056e77e53a35e9d492fb29166cb98fe26078dad2e33
|
|
BLAKE2b-256 checksum How to use checksums |
96c8e6a8c8cd63fdb90ac90aa88d1cfd5f6560b342604a5d3b30eed9e4091170
|
| 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.2-py3-none-any.whl
| Download URL | depende-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ef1a2efdc77f211cdf28b78b4c22393ad579a25dcc4e5d3a00108b2f6f52ad3
|
|
BLAKE2b-256 checksum How to use checksums |
4d2dad5fd892915264673850da980886845577b38cfe1be7e2c6438992d17251
|
| 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.2
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.