Skip to main content

pyerlc

pyerlc is a lightweight Python wrapper for the Emergency Response: Liberty County (ERLC) Police Roleplay Community (PRC) API. It allows you to interact programmatically with your PRC server, providing access to live server data and admin controls.

Features

  • ✅ Get server status
  • 👥 Fetch player lists and join logs
  • 🔫 Retrieve kill and command logs
  • 🚓 View active vehicles and bans
  • 🛑 See moderation calls and queue status
  • 🧠 Run in-game commands remotely

Installation

pip install pyerlc

Requires: Python 3.12 or higher

Usage

from pyerlc import PRCClient

client = PRCClient(server_key="your_server_key", global_api_key="your_global_api_key")

# Get server status
status = client.get_server_status()
print(status)

# Run an in-game command
response = client.run_command("announce Hello from pyerlc!")
print(response)

Please only use a 'global_api_key' if you have been provided with one.

API Methods

Method Description
get_server_status() Returns general info about the server
get_players() Lists all players currently online
get_join_logs() Returns recent player join logs
get_kill_logs() Returns recent player kill logs
get_command_logs() Lists executed commands
get_mod_calls() Shows active mod calls
get_queue() Lists users in the server queue
get_bans() Retrieves the ban list
get_vehicles() Lists vehicles currently spawned
run_command(command: str) Runs a command on the server

Error Handling

All methods return a dictionary with the following structure:

{
    "success": True or False,
    "status_code": 200,
    "data": {...} or None,
    "error_message": "Optional error message",
    "error_code": 0  # only present if returned by the API
}

Contributing

Contributions are welcome! Submit a PR or open an issue on GitHub.

License

This project is licensed under the MIT License.


Built and maintained with 💙 by epell Development Product of Australia 🇦🇺

Metadata

Release files for pyerlc 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyerlc 1.1.0
File Size Uploaded Provenance Actions
pyerlc-1.1.0.tar.gz 6.4 kB Without provenance Details for pyerlc-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyerlc 1.1.0
File Interpreter ABI Platform Actions
pyerlc-1.1.0-py3-none-any.whl Python 3 none any Details for pyerlc-1.1.0-py3-none-any.whl

Total release size: 13.6 kB

Release files / pyerlc-1.1.0.tar.gz

Download URL pyerlc-1.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ab5f73c37b84128c80f2b8bd98b111a6acb669f50eebc538de746ce4252002e4
BLAKE2b-256 checksum
How to use checksums
d1a3fc897a2d1331e33ad43365c1b5189950c582302d3a16fd6dee062ca9a9e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Release files / pyerlc-1.1.0-py3-none-any.whl

Download URL pyerlc-1.1.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
13513ebdf35343212b41a3d25642b3a813fcb20d0b0e612a6fadc0aa3a02bbe6
BLAKE2b-256 checksum
How to use checksums
7a7303cf826c3a89298187a7048056217712c597bb98460096b1d5a6202f5c14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.0

Security for pyerlc 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page