types-polib
Typing stubs for polib
Decision gist · record as of 2026-08-14
Yes, if you use polib and want static type checking. It has no runtime cost, no dependencies, and is actively maintained. Install it alongside polib and configure your type checker to use it. If you don't use a type checker or don't use polib, it provides no value.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Only useful when used alongside polib itself and a type checker (mypy, pyright, or similar).
- Low friction: a pure-Python stub package with no runtime dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license; no restrictions on use, modification, or distribution in commercial or open-source projects.
last release 2026-05-18 (88 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 243,375 downloads/mo, #8,806 on PyPI
Alternatives
Verify before relying
pip install types-polib
# In your code, import polib normally; type checkers will use the stubs:
import polib
po = polib.pofile('translations.po')- Whether the stubs cover all public APIs of polib 1.2.x or only a subset.
- Whether this package is automatically installed as a dependency of polib or must be installed separately.
What it is and what it does
types-polib is a type stub package that bridges the gap between the polib library (used for reading and writing gettext PO translation files) and Python's static type checkers. When installed, it allows mypy, pyright, and other type checkers to understand the types and signatures of polib's public API, so you can catch type errors in your code before runtime.
This is a pure metadata package with no runtime dependencies—it only provides type information. It's part of the typeshed project, the community-maintained repository of type stubs for popular packages that don't ship their own. The stubs are kept in sync with polib 1.2.x and tested against current versions of mypy and pyright.
Use it for
- Enable type checking in projects that use polib to parse or generate gettext PO translation files.
- Catch type errors in translation workflow automation scripts before deployment.
- Improve IDE autocomplete and inline documentation when working with polib in type-aware editors.
- Enforce type safety in CI/CD pipelines that validate translation tooling code.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use polib and want static type checking.
It has no runtime cost, no dependencies, and is actively maintained. Install it alongside polib and configure your type checker to use it. If you don't use a type checker or don't use polib, it provides no value.
Install
types-polib on PyPI
Before you install
Low friction: a pure-Python stub package with no runtime dependencies. Actively maintained as part of typeshed; last commit 2026-08-14. Tested with mypy 2.1.0 and pyright 1.1.409.
Requires Python 3.10 or later. Only useful when used alongside polib itself and a type checker (mypy, pyright, or similar).
License in practice
Apache-2.0 permissive license; no restrictions on use, modification, or distribution in commercial or open-source projects.
Quickstart
pip install types-polib
# In your code, import polib normally; type checkers will use the stubs:
import polib
po = polib.pofile('translations.po')
Verify before relying
- Whether the stubs cover all public APIs of polib 1.2.x or only a subset.
- Whether this package is automatically installed as a dependency of polib or must be installed separately.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 88 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 243,375 / month, #8,806 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_polib-1.2.0.20260518-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 polib”
- types-polibProvides type stubs for the polib package, enabling static type…
- polibpolib reads, writes, and manipulates gettext translation files (PO,…
- 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 types-grpcio-health-checking · types-ldap3 · types-pexpect · types-protobuf · types-qrcode · types-vobject · polib · types-psutil · types-mock · types-cffi