Skip to main content

Asynchronous Python wrapper for PluralKit's API.

Project description

pk.py

Asynchronous Python wrapper for PluralKit's API. Created with discord.py in mind.

Currently working on PluralKit's v1.0 API.

Quick example

from pluralkit import Client

pk = Client()

async for member in pk.get_members("abcde"):
   # list members of the system with ID ``abcde``
   print(f"{member.name} (`{member.id}`)")

Token

The client can be used without one's PluralKit authorization token, but they'll need it if they'd like to edit their system or access any of their system's private members or info.

Links

Todo

  • Documentation, particularly for client methods
  • Tidy up error handling
  • Documentation for get_switches, new_switch
  • Test timezone mechanics
  • Prepare for API v2

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

pluralkit-0.0.2.tar.gz (22.2 kB view hashes)

Uploaded Source

Built Distribution

pluralkit-0.0.2-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

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