Skip to main content

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

Release files for utilless 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for utilless 0.2.0
File Size Uploaded
utilless-0.2.0.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for utilless 0.2.0
File Interpreter ABI Platform
utilless-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / utilless-0.2.0.tar.gz

Download URL utilless-0.2.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a7ebb77c6f044be56f13126c5bce199d4ef539981d3cb21688ce0c9b41cd4435
BLAKE2b-256 checksum
How to use checksums
bc8c7450e1e6b28b66b330a1b3a0f17a580085c7f67ab913145847d9efde37b7
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / utilless-0.2.0-py3-none-any.whl

Download URL utilless-0.2.0-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf9397e79460de9f5b655208ea48df83b0a6208a440711b238698879310599fd
BLAKE2b-256 checksum
How to use checksums
a8eb0956dd7a261a43e59057de36b942eb6b6aa065a9882ca7b41e5488e7b285
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page