Async API wrapper for Nookipedia API utilizing the aiohttp package.
async-nookipedia can be installed via pip.
pip install async-nookipedia
Docs can be found on readthedocs.io
import asyncio
from nookipedia import Nookipedia
api_key = "API_KEY"
async def main():
api = Nookipedia(api_key=api_key, cached_api=True)
villager = await api.get_villager('marshal')
print(villager.name)
critter = await api.get_critter('spider')
print(critter.name)
fossil = await api.get_fossil('amber')
print(fossil.name)
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
- Python >= 3.6
- aiohttp
- python-dateutil
- importlib_metadata
If you're having any issues or want additional features please create an Issue on github.