It can easily help you choose!
Project description
easy-choose
It can easily help you choose!
Installation
Use pip:
pip install --upgrade easy-choose
Usage
It's particularly simple to use. The code is as follows:
>>>import easy_choose as ec
>>>ec.choose(2, "A", "B", "C")
["A", "C"]
Of course, you can also use lists:
>>> ls = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]
>>> ec.choose(5, *ls)
[1, 4, 4, 7, 5]
You can also keep them from duplicate elements:
>>> ec.choose(5, only=True, *ls)
[1, 4, 7, 5]
Tests
You can use ready-made test functions – just test and play!
Here's how:
>>> from easy_choose import tests as te
>>> te.testnumbers(number=5, num=3)
[1, 3, 3, 1, 2]
Version: 1.1.0b1
Author: Raskora
Github: https://github.com/Raskora/easy-choose
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file easy_choose-1.1.0b1.tar.gz
.
File metadata
- Download URL: easy_choose-1.1.0b1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ada0ad2d17c3071743d81ee877b5cc586faa7759db97e55519a2aacd7799db7 |
|
MD5 | ba08a0e8870728fbb7dc2d152062d47c |
|
BLAKE2b-256 | cb66908bf1fd99aa80c35d1175f0830b5c8023f1607f8954f3515819e8b047da |
File details
Details for the file easy_choose-1.1.0b1-py3-none-any.whl
.
File metadata
- Download URL: easy_choose-1.1.0b1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8da6b8f4a284030cb3bb28e11172bc0f9c4dfda1b266356113c316801dd30d8 |
|
MD5 | 5f44d61af119e5a68886acbf0f250261 |
|
BLAKE2b-256 | 9037b68dc38fb7ec60f695d8624b55156862961d9e68aa0e26d36a81a4d49d0d |