$npx skillfedfor your agent

ua-generator

A random user-agent generator

Worth itPyPI WWW/HTTPReleased Aug 2026952.7K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — ua_generator-2.1.3-py3-none-any.whl
v2.1.3 · released 2026-08-02 · Python >=3.9

Yes. The package is lightweight, dependency-free, actively maintained, and solves a common need in web automation and testing. It covers modern browsers and platforms with hardcoded versions and includes Client Hints support. The recent release cycle and zero vulnerabilities make it a low-risk choice.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python >= 3.9
  • Installs cleanly with no runtime dependencies.
  • Actively maintained with a recent release (12 days old) and steady repository activity.

License · maintenance · safety

permissive license (permissive) — Licensed under Apache Software License (permissive), allowing use in commercial and private projects without significant restriction.

last release 2026-08-02 (12 days) · last repo commit 2026-08-09 · 172 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 952,670 downloads/mo, #4,652 on PyPI

Verify before relying

pip install ua-generator

import ua_generator

ua = ua_generator.generate()
print(ua.text)  # Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) ...
print(ua.headers.get())  # Dict with user-agent and Sec-CH-UA headers
  • Whether hardcoded user-agent versions remain current between releases without automatic updates
  • Performance characteristics when generating large batches of user-agents
Same gist for agents: .md · .json

What it is and what it does

ua-generator creates randomized user-agent strings that mimic real browsers and devices without relying on external data sources or downloads. The package hardcodes browser and platform versions based on actual releases, allowing you to generate strings for specific combinations of device type (desktop/mobile), platform (Windows, macOS, iOS, Linux, Android), and browser (Chrome, Edge, Firefox, Safari). It also generates corresponding Client Hints headers (Sec-CH-UA fields) that match the user-agent, making it suitable for integration with HTTP libraries like requests, httpx, urllib, and Selenium.

The package has no runtime dependencies and requires only Python 3.9 or later. You can customize generation with options like weighted version selection (favoring newer versions), version ranges, and latest-version-only filtering. The generated output includes the user-agent string itself, parsed metadata (platform, browser), and a headers helper that constructs a complete dictionary of HTTP headers ready to pass to requests or other HTTP clients.

Use it for

  • Rotate realistic user-agents in web scrapers to avoid detection and blocking
  • Test HTTP client libraries and servers with varied user-agent strings and Client Hints
  • Integrate randomized user-agents into Selenium automation to mimic real browser behavior
  • Generate matching user-agent and Sec-CH-UA headers for modern web requests
  • Populate test fixtures with realistic browser/platform combinations

Worth the install?

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

Worth it

Yes.

The package is lightweight, dependency-free, actively maintained, and solves a common need in web automation and testing. It covers modern browsers and platforms with hardcoded versions and includes Client Hints support. The recent release cycle and zero vulnerabilities make it a low-risk choice.

Install

ua-generator on PyPI

Before you install

Installs cleanly with no runtime dependencies. Actively maintained with a recent release (12 days old) and steady repository activity.

Requires Python >= 3.9

License in practice

Licensed under Apache Software License (permissive), allowing use in commercial and private projects without significant restriction.

Quickstart

pip install ua-generator

import ua_generator

ua = ua_generator.generate()
print(ua.text)  # Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_3) ...
print(ua.headers.get())  # Dict with user-agent and Sec-CH-UA headers

Verify before relying

  • Whether hardcoded user-agent versions remain current between releases without automatic updates
  • Performance characteristics when generating large batches of user-agents

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 12 days since the last release
Last repo commit
First released
Downloads952,670 / month, #4,652 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Topic :: Internet :: WWW/HTTP

Evidence: ua_generator-2.1.3-py3-none-any.whl

Tags

Capabilities
random user agent generatoruser-agent string generationbrowser user agent fakerhttp client hints generatorrealistic user agent strings
Topics
web-scrapinghttp-headerstesting

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 › “user-agent string generation”

  • ua-generatorGenerates realistic, randomized user-agent strings for modern…
  • user-agentGenerates random, valid web user agent strings for HTTP headers and…
  • wootheeWoothee parses user-agent strings to identify browsers, operating…

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

More WWW/HTTP 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
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also fake-useragent · ua-parser · fake-headers · user-agent · latest-user-agents · ua-parser-rs · random-user-agent · device-detector · fake-http-header · browserforge

Further reading