somerandomapi
is an API Wrapper for some-random-api.ml
from somerandomapi import Animal
import asyncio
async def main():
async with Animal.dog as resp:
print(
f"Fact: {resp.fact}",
f"Image: {resp.image}",
sep="\n"
)
asyncio.run(main())
from somerandomapi import Animal
with Animal.dog as resp:
print(
f"Fact: {resp.fact}",
f"Image: {resp.image}",
sep="\n"
)
Easy, isn't it?
I am not completely happy with the docs and its still being fixed but its pretty usable, click here to check it.
binary
and base64
because Python has built-in libraries for those operations which are faster. However, if someone makes a good pull request for it, I will merge it.py -m pip install -r requirements.txt
somerandomapi
.py -m pip install somerandomapiml