google-re2-stubs
Typestubs for google-re2
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires google-re2 to be installed; type stubs alone do not provide runtime functionality.
- 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 · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and commercial projects.
last release 2024-10-21 (662 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 111,016 downloads/mo, #12,436 on PyPI
Alternatives
Verify before relying
pip install google-re2-stubs
import re2
pattern = re2.compile(r'\w+')
match = pattern.search('text')- 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.
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 on it.
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
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.
Requires google-re2 to be installed; type stubs alone do not provide runtime functionality.
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')
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 packagegoogle-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 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: google_re2_stubs-0.1.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type stubs for google-re2”
- google-re2-stubsProvides type stubs for the google-re2 package, enabling static type…
- google-re2A drop-in replacement for Python's re module that uses Google's RE2…
- types-assertpyProvides type stubs enabling static type checkers like mypy and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also google-re2 · types-regex · google-auth-stubs · iregexp-check · regress · pathspec · jsonata-python · cel-python · pyspark-stubs