enveloop
Various utilities for handling loops, recursions, etc.
Limit number of recursions
Let's say you wrote a recursive function and you want to limit number of recursions, just to be infinite loop free, or for any other reason.
from enveloop import limit_recursion_to
# let's limit the number of recursion and after
# the 10th recursion run a callback function
@limit_recursion_to(number_of_loops=10,
callback=lambda arg: ...)
def my_func(arg):
...
my_func(arg)
...
Changelog
0.1.0
Added:
- limit_recursion_to()
Metadata
Release files for enveloop 0.1.0
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 |
|---|---|---|---|---|
| enveloop-0.1.0.tar.gz | 2.2 kB | Without provenance | Details for enveloop-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| enveloop-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for enveloop-0.1.0-py3-none-any.whl |
Total release size: 5.7 kB
Release files / enveloop-0.1.0.tar.gz
| Download URL | enveloop-0.1.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0c29ef898cd94d70c500b16b1aa683474b4736555d44ce611be261259f9d335
|
|
BLAKE2b-256 checksum How to use checksums |
eb75d743e0b73d0d39100ee512f02a950488de9d5f76179063a55ab16017ae6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Release files / enveloop-0.1.0-py3-none-any.whl
| Download URL | enveloop-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
541baf72e70e9305ba40435c987ef1c109a401ffafe2b96885ab866f7eae2ef8
|
|
BLAKE2b-256 checksum How to use checksums |
343d319be8e96fdc737fb33c3cd14ba9b1f8b16b4566fe425f63a423714b93f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
|
Security for enveloop 0.1.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.