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

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.0.9.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

easy_choose-1.0.9-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easy_choose-1.0.9.tar.gz
  • Upload date:
  • Size: 2.4 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.0.9.tar.gz
Algorithm Hash digest
SHA256 d031fec2de1d4988e849568de6ef3166d17408cd905f30ee92b57757a85bd836
MD5 43aeacb0b6e4044f8708cef9286bec32
BLAKE2b-256 b43430b048c21f9f73ff227e07ba1d13baf763b48701a3e0d3977ce4c2bdc0d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: easy_choose-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 fd81f9c5e4f917a5c8d4cd9d933dd7f2028a39e3800eaae7e557a5bd623013d0
MD5 d87f1158e551fb442eebd68dd3e97251
BLAKE2b-256 4a5883949f51cd83a0509bfb719ffc26a5977545d096b9be8e8d14e956858ee1

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