Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/abranhe/cu
- Owner: abranhe
- License: mit
- Created: 2018-08-27T19:52:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-06T05:34:03.000Z (about 6 years ago)
- Last Synced: 2024-05-21T00:39:42.863Z (6 months ago)
- Topics: generator, pip, unique
- Language: Python
- Homepage: https://projects.abranhe.com/cu/
- Size: 4.88 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)