ua-parser-builtins provides a precompiled ruleset for the `ua-parser` library, aiming to decrease its initialization times. This package itself does not expose any API; it solely contains the data. The precompiled ruleset is released monthly, synchronized with the `uap-core` project's default branch. The current version is 202603, released March 2026.
pip install ua-parser-builtinsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates the usage of the `ua-parser` library, which is the consumer of the precompiled rules provided by `ua-parser-builtins`. Installing `ua-parser-builtins` along with `ua-parser` will reduce the initialization time of the parser.
Always install 'ua-parser' (e.g., `pip install ua-parser ua-parser-builtins`) to utilize the provided data.
Install with `pip install 'ua-parser[regex]' ua-parser-builtins` or `pip install 'ua-parser[re2]' ua-parser-builtins`.
Keep `ua-parser-builtins` updated regularly (e.g., monthly) to ensure the `ua-parser` library benefits from the latest user agent detection rules.
Before installing 'ua-parser', ensure the necessary build dependencies are installed in the environment. For Alpine Linux, this typically involves running `apk add build-base rust`.