types-objgraph
Typing stubs for objgraph
What it is and what it does
types-objgraph is a type stub package that bridges objgraph and Python's static type checking ecosystem. It provides type annotations for the objgraph library, which is used for visualizing and analyzing object graphs in memory—useful for debugging memory leaks and understanding object relationships in Python programs.
When installed alongside objgraph, this package allows type checkers like mypy and pyright to understand objgraph's API and catch type errors in code that calls objgraph functions. It has no runtime dependencies and is maintained as part of the typeshed project, ensuring compatibility with current type checker versions.
Use it for:
- Enable mypy or pyright to type-check code that imports and uses objgraph for memory profiling
- Catch type errors when calling objgraph functions like show_most_common_types() or show_refs()
- Integrate objgraph into a typed codebase without type checker warnings about missing annotations
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides type annotations for the objgraph package, enabling type checkers like mypy and pyright to validate code that uses objgraph for object graph analysis and memory debugging.
Yes, if you use objgraph in a type-checked project. Install it alongside objgraph to enable static type checking. No runtime impact, low friction, and actively maintained. Skip it if you don't use objgraph or don't use a type checker.
Install
types-objgraph on PyPI
pip
pip install types-objgraphuv
uv add types-objgraphpoetry
poetry add types-objgraphInstalling types-objgraph
Before you install
Low friction installation with no runtime dependencies. Actively maintained as part of the typeshed project, with recent updates and tested against current type checker versions (mypy 1.20.0, pyright 1.1.408).
License in practice
Apache-2.0 permissive license allows free use, modification, and distribution with minimal restrictions, making it suitable for any project.
Quickstart
pip install types-objgraph
# In your code using objgraph:
import objgraph
objgraph.show_most_common_types()
Requires Python 3.10 or later. The actual objgraph package must be installed separately for runtime use.
Verify before relying
- Whether this stub package is automatically discovered by type checkers or requires explicit configuration
- Coverage completeness of objgraph 3.6.* API surface in the stubs
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 — 98 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 124,372/month — #11,871 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: types_objgraph-3.6.0.20260508-py3-none-any.whl
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
objgraphObjgraph lets you visualize and explore Python…
permissive · top 5,000 on PyPI
types-pyperclipProvides type annotations for the pyperclip…
permissive · top 15,000 on PyPI
types-olefileProvides type annotations for the olefile…
permissive · top 15,000 on PyPI
types-simplejsonProvides type annotations for the simplejson…
permissive · top 5,000 on PyPI
types-MarkdownProvides type stubs for the Markdown package,…
permissive · top 5,000 on PyPI
types-jmespathProvides type annotations for the jmespath…
permissive · top 5,000 on PyPI
types-oauthlibProvides type stubs for the oauthlib package,…
permissive · top 5,000 on PyPI
types-tabulateProvides type hints for the tabulate package,…
permissive · top 5,000 on PyPI
types-regexProvides type annotations for the regex…
permissive · top 5,000 on PyPI
types-polibProvides type stubs for the polib package,…
permissive · top 15,000 on PyPI