Metadata-Version: 2.4
Name: svapihelper-lc
Version: 1.0.0
Summary: ERLC API Wrapper for Discord Bots
Home-page: https://github.com/ctdevs/SVAPIHELPER-LC
Author: CT Devs
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: aiohttp
Requires-Dist: discord.py

SVAPIHELPER:LC

SVAPIHELPER:LC is the ultimate ERLC API wrapper designed for Discord bot developers.
It provides clean async methods, a full session manager, event dispatcher, typed responses, and easy integration with discord.py.

🚀 Features

• Simple ERLC API integration
• Async ERLC client using aiohttp
• Built-in Session Manager (perfect for patrol/shift systems)
• Event Dispatcher for custom automation
• Type-hinted for great editor support
• Full error handling for all API states
• Works with discord.py, nextcord, pycord, interactions.py
• Lightweight and fast
• Production-ready wrapper for ERLC servers, CAD/MDT systems, and dispatch tools

📦 Installation

pip install svapihelper-lc

🔧 Quick Example

from svapihelper_lc import ERLCClient, ERLCSessionManager
client = ERLCClient(api_key="YOUR_KEY")
sessions = ERLCSessionManager(client)
player = await sessions.get_player("PLAYER_ID")
print(player)

🤖 Discord Bot Example (discord.py)

from discord.ext import commands
from svapihelper_lc import ERLCClient, ERLCSessionManager

bot = commands.Bot(command_prefix="!")
client = ERLCClient(api_key="YOUR_KEY")
sessions = ERLCSessionManager(client)

@bot.command()
async def player(ctx, pid):
info = await sessions.get_player(pid)
await ctx.send("Player: " + info["username"])

📚 What’s Included
ERLCClient

• get_player(id)
• get_calls()
• get_servers()
• clock_in(player_id)
• clock_out(player_id)
• Automatic error handling
• Automatic JSON parsing
• Built using aiohttp

Session Manager

• start_session(name)
• end_session(name)
• active_sessions
• get_player(id)
• Designed for patrol systems and runtime memory

Event Dispatcher

• Register event listeners
• Dispatch async events
• Useful for live monitoring or auto-response bots

🛠️ Contributing

Pull requests welcome!
If you want a feature added, open an issue.

📛 Badges

Version: v1.0.0
Made for: ERLC API
Supports: discord.py, nextcord, pycord

📚 Extra Documentation

Coming soon:
• Full docs site
• Autogenerated API reference
• Example bots
• Tutorials

If you'd like me to generate ALL of this automatically, tell me: “generate docs site” or “generate examples”.

📜 License

MIT License
© 2025 CT Devs
