Skip to main content

RELAX NG Compact to regular syntax conversion library

Project description

https://travis-ci.org/djc/rnc2rng.svg?branch=master 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 2.x (tested with 2.6, 2.7)

  • Python 3.x (tested with 3.3, 3.4, 3.5, 3.7, 3.8)

  • rply

Feedback welcome on GitHub.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rnc2rng-2.6.5.tar.gz (16.7 kB view details)

Uploaded Source

File details

Details for the file rnc2rng-2.6.5.tar.gz.

File metadata

  • Download URL: rnc2rng-2.6.5.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.3

File hashes

Hashes for rnc2rng-2.6.5.tar.gz
Algorithm Hash digest
SHA256 d354afcf0bf8e3b1e8f8d37d71a8fe5b1c0cf75cbd4b71364a9d90b5108a16e5
MD5 d1bd1afd9fabea5dc956b3f80271e1d5
BLAKE2b-256 a2c8d611614ac46da8a199118dfc932d9f133156cb738582b17d74b0ab9b9a85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page