Metadata-Version: 2.4
Name: discokit
Version: 1.0.0
Summary: The most customizable, developer-friendly wrapper for discord.py's Component V2 system.
Author: Never
License: MIT License
        
        Copyright (c) 2026 DiscordKit Contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/1kn0/discodkit
Project-URL: Repository, https://github.com/1kn0/discokit
Project-URL: Issues, https://github.com/1kn0/discokit/issues
Keywords: discord,discord.py,components,ui,layout,bot
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: discord.py>=2.6
Dynamic: license-file

# DiscordKit

**The most customizable, developer-friendly wrapper for discord.py's Component V2 system.**

Zero boilerplate. Maximum control. Build rich Discord UI layouts with clean, chainable builders.

## Features

- **Auto-rows** — Drop buttons & selects into `container()` — they auto-wrap into `ActionRow`s
- **Working callbacks** — Pass any async function to `button()` or `select()` — it just works
- **Custom emojis** — Unicode or custom emojis on every button, select option, and thumbnail
- **Link buttons in sections** — Use `link_button()` as a `Section` accessory
- **Text helpers** — `Text.bold()`, `Text.code()`, `Text.spoiler()`, `Text.timestamp()`, etc.
- **Preset layouts** — `Kit.card()`, `Kit.hero()`, `Kit.alert()`
- **Fluent builder** — Chain `.add().accent().build()` for complex views
- **25 theme colours** — `Theme.BLURPLE`, `Theme.RED`, `Theme.TEAL`, etc.

## Quick Start

```bash
pip install discord.py>=2.6
```

```python
import discord
from discordkit import Kit, View, Theme

async def on_click(interaction: discord.Interaction):
    await interaction.response.send_message("Clicked!", ephemeral=True)

view = View(
    Kit.container(
        Kit.heading("Welcome"),
        Kit.text("This just works."),
        Kit.button("Click Me", emoji="🚀", callback=on_click),
        accent_colour=Theme.BLURPLE,
    )
)
await interaction.response.send_message(view=view)
```

## Link Button in Section

```python
Kit.section(
    "If life gives you banana, make giant spaghetti soup.",
    accessory=Kit.link_button(
        "Large Squid",
        "https://google.com",
        emoji="🌐",
    ),
)
```

## Requirements

- Python 3.10+
- discord.py >= 2.6

## License

MIT
