{"library":"pydantic-string-url","title":"Pydantic URL String Types","description":"Pydantic URL types based on str class for fast and simple URL validation. Current version 1.0.2, release cadence is low (semi-active maintenance). Provides Pydantic field types like HttpUrl, FtpUrl, etc., but unlike pydantic's own UrlStr, these are simple str subclasses that do not parse URL components.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install pydantic-string-url"],"cli":null},"imports":["from pydantic_string_url import HttpUrl","from pydantic_string_url import FtpUrl"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"from pydantic import BaseModel\nfrom pydantic_string_url import HttpUrl, FtpUrl\n\nclass MyModel(BaseModel):\n    website: HttpUrl\n    ftp: FtpUrl\n\n# Valid\nm = MyModel(website='https://example.com', ftp='ftp://files.example.com')\nprint(m.website)  # 'https://example.com'\n\n# Invalid - raises ValidationError\n# m = MyModel(website='not-a-url', ftp='ftp://example.com')","lang":"python","description":"Define a Pydantic model with URL fields. The URL types validate the string is a proper URL, but keep it as a plain string (not parsed into components).","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}