Skip to main content

pydelegate

GitHub Build Status PyPI

a python version delegate like C#.

Usage

from pydelegate import Delegate

def func():
    return 1

d = Delegate()
d += func
assert d() == 1

or you can add Delegate to None:

from pydelegate import Delegate

def func():
    return 1

d = None
d += Delegate(func)
assert d() == 1

Metadata

Release files for pydelegate 0.3.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 pydelegate 0.3.0
File Size Uploaded Provenance
pydelegate-0.3.0.tar.gz 3.3 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 6.7 kB

Release files / pydelegate-0.3.0.tar.gz

Download URL pydelegate-0.3.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
51f8bbd16e7ffa4bc935fc05035acc0fcc2febf1ce7a4acd76f967a4c57bfc8c
BLAKE2b-256 checksum
How to use checksums
317cdea85f5bbb0145b512cd1078006d5c1532dc922bdf28f3cb975b2aaf070c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.0 Windows/10

Release files / pydelegate-0.3.0-py3-none-any.whl

Download URL pydelegate-0.3.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcddf8f66e29ba415d4d2d77b269536a9afed17f4ba3c5fe1a3b514428f5e2b7
BLAKE2b-256 checksum
How to use checksums
3591b9be9dd4710a6b825fbed9bee98d4cbcb700ff8bf1e7789086d7c9659e2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.0 Windows/10

Security for pydelegate 0.3.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.

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