Sum the first X Pi digits
Project description
Pi digits
This library was created inspired in solving this meme where there is a CAPTCHA to detect if someone is a robot or not, becuase its a calculation to hard for a human. Now we solve it in less than a second.
Getting started
Install the library with:
pip install -U py-digits
Usage
from pydigits import sum_pi_digits
print(sum_pi_digits(31_415, 'odd'))
# 78662
print(sum_pi_digits(31_415, 'odd', 'binary'))
# 10011001101000110
Testing
Run the test suite with:
python -m unittest tests
To install it locally from the source code:
python setup.py develop
Publish
python setup.py register sdist upload
Change Log
0.1.0 (14/02/2022)
- First Release
0.1.1 (15/02/2022)
- First Release (for real)
0.1.2 (15/02/2022)
- First Release (for real this time)
0.1.3 (15/02/2022)
- First Release (i hope so)
0.1.4 (15/02/2022)
- First Release (please)
0.1.5 (15/02/2022)
- First Release (please im bored)
0.1.6 (15/02/2022)
- First Release (pleaseeeee)
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
py-digits-0.1.6.tar.gz
(77.9 kB
view hashes)
Built Distribution
Close
Hashes for py_digits-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8fbd349dcaffcfedaf18adaab38ba7dacde1ac048e3ebb8c41a237e5b3f7c69 |
|
MD5 | f7bb670c1c7b57de1f9c60beca311f06 |
|
BLAKE2b-256 | 4131d002077be4d5949901df457c45351b58cca6cdb4590f11754a4faceb553c |