Useless library if you have time for puzzles, a useful one if you don't
Project description
utilless
Useless library if you have time for puzzles, a useful one if you don't
Quickstart
Install using pip: pip install utilless
and import package into your script, v.g.
from utilless.comma import commaspace
print(commaspace(['Hello', 'world!']))
Module comma
Manipulates iterables and gets results with commas
iterable: any element that has __ iter __ method, like list, tuple, set, dict or even str.
- justcomma(iterable)
>>> justcomma(['apples', 'bananas', 'tofu', 'cats'])
'apples,bananas,tofu,cats'
- commaspace(iterable)
>>> commaspace(['apples', 'bananas', 'tofu', 'cats'])
'apples, bananas, tofu, cats'
- commaand(iterable)
>>> commaand(['apples', 'bananas', 'tofu', 'cats'])
'apples, bananas, tofu, and cats'
or commaand(iterable, str)
>>> commaand(['apples', 'bananas', 'tofu', 'cats'], ' & ')
'apples, bananas, tofu & cats'
Module dot
Manipulates iterables and gets results with dots
- justdot(iterable)
>>> justdot(['apples', 'bananas', 'tofu', 'cats'])
'apples,bananas,tofu,cats'
Module iseven
Infamous function. Learn how to use modulo (%)
- iseven(int)
>>> iseven(1)
False
>>> iseven(42)
True
Module isodd
See module iseven
- isodd(int)
>>> isodd(1)
True
>>> isodd(42)
False
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 utilless-0.2.0.tar.gz
.
File metadata
- Download URL: utilless-0.2.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7ebb77c6f044be56f13126c5bce199d4ef539981d3cb21688ce0c9b41cd4435 |
|
MD5 | 08246bf9c9be24698290406c7c39a8c2 |
|
BLAKE2b-256 | bc8c7450e1e6b28b66b330a1b3a0f17a580085c7f67ab913145847d9efde37b7 |
File details
Details for the file utilless-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: utilless-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf9397e79460de9f5b655208ea48df83b0a6208a440711b238698879310599fd |
|
MD5 | 8e03f1625df45398a1f0d0046da4e889 |
|
BLAKE2b-256 | a8eb0956dd7a261a43e59057de36b942eb6b6aa065a9882ca7b41e5488e7b285 |