types-gevent
Typing stubs for gevent
Decision gist · record as of 2026-08-14
Yes, if you use gevent and run static type checking. It's low-friction, actively maintained, permissively licensed, and tested against multiple type checkers. Install it in your development dependencies alongside gevent to catch type errors early. Not necessary if you don't use a type checker or don't use gevent.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Type stubs are only useful when used alongside a type checker like mypy, pyright, or similar.
- Low friction install with only two type-stub dependencies (types-greenlet, types-psutil).
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most projects without restriction.
last release 2026-08-11 (3 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 585,931 downloads/mo, #5,884 on PyPI
Alternatives
Verify before relying
pip install types-gevent
# In your Python code with a type checker (mypy, pyright, etc.):
import gevent
from gevent import Greenlet
def worker():
print('task')
g: Greenlet = gevent.spawn(worker)- Whether types-gevent stubs cover the full gevent API surface or only a subset
- Compatibility with gevent versions other than 26.8.*
What it is and what it does
types-gevent is a type stub package that bridges gevent and Python's static type-checking ecosystem. It provides type annotations for gevent's concurrency APIs—greenlets, pools, events, locks, and other primitives—so that tools like mypy, pyright, and other type checkers can validate code that uses gevent without runtime errors. The stubs are maintained as part of the typeshed project and are tested against multiple type checkers (mypy 2.3.0, pyright 1.1.411, and others) to ensure accuracy.
You install it alongside gevent in your development environment; it doesn't affect runtime behavior. It depends on two other type stub packages (types-greenlet and types-psutil) to provide complete type information for gevent's dependencies. The package tracks gevent 26.8.* versions and requires Python 3.10 or later.
Use it for
- Enable mypy or pyright to catch type errors in gevent-based concurrent code before runtime
- Document gevent API contracts in IDE autocompletion and hover tooltips
- Validate greenlet spawning and synchronization primitives in large async codebases
- Integrate gevent type checking into CI/CD pipelines without modifying gevent itself
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use gevent and run static type checking.
It's low-friction, actively maintained, permissively licensed, and tested against multiple type checkers. Install it in your development dependencies alongside gevent to catch type errors early. Not necessary if you don't use a type checker or don't use gevent.
Install
types-gevent on PyPI
Before you install
Low friction install with only two type-stub dependencies (types-greenlet, types-psutil). Actively maintained with a release just 3 days old, tracking gevent 26.8.* versions.
Requires Python 3.10 or later. Type stubs are only useful when used alongside a type checker like mypy, pyright, or similar.
License in practice
Apache-2.0 permissive license allows use in most projects without restriction.
Quickstart
pip install types-gevent
# In your Python code with a type checker (mypy, pyright, etc.):
import gevent
from gevent import Greenlet
def worker():
print('task')
g: Greenlet = gevent.spawn(worker)
Verify before relying
- Whether types-gevent stubs cover the full gevent API surface or only a subset
- Compatibility with gevent versions other than 26.8.*
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagestypes-greenlettypes-psutil |
| Maintenance | Actively maintained 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 585,931 / month, #5,884 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_gevent-26.8.0.20260811-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 › “gevent type stubs”
- types-geventProvides type stubs for the gevent library, enabling static type…
- watchdog-geventProvides a gevent-based file system event observer that integrates…
- gevent-websocketProvides WebSocket support for gevent-based WSGI servers, enabling…
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-dateparser · types-gunicorn · types-antlr4-python3-runtime · types-grpcio · types-shapely · types-geopandas · types-Authlib · pandas-stubs · types-pyflakes · types-Pygments