Skip to main content

RELAX NG Compact to RELAX NG conversion library

https://github.com/djc/rnc2rng/workflows/CI/badge.svg https://coveralls.io/repos/djc/rnc2rng/badge.svg?branch=master&service=github

Converts RELAX NG schemata in Compact syntax (rnc) to the equivalent schema in the XML-based default RELAX NG syntax. Dependencies:

  • Python 3.x (tested with 3.10, 3.11, 3.12, 3.13, 3.14)

  • rply

Feedback welcome on GitHub. Please consider funding continued maintenance of this project through Patreon or GitHub Sponsors.

History

rnc2rng was originally written by David Mertz in 2003 and published as part of a collection of files around RELAX NG on his site into the Public Domain. Hartmut Goebel published it as a package on PyPI to make it easier to access. It was mirrored on GitHub by Dustin J. Mitchell in 2010 after he fixed some bugs. Timmy Zhu forked his repository and contributed further enhancements. Recently, I (Dirkjan Ochtman) was interested in playing with RELAX NG Compact and started making further updates. I asked Hartmut for maintainership on PyPI and received it. While I cannot promise many updates, I should be responsive to bug reports and (especially!) pull requests.

How to install

The usual should work:

$ sudo pip install .

Getting started

$ python -m rnc2rng test.rnc > test.rng

License

All of the code is released under MIT License.

Metadata

Release files for rnc2rng 2.8.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 rnc2rng 2.8.0
File Size Uploaded Provenance Actions
rnc2rng-2.8.0.tar.gz 24.6 kB Without provenance Details for rnc2rng-2.8.0.tar.gz

Built distribution (wheel)

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

Total release size: 39.1 kB

Release files / rnc2rng-2.8.0.tar.gz

Download URL rnc2rng-2.8.0.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e6213f96dc88f0b499b281f038a53ed6dc1f21dae8bf822b9fdee9406468a2a6
BLAKE2b-256 checksum
How to use checksums
99f441f2f113d56e0eec547cfd8d09d4f1270de339bf74ff6d72f29ec8658c16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / rnc2rng-2.8.0-py3-none-any.whl

Download URL rnc2rng-2.8.0-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
265804d9e69c47d0b88730aeef1ba1726563b82f51bf6400e182cae9d03c0f5c
BLAKE2b-256 checksum
How to use checksums
f9400c223f8632cac14fe39851011916806e3837e17941196e19d1130279c248
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for rnc2rng 2.8.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.

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