/usr/lib/imh-dnskeyapi/venv/lib/python3.13/site-packages/werkzeug
NameSizeModeActions
datastructures/-0755rm
debug/-0755rm
middleware/-0755rm
routing/-0755rm
sansio/-0755rm
wrappers/-0755rm
__pycache__/-0755rm
exceptions.py264550644editdlrm
formparser.py158470644editdlrm
http.py448800644editdlrm
local.py224920644editdlrm
py.typed00644editdlrm
security.py55810644editdlrm
serving.py398570644editdlrm
test.py527950644editdlrm
testapp.py63320644editdlrm
urls.py64300644editdlrm
user_agent.py14160644editdlrm
utils.py247250644editdlrm
wsgi.py208940644editdlrm
_internal.py55450644editdlrm
_reloader.py154290644editdlrm
__init__.py1650644editdlrm
Edit: /usr/lib/imh-dnskeyapi/venv/lib/python3.13/site-packages/werkzeug/user_agent.py (1416B)
from __future__ import annotations class UserAgent: """Represents a parsed user agent header value. The default implementation does no parsing, only the :attr:`string` attribute is set. A subclass may parse the string to set the common attributes or expose other information. Set :attr:`werkzeug.wrappers.Request.user_agent_class` to use a subclass. :param string: The header value to parse. .. versionadded:: 2.0 This replaces the previous ``useragents`` module, but does not provide a built-in parser. """ platform: str | None = None """The OS name, if it could be parsed from the string.""" browser: str | None = None """The browser name, if it could be parsed from the string.""" version: str | None = None """The browser version, if it could be parsed from the string.""" language: str | None = None """The browser language, if it could be parsed from the string.""" def __init__(self, string: str) -> None: self.string: str = string """The original header value.""" def __repr__(self) -> str: return f"<{type(self).__name__} {self.browser}/{self.version}>" def __str__(self) -> str: return self.string def __bool__(self) -> bool: return bool(self.browser) def to_header(self) -> str: """Convert to a header value.""" return self.string