Skip to main content

Various utility for handling loops, recursions, etc.

Project description


PyPI version Build Status GitHub GitHub last commit

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
                    callback=lambda arg: ...)
def my_func(arg):




  • limit_recursion_to()

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enveloop-0.1.0.tar.gz (2.2 kB view hashes)

Uploaded Source

Built Distribution

enveloop-0.1.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page