async API wrapper for Nookipedia API written in python
Project description
async-nookipedia
Async API wrapper for Nookipedia API utilizing the aiohttp package.
Installation
async-nookipedia can be installed via pip.
pip install async-nookipedia
Documentation
Docs can be found on readthedocs.io
Usage
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())
Requirements
- Python >= 3.6
- aiohttp
- python-dateutil
- importlib_metadata
Issues and Features
If you're having any issues or want additional features please create an Issue on github.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
async-nookipedia-1.0.1.tar.gz
(19.7 kB
view details)
Built Distribution
File details
Details for the file async-nookipedia-1.0.1.tar.gz
.
File metadata
- Download URL: async-nookipedia-1.0.1.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1819cb4481c674ad27e17e1e6989170af54efb22a94f81dbcb8971f03d68d1eb |
|
MD5 | 31bbcb1288f5cc3611be3b15cac48d8e |
|
BLAKE2b-256 | 77c3986214ace676b161445c0b94e3821883b4d30f9a80866dc8d9d02a5b551e |
File details
Details for the file async_nookipedia-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: async_nookipedia-1.0.1-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c25c54bd72c84e86e6a90fbb37bc4257f20aefb79658f42229763e7a5bf5308a |
|
MD5 | c5b42b6bd93ba45fdc9bc3cc07a966d8 |
|
BLAKE2b-256 | b3d783b955b2e523f3d2f280efdca68fdba9844b7e2127630f5f6e0dd3a84762 |