Skip to main content

A clean, efficient Discord API wrapper for bot development.

Project description

aiko_api

A clean, efficient, and modern Discord API wrapper for Python.

aiko_api is designed to be a lightweight and easy-to-use alternative for building Discord bots and selfbots. It features a flat command hierarchy, smart signatures, and a powerful plugin system with hot-reloading.

Features

  • Flat Sub-command Hierarchy: Decorate commands with their parent commands for clean nesting.
  • Smart Signatures: self is optional in Cogs; the library detects if it's needed.
  • Clean Cog Events: Automatically register on_ methods as event listeners.
  • Advanced Plugin System: Load Cogs and standalone commands from directories with built-in hot-reloading.
  • Optimized HTTP: Built on top of curl_cffi for high performance and better impersonation.

Installation

pip install aiko_api

Quick Start

import asyncio
from aiko_api import Bot

bot = Bot(command_prefix="!")

@bot.command()
async def ping(ctx):
    await ctx.reply("Pong! 🏓")

@bot.event
async def on_ready(user):
    print(f"Logged in as {user.username}")

if __name__ == "__main__":
    asyncio.run(bot.start("YOUR_TOKEN"))

Advanced Usage: Cogs and Sub-commands

from aiko_api import Cog, command

class Moderation(Cog):
    @command()
    async def config(self, ctx):
        await ctx.send("Main config menu.")

    @config
    async def prefix(self, ctx, new_prefix: str):
        await ctx.send(f"Prefix updated to {new_prefix}")

bot.add_cog(Moderation(bot))

License

This project is licensed under the 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

aiko_api-0.1.1.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiko_api-0.1.1-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file aiko_api-0.1.1.tar.gz.

File metadata

  • Download URL: aiko_api-0.1.1.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for aiko_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b99dae9940dbe6a61c63e2d2c1a9b4522087f33d1f43fe9485f32a11a91fc34c
MD5 53b940297423c8546d2dac6f7386001f
BLAKE2b-256 24d7105df610957a0871d19f401765f0362da7b2a7a01e069f9d95f7e8f5b49f

See more details on using hashes here.

File details

Details for the file aiko_api-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aiko_api-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for aiko_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37e508cdc381d2d03982a5060bdfe94231c030797bfc82bf96fdbf3333fd03e2
MD5 2a2488f6ad01e6d6afa6c64b56cfaeeb
BLAKE2b-256 5bd03076b0a12081ea31a285d8c7f8014078ce57f0b10586e68db85304cc2391

See more details on using hashes here.

Supported by

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