skillfed

types-objgraph

Typing stubs for objgraph

types-objgraph v3.6.0.20260508 124.4K downloads/30d#11,871 on PyPI37
Permissive license Apache-2.0 Active released

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-objgraph

uv

uv add types-objgraph

poetry

poetry add types-objgraph

Installing 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

Programming Language :: Python :: 3Typing :: Stubs Only

Tags

type stubs objgraphobjgraph type hintstyping stubs memory debuggingmypy objgraph annotationspyright object graph types
type-stubsstatic-analysis

More Software Development packages