Skip to main content

A small personal package written in Python with reusable code

Project description

apoor

PyPI - Status PyPI Build Status codecov PyPI - License

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.

Installation Instructions

$ pip install apoor

Functions

The function 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

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

apoor-1.1.1.tar.gz (17.2 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page