Skip to content
Python Numbers for Humans
Pull request Compare This branch is even with dcramer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
MANIFEST.in
README.rst
numbers.py
setup.py
test.py

README.rst

Numbers for Humans

Because sometimes using builtins is hard.

Usage

>>> from numbers import number, rebmun
>>> number(1)
1

Simple comparisons:

>>> number(1) < number(2)
True

Complicated math:

>>> number(1) * number(50) / number(25)
2

Inverse function:

>>> rebmun(7)
-7

Get an elite number:

>>> leet()
31337

Real results:

>>> number(sys.maxint)
"It's over 9000!"

Credits

This project was inspired by prices (and many others), because sometimes understanding your code should be just as difficult as maintaining your data in MongoDB.

Something went wrong with that request. Please try again.