The premier Python package for checking the even-ness of a number via an API. Built-ins are overrated, microservices are always best, regardless of scope. I read it in a medium article, so...
I did this when I was learning Python ๐
- Cache Memorization โฟ
- API Retry Handler โป
From PyPI ๐
pip install isEvenApi
Or from GitHub ๐ฑ
pip install git+https:/github.com/UltiRequiem/isEvenAPI
As simple as possible ๐ค
from is_even import is_even, is_odd, adverstiment
print(is_even(10)) # True
print(is_odd(10)) # False
print(adverstiment()) # An Advertisement
Check the examples/
directory for more information.
A simpler aproach ๐
def is_even(number):
return number % 2 == 0
The installation process is the same as before.
The normal way ๐ง
is_even 6 2
True
True
Or with the verbose mode ๐น
is_even 6 2 --verbose
6 is even.
2 is even.
Open an Issue, I will check it a soon as possible ๐
If you want to hurry me up a bit send me a tweet ๐
Consider supporting me on Patreon if you like my work ๐
Don't forget to start the repo โญ
Eliaz Bobadilla (a.k.a UltiRequiem) - Creator and Maintainer ๐ช
See also the full list of contributors who participated in this project.
We use SemVer for versioning. For the versions available, see the tags.
I did this because I'm learning how to upload packages to PYPI with GitHub actions.
Licensed under the MIT License.