An open API service indexing awesome lists of open source software.

https://github.com/dcramer/numbers

Python Numbers for Humans
https://github.com/dcramer/numbers

Last synced: 4 months ago
JSON representation

Python Numbers for Humans

Awesome Lists containing this project

README

        

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.