Skip to main content

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

Reason this release was yanked:

Unexpected breaking bugs

Project description

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.

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

prc_api-0.20.1.tar.gz (39.1 kB view details)

Uploaded Source

Built Distribution

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

prc_api-0.20.1-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file prc_api-0.20.1.tar.gz.

File metadata

  • Download URL: prc_api-0.20.1.tar.gz
  • Upload date:
  • Size: 39.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for prc_api-0.20.1.tar.gz
Algorithm Hash digest
SHA256 0dc43e38ff2ba463874cca5e1732e856685dfbc52524a711cdfe723d6724fe32
MD5 91314710b5eeea7674be0ad63b5f957d
BLAKE2b-256 5f893ddde890266318444bd4b200f400283a9fa2e2490e7bb1a609ceb962f1a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for prc_api-0.20.1.tar.gz:

Publisher: release.yml on TychoTeam/prc.api-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file prc_api-0.20.1-py3-none-any.whl.

File metadata

  • Download URL: prc_api-0.20.1-py3-none-any.whl
  • Upload date:
  • Size: 44.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for prc_api-0.20.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f6e441ea2c3c6f5b266e8e56d1b2bf11b366f57afe02e977616ad75ce46aafc
MD5 99ec85a3121f9744ac56e713ab4ac115
BLAKE2b-256 211d863d61cdcbf7c717dea25a2cc5c14164182b36f16d1d07a23acff703fff7

See more details on using hashes here.

Provenance

The following attestation bundles were made for prc_api-0.20.1-py3-none-any.whl:

Publisher: release.yml on TychoTeam/prc.api-py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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