asyncio-powered 2 LoC pure Python checking whether the number is odd
import asyncio
from aioisodd import is_odd
async def main():
print(await is_odd(41)) # prints "True"
print(await is_odd('42')) # prints "False"
if __name__ == '__main__':
asyncio.run(main())
pip install 'git+https://github.com/evgfilim1/aioisodd@master'
- Fixed package being empty on install
- Added lockfile
- More effective check for big numbers
- Fix bug when passing bool always returned False
- Fix TypeError when passing anything except str into method
- Updated description
- Optimized working with big numbers
- Added type hints, now requires Python 3.10+
- Initial release