Helper functions to syntactically validate strings according to RFC 3987.
Low maintenance activity. Last release 16 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install rfc3987-syntaxrfc3987-syntax
Helper functions to parse and validate the syntax of terms defined in RFC 3987 — the IETF standard for Internationalized Resource Identifiers (IRIs).
🎯 Purpose
The goal of rfc3987-syntax is to provide a lightweight, permissively licensed Python module for validating that strings conform to the ABNF grammar defined in RFC 3987. These helpers are:
- ✅ Strictly aligned with the syntax rules of RFC 3987
- ✅ Built using a permissive MIT license
- ✅ Designed for both open source and proprietary use
- ✅ Powered by Lark, a fast, EBNF-based parser
🧠 Note: This project focuses on syntax validation only. RFC 3987 specifies additional semantic rules (e.g., Unicode normalization, BiDi constraints, percent-encoding requirements) that must be enforced separately.
📄 License, Attribution, and Citation
rfc3987-syntax is licensed under the MIT License, which allows reuse in both open source and commercial software.
This project:
- ❌ Does not depend on the
rfc3987Python package (GPL-licensed) - ✅ Uses
lark, licensed under MIT - ✅ Implements grammar from RFC 3987, using RFC 3986 where RFC 3987 delegates syntax
⚠️ This project is not affiliated with or endorsed by the authors of RFC 3987 or the
rfc3987Python package.
Please cite this software in accordance with the enclosed CITATION.cff file.
⚠️ Limitations
The grammar and parser enforce only the ABNF syntax defined in RFC 3987. The following are not validated and must be handled separately for full compliance: