Skip to main content
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.7, 3.8, 3.9)

  • 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.

Release files for rnc2rng 2.7.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.7.0
File Size Uploaded
rnc2rng-2.7.0.tar.gz 19.0 kB Details

Built distribution (wheel)

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

Total release size: 31.5 kB

Release files / rnc2rng-2.7.0.tar.gz

Download URL rnc2rng-2.7.0.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dd9ffbbd69d09cb07e6e7a8cf80fd28703fdc6d3b9026f8756b49cbe3314676b
BLAKE2b-256 checksum
How to use checksums
afc003a30185eea227e37cde54ced8ee9e3ad023de113bd9bc932ffe8cf49b17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

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

Download URL rnc2rng-2.7.0-py3-none-any.whl
Size 12.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd044b77b80f4a77d4e5736d0088d9b71bdbb08ecff13aa200d99e14cde2215c
BLAKE2b-256 checksum
How to use checksums
f28e1cb1ce28c5aee1eeaf37d5180b1c28be075415c54888239ce4a5179b073d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

2.7.0 This release

2 release files

2.6.6

1 release file

2.6.5

1 release file

2.6.4

1 release file

2.6.3

1 release file

2.6.2

1 release file

2.6.1

1 release file

2.6

2 release files

2.5

2 release files

2.4.1

2 release files

2.4

1 release file

2.3

1 release file

2.2

1 release file

2.1

1 release file

2.0

1 release file

1.7

1 release file

1.0

4 release files

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