Skip to main content

API Wrapper for the isEven api.

Project description

isEven.py

License: MIT PyPI Downloads Code style: black

Check if an integer is even using the isEven API.

Main features:

  • Cache Memorization
  • API Retry Handler
  • Hide Ads
  • Get just the Ads

Install

pip install isEvenApi

Usage

You can view some examples in examples. Basic Usage:

from is_even import is_even as ie

print(ie.is_even(10)) # True
print(ie.is_odd(10)) # False

print(ie.ad(78)) # An Ad
print(ie.ad_without_number()) # An Ad without passing a number

Alternatives

This Function:

def is_even(number):
    return False if number & 1 else True

Or This other:

def is_even(number):
    return False if number % 2 else True

Or a longer one:

def is_even(number):
    if number % 2:
        return False
    else:
        return True

Note:

I did this because I'm learning how to upload packages to PYPI with GitHub actions.

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

isEvenAPI-2.2.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

isEvenAPI-2.2.1-py3-none-any.whl (3.3 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