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 details)
Built Distribution
npspy-0.1.0-py3-none-any.whl
(2.8 kB
view details)
File details
Details for the file npspy-0.1.0.tar.gz
.
File metadata
- Download URL: npspy-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.1 Linux/4.19.128-microsoft-standard
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b6ce4e45bbaf7b95985f36e98914f23b1a4954c222ae13218e92ce895ad6fa7 |
|
MD5 | d54b21e651fb1b0af10678c05c4b839c |
|
BLAKE2b-256 | 10b178b7eede2c02a9c575c31f112a9f63368091a4d207ab76be245ead1d6d10 |
File details
Details for the file npspy-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: npspy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.1 Linux/4.19.128-microsoft-standard
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15021cf76328ce149605511558dced2fa22af20b767fa3747d1706fc4b266a0d |
|
MD5 | e8eeb20f6d27d5b6d27ac0ad9e5223d1 |
|
BLAKE2b-256 | 5edbbb71eac415492e91cde47b2f7238917d3d2fc63ad8ab7a73560729a7224e |