Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abranhe/cu

Generate a unique value from a consecutively number list
https://github.com/abranhe/cu

generator pip unique

Last synced: about 1 month ago
JSON representation

Generate a unique value from a consecutively number list

Awesome Lists containing this project

README

        











cu: generate a unique value from a consecutively number list








# Install

```
$ pip install cu
```

# Why?

- Why not 😂
- Clean and focused
- Actively maintained

# Usage

```py
import cu as consecutively_unique
val = consecutively_unique.cu(1, 5)

print(val(), val(), val(), val())
# => 18 7 1 10
```

# API

**cu(minValue, maxValue)**

> Return a function with a unique value unique value form a consecutively number list

# Related

- [consecutively-unique](https://github.com/abranhe/consecutively-unique): same thing but in **JavaScript**

# Team

|[![Carlos Abraham Logo](https://avatars3.githubusercontent.com/u/21347264?s=50&v=4)](https://19cah.com)|
| :-: |
| [Carlos Abraham](https://github.com/abranhe) |

# License

[MIT](https://github.com/abranhe/cu/blob/master/LICENSE) License © [Carlos Abraham](https://github.com/abranhe)