Skip to main content

Sum the first X Pi digits

Project description

Pi digits

lint

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.

Robot captcha meme

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)

Uploaded Source

Built Distribution

py_digits-0.1.6-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page