Skip to main content

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

PyPI version Python Version License Code style: black Downloads

InstallationQuick StartDocumentationExamplesContributing


📖 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/await patterns for high-performance I/O operations
  • Type-Safe: 100% type-hinted codebase with full IDE support and autocompletion
  • Optimized: Uses aiohttp for networking and optional orjson for 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:

📖 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:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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

📄 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auric-0.0.2.tar.gz (236.0 kB view details)

Uploaded Source

Built Distribution

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

auric-0.0.2-py3-none-any.whl (300.1 kB view details)

Uploaded Python 3

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

Hashes for auric-0.0.2.tar.gz
Algorithm Hash digest
SHA256 098a343a881f71ce2c1e9bfd51e7c705aebd620d692f609747940fae757bc5d0
MD5 7c1e0eb92c6abde3249669c3954e21b6
BLAKE2b-256 a9cd67c1105a21c8c8a558f968eea202b587e1df6ff17e99a1fad7a398055f6b

See more details on using hashes here.

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

Hashes for auric-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 12efcc6b5d809442f4d14654afe74688a766720ad1e2c62efb82ec454897777b
MD5 5c54c6fbb0e21374ef7371e43190f066
BLAKE2b-256 d45886bc05f81eba33fc6b86ac80331e1eac9719c5542325e406605e00c5dc43

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