Skip to main content
https://travis-ci.org/LordFlashmeow/pycent.svg?branch=master https://img.shields.io/badge/license-MIT-blue.svg

pycent is a simple module to quickly return the percentage of a value, or the reverse.

Installation

pip install pycent

Usage

>>> from pycent import pycent
>>> pycent.percentage(1,2)
0.5
>>> pycent.percentage(5, 19, 3)
26.316
>>> pycent.percent_of(5, 20)
1.0

License

MIT License

Copyright (c) 2017 LordFlashmeow

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for pycent 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycent 1.0
File Size Uploaded
pycent-1.0.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycent 1.0
File Interpreter ABI Platform
pycent-1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 7.1 kB

Release files / pycent-1.0.tar.gz

Download URL pycent-1.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
49198a50c3104e898a50267d2b2c7f7986a5acc60c28be45263ce6c7a7168594
BLAKE2b-256 checksum
How to use checksums
c24eef8cb1e31669eb2a784f7ce47e8e12f1727630728bd66043e0f6f8460292
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycent-1.0-py2.py3-none-any.whl

Download URL pycent-1.0-py2.py3-none-any.whl
Size 4.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f364d64f25bc21a1103008ad88571d3bb7b6e747f09efa6f50580c8074eddafd
BLAKE2b-256 checksum
How to use checksums
ad0f6f0892de64ee2f632eec123925fc800147fceb06140d5a6bcfa7262f813d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page