{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/8"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/3"}],"enrichment":{"capability":"Parses HTTP User-Agent headers in Django to identify visitor browser, OS, device type, and capabilities like mobile or touch support.","skillfed_tags":["device-detection","middleware","abandoned"],"use_cases":["Serve different HTML or CSS to mobile visitors versus desktop users without JavaScript detection.","Log or track device type (phone, tablet, PC) for analytics or user behavior studies.","Conditionally render touch-friendly UI components in templates when is_touch_capable is true.","Block or flag bot traffic by checking is_bot in middleware or views.","Adapt API responses or content based on device capabilities detected from User-Agent."],"what_it_does":"django-user-agents is a Django middleware and utility package that wraps user-agents to parse HTTP User-Agent headers and expose device, browser, and OS information on each request. It adds a user_agent attribute to the request object, allowing you to check properties like is_mobile, is_tablet, is_touch_capable, is_pc, and is_bot, plus access detailed browser family and version, OS family and version, and device family. The package also provides template filters and a utility function for use in views.\n\nThe package depends on django and user-agents as runtime dependencies. It supports optional caching via Django's cache framework to avoid re-parsing the same User-Agent strings. However, the package has been abandoned since 2019\u2014no releases or commits for several years\u2014and its classifiers reflect Python 2.7 and Python 3.4\u20133.7, all now end-of-life. Using it on modern Python or Django versions carries risk of undetected incompatibilities.","worth_installing":"No\u2014not without caution. The package is abandoned (last release 2019-06-22, last commit 2021-09-02) and its classifiers only cover Python 2.7 and 3.4\u20133.7, all end-of-life. Compatibility with modern Django and Python is unverified. For new projects, consider a maintained alternative or verify that the upstream user-agents library is still actively updated before committing."},"id":"django-user-agents","links":{"html":"https://skillfed.io/packages/django-user-agents","md":"https://skillfed.io/packages/django-user-agents.md","pypi":"https://pypi.org/project/django-user-agents/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-06-22","license_spdx":null,"license_treatment":"permissive","name":"django-user-agents","python_support":"unspecified","summary":"A django package that allows easy identification of visitors' browser, operating system and device information (mobile phone, tablet or has touch capabilities)."},"popularity":{"monthly_downloads":793298,"position":5042,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.4.0"}
