Skip to content

Instantly share code, notes, and snippets.

View PeterBaker0's full-sized avatar

Peter Baker PeterBaker0

View GitHub Profile
@s3i7h
s3i7h / AnyUri.py
Last active April 2, 2024 17:14
a class that handles uri
import re
from re import Pattern
from typing import Dict, Any, cast
from pydantic.utils import update_not_none
from pydantic.validators import constr_length_validator
class RFC3986Regex:
ALPHA: Pattern = r"[a-zA-Z]"