Skip to main content

WCA Regulations Compiler

This is a tool to check, build, compare WCA Regulations and Guidelines and its translations.

Install from PyPI

Install globally:

pip install wrc

# Run from the Python binary path:
wrc
wrc-states

If you use uv, you can also directly run the commands without installing:

uvx wrc
uvx --from wrc wrc-states

External dependencies

If you want to build the pdf versions, you need the patched qt version of wkhtmltopdf in your $PATH. These stable standalone binaries are available here for several platforms.

For CJK translations you also need to install some packages providing CJK fonts. The official build uses "UnBatang" for Korean (package fonts-unfonts-core or alike), "WenQuanYi Micro Hei" for Chinese (package fonts-wqy-microhei or alike), and "IPAX0208PGothic" for Japanese (package fonts-ipafont or alike).

Run the thing

Here are some sample invocations:

# To check the Regulations and Guidelines:
wrc path/to/wca-regulations --target=check
# To build the html to the `build` directory:
wrc path/to/wca-regulations --target=html --output=build
# To merge the Regulations and Guidelines into a single document (works with html, pdf and json targets):
wrc path/to/wca-regulations --target=html --output=build --merged
# When building translation it's necessary to provide the language (to choose the appropriate font/pdf names):
wrc path/to/wca-regulations-translations/french --language=french --target=pdf --output=build
# Check that a translation matches exactly the original rules:
wrc path/to/wca-regulations-translations/french --diff=path/to/wca-regulations

You can also take a look at the workflow used in the translations repository.

Running from the sources

The easiest way to develop locally is to use uv

Run the compiler (outputs into ./build/ by default):

uv run wrc --target html -- ./test/samples/plus_n/wca-regulations.md

Process a states file (outputs into ./build/ by default):

uv run -- wrc-states ./test/samples/states/wca-states.md --target=json

Publishing to PyPI

This is for maintainers in PyPI:

  • Bump the version number in pyproject-toml using either make version-bump-minor or make version-bump-patch.
  • Commit, tag, and push the version bump.
  • Run: make publish

Metadata

Release files for wrc 1.9.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 wrc 1.9.0
File Size Uploaded Provenance Actions
wrc-1.9.0.tar.gz 727.2 kB Without provenance Details for wrc-1.9.0.tar.gz

Built distribution (wheel)

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

Total release size: 1.5 MB

Release files / wrc-1.9.0.tar.gz

Download URL wrc-1.9.0.tar.gz
Size 727.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f71062c4d83a57c74030b21532de2b92e425448041152d9921fb911e3cd2a064
BLAKE2b-256 checksum
How to use checksums
5014dae382194c28b4291dc7a9dd8276d0931a7fd9c5392d977138cb082382be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / wrc-1.9.0-py3-none-any.whl

Download URL wrc-1.9.0-py3-none-any.whl
Size 727.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64b46d39912b76b8ab02076468949c35c17d6a91b756ece7fd8e92e7f51565ba
BLAKE2b-256 checksum
How to use checksums
00b6fc5f01acfd02704fa1536b973c025b41e288dc433d9db82377100167d1e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for wrc 1.9.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.9.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