Skip to main content

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

Issues and Features

If you're having any issues or want additional features please create an Issue on github.

ko-fi

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

async-nookipedia-1.0.0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

async_nookipedia-1.0.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file async-nookipedia-1.0.0.tar.gz.

File metadata

  • Download URL: async-nookipedia-1.0.0.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

Hashes for async-nookipedia-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7bf1635796afcbc99b09ef515a5eddddcac4a176c2cc35ba2443465e366d1020
MD5 6d32e32a3cf3d5ed292e1287ca4bb0d8
BLAKE2b-256 0e50ea5915a50933c4582bc29b3381257a69cf8ecb840eb1f8e08f85fcbc95d9

See more details on using hashes here.

File details

Details for the file async_nookipedia-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for async_nookipedia-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 25bfc18f056e68b8a29cfcf6f607c38a7ea47b522564cb8dcc8bde2e88dba1d1
MD5 f73e7ee286d18ab8e3355260b060718e
BLAKE2b-256 d87fdba178f994ccae6250dd438a6f86392d371816401d92ef6c4d18572d083e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page