Skip to main content

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.1

Author: Raskora

Github: https://github.com/Raskora/easy-choose

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

easy_choose-1.1.1.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

easy_choose-1.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file easy_choose-1.1.1.tar.gz.

File metadata

  • Download URL: easy_choose-1.1.1.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for easy_choose-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5feb2d6976c8280270beb4217910e27f692acdae398cbc7a3f7370213fe448fc
MD5 33914e708bfebcfe4d127400f4d56458
BLAKE2b-256 c79ad995f37d244e32b784182ac7f489329c707cf983676196e6aeb901ca74b4

See more details on using hashes here.

File details

Details for the file easy_choose-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: easy_choose-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for easy_choose-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 460261715bd03d80f6225a49f8c0cd12850b088f9a92693d9391ed388219e743
MD5 ee49201be271723bec1b1c9fe739a16e
BLAKE2b-256 b55190c82d49bb0007e130ba037589229ef2bbf7a5c8723a3dea23b40358897f

See more details on using hashes here.

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