Metadata-Version: 2.1
Name: py-digits
Version: 0.1.6
Summary: Sum the first X Pi digits
Home-page: https://github.com/Baelfire18/pi-digits
Author: Jose Antonio Castro
Author-email: jacastro18@uc.cl
License: MIT
Keywords: pi,sum,CAPTCHA,robot,binary
Platform: UNKNOWN
Description-Content-Type: text/markdown
License-File: LICENSE

# Pi digits

[![lint][lint-image]][lint-url]

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](assets/Captcha.jpg "Robot captcha meme")

## Getting started

Install the library with:

```sh
pip install -U py-digits
```

### Usage

```python
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:

```sh
python -m unittest tests
```

To install it locally from the source code:

```sh
python setup.py develop
```

## Publish

```sh
python setup.py register sdist upload
```

[ci-image]: https://travis-ci.org/Baelfire18/pi-digits.svg
[ci-url]: https://travis-ci.org/Baelfire18/pi-digits
[lint-image]: https://codeclimate.com/github/Baelfire18/pi-digits/badges/gpa.svg
[lint-url]: https://codeclimate.com/github/Baelfire18/pi-digits


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)


