rfc3986-validator is a pure Python library designed for validating Uniform Resource Identifiers (URIs) according to RFC 3986. It offers a single validation function. The library is currently at version 0.1.1, released in October 2019, and is designated as '2 - Pre-Alpha' development status, indicating a very inactive release cadence and experimental nature.
pip install rfc3986-validatorVerified import paths — ran on the pinned version, not inferred.
The `validate_rfc3986` function checks if a given string conforms to the RFC 3986 URI syntax. It can also validate against specific rules like 'URI_reference'.
For actively maintained and feature-rich RFC 3986 validation, parsing, and building capabilities, consider using the `rfc3986` library (without the '-validator' suffix) which is at version 2.0.0 and actively developed.
If your application requires more advanced URI handling, such as parsing components, building URIs, or custom validation rules (e.g., allowing only specific schemes or hosts), the `rfc3986` library offers `uri_reference`, `urlparse`, `validators.Validator` classes, and `URIBuilder` for these purposes.
pip install rfc3986-validator
from rfc3986_validator import validate_uri
import rfc3986_validator
rfc3986_validator.validate_uri("http://example.com")validate_uri("http://example.com") # Ensure the input is a stringNo dependency data recorded yet.