A small personal package written in Python with reusable code
created by Austin Poor
A small personal package written in Python with reusable code.
I created this package to store some of the functions I find myself frequently rewriting.
$ pip install apoor
make_scale returns a function to map a number from a domain to a range.
>>> import apoor >>> scale = apoor.make_scale(0,1,0,10) >>> scale(0.1) 1.0 >>> scale(0.9) 9.0
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.