{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/14"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/5"}],"enrichment":{"capability":"Parses user agent strings and client hints to detect the browser, operating system, device type, brand, and model of client requests.","skillfed_tags":["user-agent-parsing","device-classification"],"use_cases":["Classify incoming HTTP requests by device type to serve responsive or device-specific content.","Detect bot traffic using the is_bot() method to filter automated requests from analytics or logs.","Extract browser and OS details from user agent strings for analytics, logging, or compatibility checks.","Parse client hints headers to identify the application or browser making requests, especially for mobile apps.","Build device-aware feature flags or A/B tests by detecting hardware brand, model, or OS version."],"what_it_does":"DeviceDetector is a Python user agent parser that identifies browsers, operating systems, device types (desktop, mobile, tablet, TV, console, etc.), and hardware brands and models from HTTP user agent strings and client hints. It is a port of the Matomo Universal Device Detection library and uses the same regex YAML database, so it benefits from updates to the original project. The package is optimized for speed through in-memory caching and provides both a full DeviceDetector class for comprehensive detection and a lighter SoftwareDetector class for OS and browser extraction only.\n\nThe package depends on ahocorasick-rs, regex, yaml-rs, backports.strenum, and typing_extensions. It supports Python 3.10 and later and is actively maintained with recent releases. The main caveat is that the license treatment is unclear\u2014no SPDX identifier or license text is declared in the package metadata.","worth_installing":"Yes, with a caveat on license clarity. The package is actively maintained, has low install friction, supports Python 3.10\u20133.14, and solves a real problem. However, verify the actual license in the repository before use in proprietary or restricted-license contexts, since the package metadata declares no license."},"id":"device-detector","links":{"html":"https://skillfed.io/packages/device-detector","md":"https://skillfed.io/packages/device-detector.md","pypi":"https://pypi.org/project/device-detector/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-11","license_spdx":null,"license_treatment":"unclear","name":"device-detector","python_support":"supports_current","summary":"Python3 port of matomo's Device Detector"},"popularity":{"monthly_downloads":251566,"position":8576,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"6.4.0"}
