semvec/pypi-packages huggingface dataset:
enveloop 0.1.0
Various utility for handling loops, recursions, etc.
License: MIT
Keywords: loop,recursion,infinite-loop

# enveloop

[![PyPI version](https://badge.fury.io/py/enveloop.svg)](https://badge.fury.io/py/enveloop)
[![Build Status](https://travis-ci.com/arrrlo/enveloop.svg?branch=master)](https://travis-ci.com/arrrlo/enveloop)
![GitHub](https://img.shields.io/github/license/arrrlo/enveloop.svg?color=blue)
![GitHub last commit](https://img.shields.io/github/last-commit/arrrlo/enveloop.svg?color=blue)

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.

```python
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()
oeis-api 0.1.0
interface to the OEIS
License: MIT
Requires Python: >=3.6.0


# oeis
[![Build Status](https://travis-ci.com/bhgomes/oeis.svg?&branch=master)](https://travis-ci.com/bhgomes/oeis)
[![Documentation Status](https://readthedocs.org/projects/oeis/badge/?version=latest)](https://oeis.readthedocs.io/en/latest/?badge=latest)
[![codecov](https://codecov.io/gh/bhgomes/oeis/branch/master/graph/badge.svg)](https://codecov.io/gh/bhgomes/oeis) 
[![Maintainability](https://api.codeclimate.com/v1/badges/0e5458a2571e7b6c63f6/maintainability)](https://codeclimate.com/github/bhgomes/oeis/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/0e5458a2571e7b6c63f6/test_coverage)](https://codeclimate.com/github/bhgomes/oeis/test_coverage)

_Interface to [OEIS](https://oeis.org)_

## Installation

```bash
pip install oeis-api
```

Go to the [PyPi](https://pypi.org/project/oeis-api) page for more details.

## Documentation

Go to [bhgomes.github.io/oeis](https://bhgomes.github.io/oeis) for documentation.

## Install Anaconda Testing Environment

For quick installation:

```bash
conda create env -f environment.yml
source activate oeis
```

For a more customized environment replace `{ }` with your choices and run:

```bash
conda create -n {environment_name} python={python_version} pip
conda env update -n {environment_name} -f environment.yml
source activate {environment_name}
```

or edit the `environment.yml` file to your choosing.

---

_[Copyright (c) 2019 Brandon Gomes](LICENSE)_