Skip to main content

🚀 A fast, flexible and lightweight Discord API wrapper for Python.

Project description

krema

Krema

A fast, flexible and lightweight Discord API wrapper for Python.

Installation

Unikorn

unikorn add kremayard krema -no-confirmation

Pip

pip install krema

Frameworks

  • Kommand: Command framework for Krema.
  • Klash: Slash command framework for Krema.

Example Ping-Pong Bot

from unikorn import krema 
# if you use pip, replace with:
# import krema

client = krema.Client(
    intents=krema.types.Intents().All()
)

@client.event()
async def message_create(message):
    if message.author.bot: return

    if message.content.startswith("!ping"):
        await message.reply(
            content=":ping_pong: Pong!"
        )

client.start("client token", bot=True)

License

This project is licensed under MIT license.

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

krema-1.2.0.tar.gz (24.7 kB view details)

Uploaded Source

File details

Details for the file krema-1.2.0.tar.gz.

File metadata

  • Download URL: krema-1.2.0.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for krema-1.2.0.tar.gz
Algorithm Hash digest
SHA256 129a0b514a244ffe199a781a771ceb785cde3f4ff34fb0d7124af4a2dbe28547
MD5 5742c1ab7babe19b20fc97955a5de41c
BLAKE2b-256 a8ed393ed99f76d4bd3f06860d61ec682b4c8e625e84076eac1c4451b7db3dec

See more details on using hashes here.

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