types-greenlet
Typing stubs for greenlet
Decision gist · record as of 2026-08-14
Yes, if you use greenlet and run static type checkers. It has no runtime cost, low install friction, and is actively maintained. If you do not use greenlet or do not use type checkers, 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 provides type information; greenlet itself must be installed separately for runtime use.
- Low friction installation with no runtime dependencies.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in most projects without significant legal constraints.
last release 2026-05-18 (88 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 724,563 downloads/mo, #5,222 on PyPI
Alternatives
Verify before relying
pip install types-greenlet
# In your code, type checkers will now understand greenlet imports:
from greenlet import greenlet
def worker():
pass
g = greenlet(worker)- Whether types-greenlet is automatically discovered by type checkers or requires explicit configuration in pyproject.toml or mypy.ini.
- Coverage completeness: which greenlet APIs are fully annotated versus partially or not covered.
What it is and what it does
types-greenlet is a type stub package that supplies type annotations for the greenlet library, a Python package for lightweight concurrent programming using microthreads. It exists solely to help static type checkers (mypy, pyright, and others) understand greenlet's API surface and validate code that uses it. The stubs are maintained as part of the typeshed project and are kept in sync with greenlet 3.5.x releases.
When installed, this package enables your type checker to catch type errors in greenlet-based code without needing greenlet itself to ship its own inline type hints. It has no runtime dependencies and no runtime behavior—it is purely a development tool for improving code quality during static analysis.
Use it for
- Enable mypy or pyright to type-check code that imports and uses greenlet for concurrent tasks.
- Catch type errors in greenlet-based coroutine functions before runtime.
- Integrate greenlet into a typed codebase where all dependencies have type stubs available.
- Validate greenlet API usage in CI/CD pipelines running static type checkers.
- Support IDE autocomplete and hover documentation for greenlet APIs in editors that use type stubs.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use greenlet and run static type checkers.
It has no runtime cost, low install friction, and is actively maintained. If you do not use greenlet or do not use type checkers, it provides no value.
Install
types-greenlet on PyPI
Before you install
Low friction installation with no runtime dependencies. Actively maintained as part of the typeshed project, with recent releases and ongoing commits.
Requires Python 3.10 or later. Only provides type information; greenlet itself must be installed separately for runtime use.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most projects without significant legal constraints.
Quickstart
pip install types-greenlet
# In your code, type checkers will now understand greenlet imports:
from greenlet import greenlet
def worker():
pass
g = greenlet(worker)
Verify before relying
- Whether types-greenlet is automatically discovered by type checkers or requires explicit configuration in pyproject.toml or mypy.ini.
- Coverage completeness: which greenlet APIs are fully annotated versus partially or not covered.
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 | 724,563 / month, #5,222 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_greenlet-3.5.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 › “greenlet type stubs”
- types-greenletProvides type stubs for the greenlet package, enabling static type…
- types-geventProvides type stubs for the gevent library, enabling static type…
- greenletGreenlet provides lightweight coroutines for concurrent programming…
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-cffi · types-mock · types-assertpy · types-WTForms · greenlet · types-mypy-extensions · types-Markdown · types-pyflakes · types-toml · useful-types