Pure python rfc3986 validator
Project Links
Meta
Author: Nicolas Aimetti
Requires Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*
Classifiers
Development Status
- 2 - Pre-Alpha
Intended Audience
- Developers
License
- OSI Approved :: MIT License
Natural Language
- English
Programming Language
- Python :: 2
- Python :: 2.7
- Python :: 3
- Python :: 3.5
- Python :: 3.6
- Python :: 3.7
- Python :: 3.8
rfc3986-validator
A pure python RFC3986 validator
Install
pip install rfc3986-validator
Usage
>>> from rfc3986_validator import validate_rfc3986
>>> validate_rfc3986('http://foo.bar?q=Spaces should be encoded')
False
>>> validate_rfc3986('http://foo.com/blah_blah_(wikipedia)')
True
It also support validate URI-reference rule
>>> validate_rfc3986('//foo.com/blah_blah', rule='URI_reference')
True
- Free software: MIT license
Wheel compatibility matrix
Files in release
No dependencies