Skip to main content

useragentgen

Random User-Agent string generator for Chrome, Firefox, Safari, Edge, and Opera. All browser templates are embedded inside the package — no external files needed after install.

Installation

pip install useragentgen

Quick start

import useragentgen

# Single UA, random browser
useragentgen.generate()

# Single UA, specific browser
useragentgen.generate("chrome")
useragentgen.generate("firefox")
useragentgen.generate("safari")
useragentgen.generate("edge")
useragentgen.generate("opera")

# Batch generation
useragentgen.generate_many(10)            # 10 random-browser UAs
useragentgen.generate_many(5, "chrome")   # 5 Chrome UAs

Reproducible output with a seed:

import useragentgen

useragentgen.init(42)
print(useragentgen.generate("chrome"))  # same result every run

Supported browsers

Key Covers
chrome Windows, macOS, Linux, Android
firefox All platforms
safari macOS, iOS, Windows
edge Windows, macOS, Linux, Android
opera Windows, macOS, Linux

License

MIT License Copyright (c) 2026 Masrkai, rights reserved

Metadata

Release files for useragentgen 1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for useragentgen 1.1
File Size Uploaded
useragentgen-1.1.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for useragentgen 1.1
File Interpreter ABI Platform
useragentgen-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / useragentgen-1.1.tar.gz

Download URL useragentgen-1.1.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
05b52f8dc4ab538b4738a00a196c27d18f14c86127b2714b36e35f2d9ba819e9
BLAKE2b-256 checksum
How to use checksums
17500b8817a84399a2bc55075c88dba1f6b569546e764df767ee508aa95e6369
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / useragentgen-1.1-py3-none-any.whl

Download URL useragentgen-1.1-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16959496b073698c554e158b4337bb2223f9c46ff16662fcbf623dffe5895df4
BLAKE2b-256 checksum
How to use checksums
23b22bba2eb503102c672d6b9f849703a37c53da66d38f2aabc156efdb412b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page