Project: rfc3986-validator

Pure python rfc3986 validator

Project Details

Latest version
0.1.1
Home Page
https://github.com/naimetti/rfc3986-validator
PyPI Page
https://pypi.org/project/rfc3986-validator/

Project Popularity

PageRank
0.0016293554075219022
Number of downloads
8935714

rfc3986-validator

A pure python RFC3986 validator

image Build Status

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