GitPedia
ua-parser

ua-parser/uap-python

Python implementation of ua-parser

4 Releases
Latest: 2mo ago
ua-parser 1.0.21.0.2Latest
masklinnmasklinn·2mo ago·April 5, 2026
GitHub

📋 Changes

  • Fixed bug in yaml and json loaders, mostly (but not exclusively) affecting windows (non-ascii regex files would fail to parse)
  • Added caching by default to the regex and re2 resolvers.
  • Dropped Python 3.9
  • Added support for Python 3.13, 3.14, 3.14t, graal25
1.0.1: global parser is re-created on every access (/ parse)1.0.1
masklinnmasklinn·1y ago·February 1, 2025
GitHub

This led to the parser having to be re-created on every access, which is quite expensive for the re2 and regex-based parser and completely negates their purpose. This can be worked around by using a from-import (as Python will do the memoizing in that case, although every such from-import would create its own parser still) from ua_parser import parser and only parsing through that parser (without using the top-level utilities), or by setting the global parser "by hand" e.g. ua_parser.parser = ua_parser.parser but obviously that requires knowing about the issue. Major thanks to @Rafiot for the report.

1.0 release1.0.0
masklinnmasklinn·1y ago·November 28, 2024
GitHub
1.0.0-alpha.21.0.0a2Pre-release
masklinnmasklinn·1y ago·November 26, 2024
GitHub

previous release had a bunch of broken urls (doc and pypi), this should hopefully fix them