No project description provided
Project description
npspy
npspy is a simple package to calculate NPS (Net Promoter Score).
Install
pip install npspy
Example
import npspy
npspy.categorize(0) # "detractor"
npspy.categorize(7) # "passive"
npspy.categorize(9) # "promoter"
npspy.calculate([0, 7, 9]) # 0
npspy.calculate([7, 9]) # 50
npspy.calculate([0, 7]) # -50
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
npspy-0.1.0.tar.gz
(2.5 kB
view hashes)
Built Distribution
npspy-0.1.0-py3-none-any.whl
(2.8 kB
view hashes)