A modern, powerful, and type-safe Discord API wrapper for Python
Project description
🌟 Auric
A modern, powerful, and type-safe Discord API wrapper for Python
Installation • Quick Start • Documentation • Examples • Contributing
📖 Overview
Auric is a powerful, asynchronous, and fully type-hinted Python library for interacting with the Discord API. Built from the ground up with modern Python features, it provides an intuitive and elegant interface for creating everything from simple bots to complex, production-ready applications.
✨ Key Features
🚀 Modern & Performant
- Async/Await: Built with modern Python
async/awaitpatterns for high-performance I/O operations - Type-Safe: 100% type-hinted codebase with full IDE support and autocompletion
- Optimized: Uses
aiohttpfor networking and optionalorjsonfor ultra-fast JSON processing
🎯 Comprehensive Discord API Support
- Slash Commands - Application commands with full option types support
- Message Components - Buttons, select menus, and modals
- Voice & Audio - Voice channel connection and audio playback
- Threads & Forums - Complete thread and forum channel support
- Auto-Moderation - Auto-mod rules and filters
- Scheduled Events - Create and manage guild events
- Stage Channels - Stage instance management
- Monetization - SKUs and subscription support
🛠️ Developer Experience
- Fluent Builders - Chainable builders for embeds, commands, and components
- Smart Collectors - Built-in collectors for messages, reactions, and interactions
- Plugin System - Organize your bot into reusable, modular plugins
- Advanced Caching - Intelligent caching with automatic memory management
- Auto-Sharding - Seamless sharding support for scaling to thousands of guilds
📦 Installation
Stable Release (Recommended)
pip install -U auric
With Voice Support
pip install -U "auric[voice]"
With Performance Optimizations
pip install -U "auric[speed]"
Development Version
pip install -U git+https://github.com/yourusername/auric.git
Requirements: Python 3.11 or higher
🚀 Quick Start
Basic Bot Example
import auric
# Create a client with default intents
client = auric.Client(intents=auric.Intents.default())
@client.event
async def on_ready():
print(f"✅ Logged in as {client.user.username}")
print(f"📊 Connected to {len(client.guilds)} guilds")
@client.event
async def on_message(message):
# Don't respond to ourselves
if message.author.bot:
return
if message.content.startswith("!ping"):
await message.reply("🏓 Pong!")
# Run the bot
client.run("YOUR_BOT_TOKEN")
Slash Command Example
import auric
from auric.builders import EmbedBuilder
client = auric.Client(intents=auric.Intents.default())
@client.slash_command(name="hello", description="Greet someone")
async def hello_command(interaction: auric.Interaction, name: str):
"""Say hello to a user"""
embed = (
EmbedBuilder()
.set_title(f"👋 Hello, {name}!")
.set_description("Welcome to the server!")
.set_color(0x5865F2)
.set_footer(text=f"Requested by {interaction.user.username}")
.build()
)
await interaction.reply(embed=embed)
client.run("YOUR_BOT_TOKEN")
Components & Modals Example
import auric
from auric.builders import ButtonBuilder, ActionRowBuilder
client = auric.Client(intents=auric.Intents.default())
@client.slash_command(name="button", description="Show a button")
async def button_command(interaction: auric.Interaction):
button = ButtonBuilder().set_label("Click me!").set_custom_id("my_button").build()
row = ActionRowBuilder().add_component(button).build()
await interaction.reply("Click the button below:", components=[row])
@client.event
async def on_interaction(interaction):
if interaction.type == auric.InteractionType.COMPONENT:
if interaction.data.custom_id == "my_button":
await interaction.reply("🎉 Button clicked!")
client.run("YOUR_BOT_TOKEN")
📚 Examples
Check out more examples in the repository:
- Simple Bot - Basic message handling
- Slash Commands - Application commands
- Components - Buttons and select menus
- Modals - Interactive forms
- Collectors - Message and reaction collectors
- Voice Bot - Voice channel features
- Plugin System - Modular bot structure
📖 Documentation
Coming soon! In the meantime, the codebase is fully type-hinted with comprehensive docstrings.
# Every function has detailed documentation
help(auric.Client)
help(auric.Embed)
help(auric.SlashCommandBuilder)
🤝 Contributing
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Please read our Contributing Guide for detailed guidelines.
Development Setup
# Clone the repository
git clone https://github.com/yourusername/auric.git
cd auric
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Run linter
flake8 auric
black auric --check
🛠️ Roadmap
- Complete API v10 coverage
- Comprehensive documentation website
- More examples and tutorials
- Performance benchmarks
- Database integration helpers
- Advanced plugin templates
💬 Support & Community
- GitHub Issues: Report bugs or request features
- GitHub Discussions: Ask questions and discuss ideas
- Discord: Coming soon!
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgements
- Built with ❤️ for the Discord bot development community
- Inspired by discord.py, discord.js, and other great Discord libraries
- Special thanks to all contributors
If you find Auric useful, please consider giving it a ⭐ on GitHub!
Made with ❤️ by the Auric Team
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file auric-0.0.2.tar.gz.
File metadata
- Download URL: auric-0.0.2.tar.gz
- Upload date:
- Size: 236.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
098a343a881f71ce2c1e9bfd51e7c705aebd620d692f609747940fae757bc5d0
|
|
| MD5 |
7c1e0eb92c6abde3249669c3954e21b6
|
|
| BLAKE2b-256 |
a9cd67c1105a21c8c8a558f968eea202b587e1df6ff17e99a1fad7a398055f6b
|
File details
Details for the file auric-0.0.2-py3-none-any.whl.
File metadata
- Download URL: auric-0.0.2-py3-none-any.whl
- Upload date:
- Size: 300.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12efcc6b5d809442f4d14654afe74688a766720ad1e2c62efb82ec454897777b
|
|
| MD5 |
5c54c6fbb0e21374ef7371e43190f066
|
|
| BLAKE2b-256 |
d45886bc05f81eba33fc6b86ac80331e1eac9719c5542325e406605e00c5dc43
|