🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

prc.api

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prc.api

prc.api is an asynchronous Python wrapper for the PRC/ERLC API

pipPyPI
Version
0.20.0
Weekly downloads
90
Maintainers
1
Weekly downloads
 

prc.api is an asynchronous Python wrapper for the Police Roleplay Community (PRC) API / ERLC API.
It provides a convenient way to interact with PRC APIs, including the private server APIs for ER:LC (aka. ERLC API), webhook handlers and more.

📖 Documentation | PyPI

Features

  • 🧩 Developer Friendly
    Functions and responses are wrapped and categorized for ease of use.
  • 💫 Full Coverage
    Supports ALL features from both API v1 and v2 as of May 2026.
  • 🛡️ Maintained
    One of the only actively maintained and fully open source (OSS) PRC API libraries.
  • 💪 Robust
    Well tested against errors and handles all known edge-cases. The package is in use by several large communities with high reliability.

And more...

  • Rate Limits & Caching
    By default, the package handles and queues requests to ensure near-zero chances of rate limits. It also caches frequent requests and reusable data.
  • Better Models
    The package is strictly typed and all API data is transformed for ease of use. 🎊 Vehicle names, command names AND street names are all included.
  • Utilities
    Extremely useful utilities and helpers spread across the package to make your life easier.
  • Prevents Bans
    Along with rate limit parsing and handling, you never have to worry about invalid secrets resulting in IP bans.
  • Webhook Events
    Included are also types for all ER:LC Webhook Event payloads.
  • New API Domain
    By default, the package uses the new API domain (api.erlc.gg) for all outgoing requests and quick join links.

Check out the documentation for all details.

Install Latest Release (pip)

pip install prc.api

The package has been tested for Python v3.8+. It may not work on older versions.

Keywords

erlc

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts