google-re2-stubs
Typestubs for google-re2
What it is and what it does
google-re2-stubs is a type stub package that provides type hints for the google-re2 library, a Python binding to Google's RE2 regular expression engine. It does not implement any runtime functionality itself; instead, it supplies type information that allows static type checkers and IDEs to understand the types and signatures of google-re2's API. This is useful for developers who want to use google-re2 in type-checked Python code and need IDE autocomplete and type validation.
The package depends on google-re2 at runtime and supports Python 3.8 through 3.13. Because it is a stub-only package, installation is lightweight and friction-free. The dormant maintenance status reflects the typical lifecycle of stub packages—they are stable once written and rarely need updates unless the underlying library's API changes significantly.
Use it for:
- Enable type checkers to validate code that uses google-re2 without type errors.
- Provide IDE autocomplete and inline documentation for google-re2 functions and classes.
- Support gradual typing in a codebase that migrates from untyped to typed regular expression operations.
- Ensure type safety in projects that combine google-re2 with other type-annotated libraries.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type stubs for the google-re2 package, enabling static type checking and IDE autocompletion for RE2 regular expression operations in Python.
Yes, if you use google-re2 and want static type checking. The package is lightweight, permissively licensed, has no known vulnerabilities, and solves a real problem for typed Python development. The dormant maintenance status is not a concern for a stub package, which is a stable artifact. Install it alongside google-re2 in any project that enforces type checking.
Install
google-re2-stubs on PyPI
pip
pip install google-re2-stubsuv
uv add google-re2-stubspoetry
poetry add google-re2-stubsInstalling google-re2-stubs
Before you install
Low install friction; a pure-Python stub package with a single runtime dependency on google-re2. Maintenance is dormant (662 days since last release), but stubs are typically stable artifacts that require infrequent updates.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and commercial projects.
Quickstart
pip install google-re2-stubs
import re2
pattern = re2.compile(r'\w+')
match = pattern.search('text')
Requires google-re2 to be installed; type stubs alone do not provide runtime functionality.
Verify before relying
- Whether stubs cover the full google-re2 API surface or only a subset of its public interface.
- Compatibility with type checkers other than mypy (e.g., pyright, pyre).
- Whether the dormant status reflects active maintenance or true abandonment.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0.0,>=3.8.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — google-re2 |
| Maintenance | dormant — 662 days since the last release |
| First released | |
| Downloads | 111,016/month — #12,436 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google_re2_stubs-0.1.1-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
google-re2A drop-in replacement for Python's re module…
permissive · top 5,000 on PyPI
types-regexProvides type annotations for the regex…
permissive · top 5,000 on PyPI
google-auth-stubsProvides type stubs for the google-auth…
permissive · top 5,000 on PyPI
iregexp-checkValidates regular expressions against RFC 9485…
permissive · top 15,000 on PyPI
regressProvides Python bindings to the Rust regress…
permissive · top 5,000 on PyPI
pathspecMatches file paths against gitignore-style…
copyleft · top 100 on PyPI
jsonata-pythonEvaluates JSONata expressions against JSON…
permissive · top 5,000 on PyPI
cel-pythonParses and evaluates Google Common Expression…
unclear · top 5,000 on PyPI
pyspark-stubsProvides type stubs for PySpark to enable…
permissive · top 15,000 on PyPI