Skip to main content

A Python wrapper for the Wynncraft API

Project description

corkus banner

build codecov PyPI PyPI - Python Version

Corkus.py ⚙️

Asynchronous modern, feature-rich and easy to use Python wrapper for Public Wynncraft API.

Key Features

  • Asynchronous API using async and await
  • Easy to use with an object oriented design and fetch functions
  • ≈ 80% coverage of the Wynncraft API as of now
  • Responses caching Soon
  • Proper rate limit handling Soon

Missing Features

  • Recipe Endpoint
  • Item Database Endpoint
  • Ingredients Search
  • Proper rate limit handling
  • Responses caching
  • Error handling

Installation

Python 3.8+ or higher is required

pip install corkus.py

Quick Example

import asyncio
from corkus import Corkus

async def player_stats():
    corkus = Corkus()

    player = await corkus.player.get("Salted")
    print(player.statistics.chests_found) # => 219

    await corkus.close()

asyncio.get_event_loop().run_until_complete(player_stats())

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

corkus.py-0.1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

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