--- id: google-re2-stubs version: "0.1.1" license: MIT license_treatment: permissive maintenance: dormant --- # google-re2-stubs — Typestubs for google-re2 License: permissive · Maintenance: dormant · Downloads: 111.0K/mo ## 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 above — 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 pip install google-re2-stubs uv add google-re2-stubs 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_current - Install friction: low - Maintenance: dormant - Downloads: 111.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags type stubs for google-re2, re2 type hints, google-re2 typing support, static type checking re2, re2 regex type annotations, python type stubs regex, type checking regular expressions, type-stubs, typing [View on SkillFed](https://skillfed.io/packages/google-re2-stubs) · [View on PyPI](https://pypi.org/project/google-re2-stubs/)