{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http"}],"enrichment":{"capability":"Parses browser user agent strings to identify device type (mobile, tablet, PC), detect touch capabilities, and extract browser and OS information.","skillfed_tags":["user-agent-parsing","device-detection","abandoned-but-stable"],"use_cases":["Serve mobile-optimized content or layouts based on device type detection in web frameworks.","Block or flag bot traffic by identifying search engine crawlers and spiders in request logs.","Customize user experience by detecting touch-capable devices and enabling touch-friendly interactions.","Log and analyze visitor device demographics (mobile vs. tablet vs. desktop) for analytics.","Implement device-specific feature flags or API responses in REST or GraphQL backends."],"what_it_does":"user-agents is a Python library that wraps ua-parser to parse HTTP user agent strings and classify the requesting device. It identifies whether a user agent belongs to a mobile phone, tablet, or desktop PC; detects touch capabilities; and extracts structured information about the browser family, OS, device brand, and model. The library exposes convenience methods like is_mobile, is_tablet, is_pc, is_touch_capable, and is_bot to make device detection straightforward in web applications.\n\nThe package relies entirely on ua-parser to do the actual parsing work and maintains a thin, user-friendly API on top. It has been stable since its 2.0 release in 2019 and is classified as Production/Stable, but development has stalled\u2014the last update was in August 2020, and the repository shows no activity since February 2023. This means the underlying device and browser database will become increasingly outdated as new devices and user agent formats emerge.","worth_installing":"Yes, with conditions. Install if you need straightforward user agent parsing for a stable, mature codebase and can tolerate outdated device/browser data. The low install friction, permissive MIT license, and zero known vulnerabilities make it safe to add. However, do not install if you require current detection of recent devices, browsers, or user agent formats\u2014the package is abandoned and will not track new user agents. For new projects, evaluate whether ua-parser alone or a more actively maintained alternative better suits your needs."},"id":"user-agents","links":{"html":"https://skillfed.io/packages/user-agents","md":"https://skillfed.io/packages/user-agents.md","pypi":"https://pypi.org/project/user-agents/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-08-23","license_spdx":null,"license_treatment":"permissive","name":"user-agents","python_support":"unspecified","summary":"A library to identify devices (phones, tablets) and their capabilities by parsing browser user agent strings."},"popularity":{"monthly_downloads":11641606,"position":1374,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.2.0"}
