--- id: ua-parser version: "1.0.2" license: Apache-2.0 license_treatment: permissive maintenance: active --- # ua-parser — Python port of Browserscope's user agent parser License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install ua-parser uv add ua-parser poetry add ua-parser ## Description uap-python ========== Official python implementation of the `User Agent String Parser `_ project. Build Status ------------ .. image:: https://github.com/ua-parser/uap-python/actions/workflows/ci.yml/badge.svg :target: https://github.com/ua-parser/uap-python/actions/workflows/ci.yml?query=branch%3Amaster :alt: CI on the master branch .. image:: https://readthedocs.org/projects/uap-python/badge/?version=latest :target: https://uap-python.readthedocs.io/ :alt: Documentation Status Installing ---------- Add ``ua-parser[regex]`` to your project's dependencies, or run .. code-block:: sh $ pip install 'ua-parser[regex]' to install in the current environment. ua-parser supports CPython 3.10 and newer, recent pypy (supporting 3.10), and GraalPy 25. .. note:: The ``[regex]`` feature is *strongly* recommended, the Pure python (no feature) is *significantly* slower, especially on non-cpython runtimes, though it is the most memory efficient. See `builtin resolvers`_ for more explanation of the tradeoffs between the different options. .. _builtin resolvers:... ## AI interpretation — verify before relying Parses user-agent strings to extract browser, operating system, and device information. Provides structured access to family, version, and device details from HTTP user-agent headers. Verdict: Production-ready, actively maintained parser with no known vulnerabilities and permissive licensing. Low install friction and broad Python runtime support make it a solid choice for user-agent analysis in web applications. [View on SkillFed](https://skillfed.io/packages/ua-parser) · [View on PyPI](https://pypi.org/project/ua-parser/)