An open-source XBRL processor for business rules, rendering and custom data reporting. See https://xbrl.us/xule for documentation and https://xbrl.us/xule-editor for a VS Code syntax highlighter.
Interactive Example - Running XULE in Arelle
Learn about using XULE and XBRL
Opening this repository in a Codespace uses the devcontainer config to set up a ready-to-use development environment: Python, Arelle, the EDGAR transform/validate plugins, and the XULE plugin (linked live from this checkout, so edits under plugin/xule take effect immediately). The XULE Editor VS Code extension is installed automatically for .xule syntax highlighting.
It also pulls in content from the latest DataQualityCommittee/dqc_us_rules release into a dqc_us_rules folder at the repo root: resources/Effective_Dates, resources/rule-form-lookup, source/lib, and the latest source/us/<year> and taxonomy/us/<year> folders. Inside source/us/<year>, the .vscode config is overwritten with xbrlus/xule-editor's copy for that year — open dqc_us_rules/source/us/<year> directly in VS Code/Codespaces to pick it up.
A Dockerfile is provided that builds a ready-to-run environment with Python, Arelle, and the XULE and EDGAR plugins installed. The Build XULE Container GitHub Action builds this image and pushes it to ghcr.io/xbrlus/xule.
docker pull ghcr.io/xbrlus/xule:latest
docker run --rm -v "$(pwd):/workspace" ghcr.io/xbrlus/xule:latest \
python -m arelle.CntlrCmdLine --plugin xule --about
docker build -t xule .
Versions can be overridden with build args:
docker build \
--build-arg PYTHON_VERSION=3.14 \
--build-arg ARELLE_VERSION=2.41.6 \
--build-arg EDGAR_VERSION=26.1 \
--build-arg XULE_VERSION=30052 \
-t xule .
PYTHON_VERSION- Python base image version (default3.14)ARELLE_VERSION-Arelle-releasePyPI package version (default2.41.6)
Run the Build XULE Container workflow from the Actions tab (workflow_dispatch). Leave the inputs blank to build with the latest available release of Python, Arelle, and XULE, or set any of them to pin a specific version:
ref- branch, tag, or SHA of this repo to build XULE frompython_version- Python version for the base imagearelle_version-Arelle-releasepackage version
See License for license information.
See Patent Notice for patent infringement notice.
Copyright 2015 - 2026 XBRL US, Inc. All rights reserved.