Skip to main content

Fast Dependency

Installation

pip install fastdependency

Usage

from fastdependency import Depends, inject


def username() -> str:
    return 'mahdi'


def password() -> str:
    return '123***456'


@inject
def my_function(
        param: int,
        username: str = Depends(username),  # Gets it from function.
        password: str = Depends(password),  # Gets it from container.
):
    print(param)
    print(username)
    print(password)


my_function(12)

TODO

  • Full Docs
  • Precommit

Metadata

Release files for fastdependency 0.2.0

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

Source distribution (sdist)

Source distribution for fastdependency 0.2.0
File Size Uploaded Provenance
fastdependency-0.2.0.tar.gz 2.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 5.9 kB

Release files / fastdependency-0.2.0.tar.gz

Download URL fastdependency-0.2.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7e9a0840df2535a9737f660ac5ea72e7e17c81a0339b8439a07057fe8553307b
BLAKE2b-256 checksum
How to use checksums
3b881b23c78c114c2f0514f93f2561359f999d55e8900106bc39e64e3fd27d95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.1 Linux/6.2.0-36-generic

Release files / fastdependency-0.2.0-py3-none-any.whl

Download URL fastdependency-0.2.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
990aedddbe3efc4645df7900c7d914cee2ce682e67fdf03e08d287d92360a329
BLAKE2b-256 checksum
How to use checksums
6736f2ef30a6038dc718ed7dd32e4f196764963469a923f3067eb02d646d0a39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.1 Linux/6.2.0-36-generic

Security for fastdependency 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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