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]

Test tests(?)

It sounds a bit hilarious, but it's true!

>>> from easy_choose import test

>>> test()

Test all test functions in the test.py

...

All functions tested.



Version: 1.1.3

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

Uploaded Source

Built Distribution

easy_choose-1.1.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easy_choose-1.1.3.tar.gz
  • Upload date:
  • Size: 53.8 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.3.tar.gz
Algorithm Hash digest
SHA256 d82fed6d5f4ca25a72a565b6789edd979d88f0d4acd7df618012e5bc1d53858d
MD5 3ad60a6d7367741ad83ca0547c79271d
BLAKE2b-256 3a835bcc6fea54f1f8e3232aa4474fcce7b6d5b5e3f44b35d6c3e439a1f5d242

See more details on using hashes here.

File details

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

File metadata

  • Download URL: easy_choose-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1d84c23f1d30acebbb79112a765ebe3adf984ef2542a972d209a88e20966d5a3
MD5 76ac4b3c948c899f0f7c4b6d50631a49
BLAKE2b-256 f5bc1e8c01e3e706a3b7771c736b82493df26b714e5b248ef87afa875a7c6b6e

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