Skip to main content

Defer

PyPi-version PyPi-versions PyPi-license Travis CI CodeCov Codacy Code style: black Code style: prettier Thanks

Add a simple golang-esque deferral system for python.

TODO

  • Add deferrals for a function
  • Tests
  • 95% testing coverage
  • Add deferrals for a class
  • Add deferrals for a module

Example

In [1]: import defer

In [2]: @defer.with_defer
   ...: def example_function():
   ...:     print("Hello")
   ...:     defer.defer(print, "!")
   ...:     print("World")
   ...:

In [3]: example_function()
Hello
World
!

Metadata

Release files for py-defer 1.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 py-defer 1.3.0
File Size Uploaded Provenance
py-defer-1.3.0.tar.gz 11.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for py-defer 1.3.0
File Interpreter ABI Platform
py_defer-1.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 15.7 kB

Release files / py-defer-1.3.0.tar.gz

Download URL py-defer-1.3.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c3f04fdd6204623f304966c38ceb28d776c52590ba6897ceb450f19562fddcae
BLAKE2b-256 checksum
How to use checksums
761d4f7e828d133401d69e788b332e3abf3640a9927ef2ea5a16ddca857ae1ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Release files / py_defer-1.3.0-py2.py3-none-any.whl

Download URL py_defer-1.3.0-py2.py3-none-any.whl
Size 3.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a16283a1317490121bb959b9f9a09a5ce7ba0e246a3103ed130a70005db06109
BLAKE2b-256 checksum
How to use checksums
9596f50c3d1241af21bfe4ec3cedc1c4db1eb22ad2b6e0b75ee40ab65c70e84e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.4

Security for py-defer 1.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