Skip to content

Pretty Numbers is a simple Python package that displays long series of numbers in a more human readable way.

License

Notifications You must be signed in to change notification settings

vfxGer/pretty-numbers

Repository files navigation

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"

pretty_numbers.getNumbersFromText("7,04,67-70")
# returns {4, 7, 67, 68, 69, 70}

About

Pretty Numbers is a simple Python package that displays long series of numbers in a more human readable way.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages