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"

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

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prettynumbers-0.3.15-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file prettynumbers-0.3.15.tar.gz.

File metadata

  • Download URL: prettynumbers-0.3.15.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/5.15.0-1039-aws

File hashes

Hashes for prettynumbers-0.3.15.tar.gz
Algorithm Hash digest
SHA256 ff7ce593f355b3cbdef92879069d0e4429aa2339a90ea31db74f8fed1a172ecf
MD5 d01310c8f181d10af736cff68bef889a
BLAKE2b-256 dc6eb6cf46c19723120b96a3ef91912a854b6dca390e299a50cfd2541c4d433f

See more details on using hashes here.

File details

Details for the file prettynumbers-0.3.15-py3-none-any.whl.

File metadata

  • Download URL: prettynumbers-0.3.15-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/5.15.0-1039-aws

File hashes

Hashes for prettynumbers-0.3.15-py3-none-any.whl
Algorithm Hash digest
SHA256 df662ef5b300cf623824bd673566a4174876eda3b8fa4e0aca808cf378e94f04
MD5 febf4fe3686835cba8df9511bf245734
BLAKE2b-256 268d0aed4b0919ca54e617096c8a71952e701fd4f8695bb3d1832dc0fbd808af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page