Skip to main content

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.

Metadata

Release files for prc.api 0.20.2

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

Source distribution (sdist)

Source distribution for prc.api 0.20.2
File Size Uploaded Provenance Actions
prc_api-0.20.2.tar.gz 39.1 kB With provenance Details for prc_api-0.20.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prc.api 0.20.2
File Interpreter ABI Platform Actions
prc_api-0.20.2-py3-none-any.whl Python 3 none any Details for prc_api-0.20.2-py3-none-any.whl

Total release size: 83.2 kB

Release files / prc_api-0.20.2.tar.gz

Download URL prc_api-0.20.2.tar.gz
Size 39.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2e499e7b1cf04b9171d1bb619847d1b57d45f4035ce5c037af72071af0602b75
BLAKE2b-256 checksum
How to use checksums
c458d0d3d88771ae82024e5b70ed224a45823430320c6399087d253742b942a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Release files / prc_api-0.20.2-py3-none-any.whl

Download URL prc_api-0.20.2-py3-none-any.whl
Size 44.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0f0e9842f8cf67ec9c5efda3eedb168998e39bedb98e4ecd43b4a1738ceacfe
BLAKE2b-256 checksum
How to use checksums
819b2e742c4f6360c54a36efea732caa789a6e51d74c1efe00dd8b3cfa258437
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

Security for prc.api 0.20.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for prc_api-0.20.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 28, 2026.

Transparency log

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

0.20.2 This release

2 release files Full 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