--- id: ua-parser-rs version: "0.1.5" license: Apache 2.0 license_treatment: permissive maintenance: active --- # ua-parser-rs — native accelerator for ua-parser License: permissive · Maintenance: active · Downloads: 3.5M/mo ## What it is and what it does ua-parser-rs is a Rust-based accelerator for user-agent parsing, designed as a native backend for the ua-parser library rather than for direct use. It wraps uap-rust, a Rust implementation of the user-agent parsing specification, and exposes a minimal Python API to parse HTTP user-agent strings into structured data about browsers, operating systems, and devices. The package trades ease of development for speed: it requires Python 3.10+ and is distributed as precompiled wheels for major platforms and Python implementations (CPython, GraalPy, PyPy). Installation is straightforward on common systems, though unsupported architectures may need a Rust build environment. The API is intentionally simple and stable to minimize maintenance burden, though the maintainers make no formal guarantee of backward compatibility. Use it for: - Speed up web request logging and analytics by parsing user-agent strings faster than pure-Python implementations. - Integrate into ua-parser as a drop-in accelerator backend for existing applications already using ua-parser. - Analyze HTTP traffic in high-throughput services where user-agent parsing is a bottleneck. - Extract browser, OS, and device details from server logs or request streams in real time. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a Rust-accelerated user-agent parser that integrates as a native backend for ua-parser, parsing browser and device information from HTTP user-agent strings. Yes, if you use ua-parser and want a performance boost without API changes. The package is actively maintained, has no known vulnerabilities, and offers precompiled wheels for common platforms. Install friction is medium but manageable. Not recommended for direct use outside ua-parser integration—check ua-parser's documentation for how to enable this accelerator. ## Install pip install ua-parser-rs uv add ua-parser-rs poetry add ua-parser-rs ## Installing ua-parser-rs Before you install: Medium install friction due to compiled wheels; prebuilt binaries available for common platforms (x86_64, ARM64 on Linux, macOS, Windows) and Python versions 3.10–3.14, reducing build complexity. Active maintenance with recent commits. License in practice: Apache 2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions; suitable for most projects. Quickstart: pip install ua-parser-rs import ua_parser_rs # Typically used as a backend to ua-parser, not directly result = ua_parser_rs.parse_user_agent("Mozilla/5.0...") Requires Python 3.10 or later; precompiled wheels available for common architectures, but installation on unsupported platforms may require Rust toolchain. Verify before relying: - Whether this package can be used standalone or only through ua-parser's integration layer. - Performance improvement magnitude compared to pure-Python ua-parser. - Stability of the public API beyond the stated 'very simplistic' export. ## Package facts - License: Apache 2.0 (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 3.5M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags user agent parser, ua parser accelerator, rust user agent parsing, browser detection, device identification from user agent, http user agent string parsing, ua-parser backend, user-agent-parsing, rust-accelerator, web-analytics [View on SkillFed](https://skillfed.io/packages/ua-parser-rs) · [View on PyPI](https://pypi.org/project/ua-parser-rs/)