Welcome to the ERLC API Wrapper β your go-to Python library for interacting with the Emergency Response: Liberty County API. Whether you're building bots, dashboards, or integrating with other systems, this wrapper makes it effortless to retrieve and manipulate game data.
- π User-Friendly: Simplified functions for every endpoint.
- π Complete Coverage: Access every available API endpoint with ease.
- β‘ Robust Error Handling: Thoughtful error management to keep your app running smoothly.
Although this package isn't on PyPI yet, you can still get started by cloning the repository:
git clone https://github.com/AJXD2/erlc-api.git
cd erlc-api
poetry installMake sure you have Poetry installed to manage dependencies.
Dive right in with this sample code to see how the wrapper works:
from erlc import ErlcClient
client = ErlcClient()
server = client.get_server("...")
# π Get Server Info
print(server)
# π Explore Join Logs
print(server.joinlogs)
# π₯ Retrieve Kill Logs
print(server.killlogs)
# π‘οΈ Access Command Logs
print(server.commandlogs)
# π¨ View Mod Calls
print(server.modcalls)
# π· Check Bans
print(server.bans)
# β³ See Queue
print(server.queue)
# π₯ List Players
print(server.players)
# π Get Vehicles
print(server.vehicles)
# π» Run commands
server.run_command(":m Hello World!")This is just a glimpse of what you can do! Whether you're managing a server or simply exploring the data, this wrapper has you covered.
For full details on all the available endpoints, take a look at the official ERLC API documentation.
Have an idea? Found a bug? Contributions are highly appreciated! Please submit issues or pull requests to help make this project better.
This project is open-source under the MIT License. See the LICENSE file for more details.
Big thanks to the developers of Emergency Response: Liberty County for providing this API and creating an incredible role-playing experience.