skillfed

google-re2-stubs

Typestubs for google-re2

google-re2-stubs v0.1.1 111.0K downloads/30d#12,436 on PyPI
Permissive license MIT DORMANT released

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-stubs

uv

uv add google-re2-stubs

poetry

poetry add google-re2-stubs

Installing 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

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

Tags

type stubs for google-re2re2 type hintsgoogle-re2 typing supportstatic type checking re2re2 regex type annotationspython type stubs regextype checking regular expressions
type-stubstyping

More Software Development packages