Skip to main content

ERLC API Wrapper for Discord Bots

Project description

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

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

svapihelper_lc-1.0.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

svapihelper_lc-1.0.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file svapihelper_lc-1.0.0.tar.gz.

File metadata

  • Download URL: svapihelper_lc-1.0.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for svapihelper_lc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 833d2ccd9a69bfea503635458c644209bcd645456f85125f561d504b07c1beb2
MD5 0cf759dc431a5bca1bd65cc24d953dca
BLAKE2b-256 c2d97c11896f9387bbacc0a7a6ff6efb56199147013c33143ae75e17f1a878f1

See more details on using hashes here.

File details

Details for the file svapihelper_lc-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: svapihelper_lc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for svapihelper_lc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e17be9c4649009d841380ccaa27ca9bb45d9c0338fb163ca60da15ef694be99
MD5 346c251e67d8244909475facc91b2ab9
BLAKE2b-256 a1eb38bcddeb8e225f415bce1845c70432c69c893448c4cda88126dce54e4237

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