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.2.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.2-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiko_api-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 5c3465e9b73e55cd87e33f04e2a47d3bfc480a0f53ba573cc3e9cbd5e77116c9
MD5 2a8516bd487fac3c7b714eb4944c1b10
BLAKE2b-256 799392d733891062f619de66ffb610f68587fe3668558df1c599a041b6f13fec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiko_api-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 24.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0fd0f0f1344684968723cef4fa2198f4378b9b093186465d7de0a4a4ab89cf0e
MD5 719dc2ecae9c7789c42b864253b90b77
BLAKE2b-256 c54a5630ee54fecdd066ac252b4fd37ef487d0523fd19923c4d62e57e05ac7f6

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