Skip to main content

Display a range of numbers in a human readable way

Project description

vfxGer codecov.io Code Climate PYPI

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


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.9.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

prettynumbers-0.3.9-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

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