rwa-filer
Validate regulatory returns against the published supervisory rules and write them in the format the regulator accepts.
It carries the Bank of England's validation rules for banking taxonomy v4.1.1
and evaluates them as the Bank's gateway does, for 14 reporting modules
(PRA001, PRA116, Capital+, leverage, MREL and financial statements).
rwa-filer is a standalone package. It lives in the
rwa_calculator repository as a
uv workspace member and is released separately from rwa-calc: it depends on
Polars alone and never imports rwa_calc. rwa-calc uses it to validate the
returns it generates; any other system that can produce template-level figures
can use it the same way.
pip install rwa-filer
# Check a return: structure against the taxonomy, then the published rules
rwa-filer validate return.parquet \
--entity 5493001KJTIIGC8Y1R12 --reference-date 2027-03-31 --module PRA001
# Validate it and write the XBRL submission file, with a manifest
rwa-filer build return.parquet --out filing/ \
--entity 5493001KJTIIGC8Y1R12 --reference-date 2027-03-31 --module PRA001
# Record an approval against the file's checksum, and check it before upload
rwa-filer signoff filing/<name>.manifest.json --approver "C. Approver" --role "Head of Reporting"
rwa-filer verify filing/<name>.manifest.json
# What changed since the version already filed
rwa-filer diff filed.xbrl resubmission.xbrl
# A second opinion: have the Arelle XBRL processor check the written file
# against the Bank's taxonomy package, and compare its verdict on every rule
# with this package's own (needs rwa-filer[arelle] and the Bank's package)
rwa-filer referee filing/<name>.xbrl --taxonomy-package boe-banking-v411.zip
# A blank workbook in the template layout, to fill in and validate
rwa-filer template --module PRA001 --reference-date 2027-03-31 --out return.xlsx
rwa-filer --help
A return is a table with one row per reported cell (table, sheet,
open_key, row, column, value), read from Parquet or CSV, or an Excel
workbook in the template layout (needs rwa-filer[excel]), or an XBRL instance
written by any system.
The regulator's own validation on upload is authoritative. A clean result from
rwa-fileris evidence a return is well-formed, not a guarantee that it will be accepted.
See CHANGELOG.md for release notes.
Metadata
Release files for rwa-filer 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rwa_filer-0.1.0.tar.gz | 2.0 MB | With provenance | Details for rwa_filer-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rwa_filer-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for rwa_filer-0.1.0-py3-none-any.whl |
Total release size: 4.0 MB
Release files / rwa_filer-0.1.0.tar.gz
| Download URL | rwa_filer-0.1.0.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ede90ba8ff52d4e04a41aa8e80c85a7587229e66f066911fd62520aba1d6d383
|
|
BLAKE2b-256 checksum How to use checksums |
b168e324cb4f27685298a3a9f938ac01627da05255b03d12ec743a5e7ada6876
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Nov 14, 2026.
Transparency logRelease files / rwa_filer-0.1.0-py3-none-any.whl
| Download URL | rwa_filer-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f009a4160edac8d9f5a8f001e447e26bf09f81e97852c062b0bd6225ed8bb2a1
|
|
BLAKE2b-256 checksum How to use checksums |
2ddb073adcb746e2015ad45aac6577f9cf07a96624374547cf6513626452ec31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Nov 14, 2026.
Transparency logSecurity for rwa-filer 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for rwa_filer-0.1.0.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 Nov 14, 2026.
Transparency logA 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.