$npx skillfedfor your agent

pymobiledetect

Detect mobile and tablet browsers

SkipPyPI LibrariesReleased May 2018141.3K downloads / moAGPLPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pymobiledetect-1.3.2-py2-none-any.whl · pymobiledetect-1.3.2-py3-none-any.whl
v1.3.2 · released 2018-05-10 · 1 runtime deps: six

No, unless you are maintaining legacy code already using this package. The library is abandoned (last release 2018-05-10) and user-agent detection patterns will not reflect modern devices. For new projects, choose an actively maintained mobile detection library. If you must use it, accept that device classification accuracy will degrade over time and plan for eventual replacement.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a single lightweight dependency (six), but the package has been abandoned since 2018 with no recent maintenance or commits.
  • Use only if you accept the risk of an unmaintained codebase.

License · maintenance · safety

AGPL (agpl) — Licensed under AGPL, which requires that any modifications or derivative works be distributed under the same license and that source code be made available to users. This is a copyleft license with strong reciprocal obligations; review your project's licensing strategy before adopting.

last release 2018-05-10 (3018 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 141,277 downloads/mo, #11,243 on PyPI

Verify before relying

pip install pymobiledetect

from pymobiledetect import MobileDetect

detect = MobileDetect(user_agent='Mozilla/5.0 (iPhone; CPU iPhone OS')
if detect.is_mobile():
    print('Mobile device detected')
  • Whether user-agent detection patterns remain accurate for modern devices and browsers released after 2018
  • Compatibility with current Python versions beyond what classifiers declare
  • Whether the underlying Mobile-Detect library it wraps has been updated independently
Same gist for agents: .md · .json

What it is and what it does

pymobiledetect is a Python wrapper that parses HTTP user-agent strings to classify whether a request comes from a mobile phone, tablet, or desktop browser. It takes a user-agent string (typically from an HTTP request header) and provides methods to query device type. The package depends only on six for Python 2/3 compatibility.

The library is marked as Production/Stable but has been abandoned since its latest release on 2018-05-10, with no commits or maintenance since then. While it has low install friction and no known security vulnerabilities, the unmaintained status means user-agent detection patterns will drift from modern devices and browsers. It remains suitable for legacy systems or where device classification is non-critical, but new projects should evaluate actively maintained alternatives.

Use it for

  • Serve mobile-optimized layouts or stylesheets based on device type in web frameworks
  • Log or analyze traffic patterns by device category in web server middleware
  • Route API requests to different backends depending on whether the client is a mobile device
  • Implement responsive fallbacks or feature gates that depend on device classification
  • Track user-agent patterns in legacy systems where device detection is already in place

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Skip

No, unless you are maintaining legacy code already using this package.

The library is abandoned (last release 2018-05-10) and user-agent detection patterns will not reflect modern devices. For new projects, choose an actively maintained mobile detection library. If you must use it, accept that device classification accuracy will degrade over time and plan for eventual replacement.

Install

pymobiledetect on PyPI

Before you install

Low install friction with a single lightweight dependency (six), but the package has been abandoned since 2018 with no recent maintenance or commits. Use only if you accept the risk of an unmaintained codebase.

License in practice

Licensed under AGPL, which requires that any modifications or derivative works be distributed under the same license and that source code be made available to users. This is a copyleft license with strong reciprocal obligations; review your project's licensing strategy before adopting.

Quickstart

pip install pymobiledetect

from pymobiledetect import MobileDetect

detect = MobileDetect(user_agent='Mozilla/5.0 (iPhone; CPU iPhone OS')
if detect.is_mobile():
    print('Mobile device detected')

Verify before relying

  • Whether user-agent detection patterns remain accurate for modern devices and browsers released after 2018
  • Compatibility with current Python versions beyond what classifiers declare
  • Whether the underlying Mobile-Detect library it wraps has been updated independently

Package facts

LicenseAGPL agpl
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
six
MaintenanceAbandoned 3,018 days since the last release
First released
Downloads141,277 / month, #11,243 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: Web EnvironmentFramework :: DjangoIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)Programming Language :: PythonProgramming Language :: Python :: 3Topic :: Internet :: WWW/HTTPTopic :: Internet :: WWW/HTTP :: WSGI :: MiddlewareTopic :: Software Development :: Libraries

Evidence: pymobiledetect-1.3.2-py2-none-any.whl; pymobiledetect-1.3.2-py3-none-any.whl

Tags

Capabilities
mobile device detectionuser agent parsingdetect mobile browsertablet detectionmobile phone identifieruser agent classifierbrowser type detection
Topics
abandoneduser-agent-parsing
PyPI keywords
mobiletableddetectbrowser

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “mobile device detection”

  • pymobiledetectDetects mobile phones and tablets from HTTP user-agent strings and…
  • user-agentsParses browser user agent strings to identify device type (mobile,…
  • device-detectorParses user agent strings and client hints to detect the browser,…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also user-agents · django-user-agents · device-detector · woothee · ua-parser · httpagentparser · browserforge · user-agent · fake-useragent · random-user-agent