Display a range of numbers in a human readable way
Project description
Pretty Numbers
Pretty Numbers is a simple Python package that displays long series of numbers in a more human readable way.
I have used it for displaying frames of a render in a more human readable way or issues of comic books. It allows the user to quickly see what is included and what is missing.
Installation
It is available on PyPi meaning you can just:
pip install prettynumbers
Usage
import pretty_numbers
pretty_numbers.getPrettyTextFromNumbers([1001, 99, 1004, 1005, 1003, 1008,
1002, 1007, 1010, 1006, 1111, 1009])
Returns:
"99,1001-1010,1111"
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
prettynumbers-0.3.0.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for prettynumbers-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5fd36feacf35ca35baea9aa98ed93d9cc61ca262a44ebefd649dd1ea9739891 |
|
MD5 | 1ff933c0f1ae57a0f086b9c020e69743 |
|
BLAKE2b-256 | d3764a0d5f5671a43ca58e95b92ad6db2ed29c88167aee01cdb2dbf27d507543 |