Noom

Noom datatype is an alternative to number type but with limited capabilities. This is developed as part of a learning exercise in literate programmimg - using nbdev and fastcore.

Usage

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/vinay-jose/noom.git

or from pypi

$ pip install noom

Documentation

Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.

How to use

a = Noom(2)
b = Noom(7)
a + b
9
a - b
-5
a * b
14
a // b
0
a / b
0.2857142857142857
a == b
False
a < b
True
a >= b
False

Developer Guide

If you are new to using nbdev here are some useful pointers to get you started.

Install noom in Development mode

# make sure noom package is installed in development mode
$ pip install -e .

# make changes under nbs/ directory
# ...

# compile to have changes apply to noom
$ nbdev_prepare