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.

Beta

This package is currently in beta and not yet fully finished.

Installation

async-nookipedia can be installed via pip.

pip install async-nookipedia

Documentation

Proper docs are coming soon!

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-0.0.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

async_nookipedia-0.0.1-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async-nookipedia-0.0.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.4 CPython/3.8.2 Windows/10

File hashes

Hashes for async-nookipedia-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b7422d70f8b26f68d5d417979c0e1a70b553a7ad58e406b2111a03e10ac4c05a
MD5 cadf3f8ccd47b8ec33b9dfb11cb43650
BLAKE2b-256 d849826d78052f65fe9e8fbe5f1a61b976e4f114820e43d0ab04a43bd94e5998

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for async_nookipedia-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7581c5139795079f80d94755174cc0ec7175f0adb12c499d848989180dc07a0b
MD5 e53bd5e33b311d2fe86d677787713cef
BLAKE2b-256 515bce836e77a3c5536985127e7f45c5f07f976fa893de540403fb7fdbada7b3

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