$npx skillfedfor your agent

user-agent

Library to build content for User-Agent HTTP header

With conditionsPyPI Python ModulesReleased Sep 2025315.9K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — user_agent-0.1.14-py2.py3-none-any.whl
v0.1.14 · released 2025-09-10 · Python >=2.7 · 2 runtime deps: six, pytz

Yes, if you need basic user agent generation for web scraping or testing. The low install friction, permissive MIT license, and broad Python version support make it straightforward to add. However, be aware that maintenance is aging (338 days since last release) and the user agent database may not reflect the latest browser versions—verify that generated agents match your target environment before relying on it for production bot detection evasion.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with only two lightweight runtime dependencies (six and pytz).
  • Maintenance status is aging—last release was 338 days ago—but the repository remains active with recent commits and no archived status.

License · maintenance · safety

permissive license (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal obligations, making it suitable for both open-source and commercial projects.

last release 2025-09-10 (338 days) · last repo commit 2025-09-14 · 347 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 315,880 downloads/mo, #7,683 on PyPI

Verify before relying

pip install user-agent

from user_agent import generate_user_agent, generate_navigator

generate_user_agent()
# 'Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.3; Win64; x64)'

generate_navigator()
  • Whether the generated user agents remain current with modern browser versions and OS releases
  • How frequently the user agent database is updated to reflect real-world browser landscape changes
Same gist for agents: .md · .json

What it is and what it does

user_agent is a library for generating realistic, randomized user agent strings and navigator object properties. It produces valid HTTP User-Agent header content and JavaScript navigator object data across a range of browsers and operating systems. The package exposes functions like generate_user_agent() and generate_navigator() that return either raw strings or structured dictionaries, and includes a command-line tool (ua) for one-off generation.

The library is commonly used in web scraping, web crawling, and testing scenarios where rotating or spoofing user agents helps avoid detection or simulate diverse client environments. It depends on six and pytz for Python 2/3 compatibility and timezone handling. The package supports Python 2.7 through 3.13, though its aging maintenance status means the underlying user agent database may lag behind the latest browser releases.

Use it for

  • Rotate user agents in web scrapers to avoid bot detection and IP blocking
  • Generate realistic navigator objects for browser automation and headless testing
  • Simulate diverse client environments in load testing and stress testing scenarios
  • Populate User-Agent headers in HTTP requests for web crawlers and API clients
  • Test web applications' handling of different browsers and operating systems

Worth the install?

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

With conditions

Yes, if you need basic user agent generation for web scraping or testing.

The low install friction, permissive MIT license, and broad Python version support make it straightforward to add. However, be aware that maintenance is aging (338 days since last release) and the user agent database may not reflect the latest browser versions—verify that generated agents match your target environment before relying on it for production bot detection evasion.

Install

user-agent on PyPI

Before you install

Low install friction with only two lightweight runtime dependencies (six and pytz). Maintenance status is aging—last release was 338 days ago—but the repository remains active with recent commits and no archived status.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal obligations, making it suitable for both open-source and commercial projects.

Quickstart

pip install user-agent

from user_agent import generate_user_agent, generate_navigator

generate_user_agent()
# 'Mozilla/5.0 (compatible; MSIE 8.0; Windows NT 6.3; Win64; x64)'

generate_navigator()

Verify before relying

  • Whether the generated user agents remain current with modern browser versions and OS releases
  • How frequently the user agent database is updated to reflect real-world browser landscape changes

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=2.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
sixpytz
MaintenanceAging 338 days since the last release
Last repo commit
First released
Downloads315,880 / month, #7,683 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.0Programming Language :: Python :: 3.1Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Evidence: user_agent-0.1.14-py2.py3-none-any.whl

Tags

Capabilities
random user agent generatoruser agent string generationbrowser user agent fakerweb scraping user agenthttp header user agentnavigator object generatorfake browser agent
Topics
web-scrapingtestinguser-agent
PyPI keywords
user agentbrowserweb crawlingweb scrapingweb crawlerweb scraper

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 › “navigator object generator”

  • user-agentGenerates random, valid web user agent strings for HTTP headers and…
  • browserforgeGenerates realistic browser headers and device fingerprints that…
  • playwright-stealthApplies evasion techniques to Playwright browser instances to mask…

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

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also fake-headers · latest-user-agents · random-user-agent · fake-useragent · woothee · ua-generator · fake-http-header · ua-parser · browserforge · httpagentparser

Further reading