uncalled
Find unused functions in Python projects
What it is and what it does
uncalled is a command-line tool that scans Python projects to identify functions that are never called. It offers two detection strategies: a fast regex-based approach (the default) and an AST-based traversal method. A combined 'both' mode runs both strategies together to minimize false positives. The tool is designed as a lightweight, low-friction alternative for developers who want to clean up unused code without heavy configuration.
You run it as a simple CLI command pointing to your project directory. With no runtime dependencies and low install friction, it integrates easily into development workflows or CI pipelines. The regex approach prioritizes speed while the AST approach offers deeper semantic understanding; combining them helps catch real unused functions while filtering out spurious matches.
Use it for:
- Identify dead code in legacy Python projects before refactoring or cleanup.
- Run as a pre-commit or CI check to prevent unused functions from accumulating in codebases.
- Audit a codebase for code quality and maintainability improvements.
- Compare detection strategies (regex vs. AST) on your own project to understand trade-offs.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Detects unused functions in Python projects using regular expressions or AST traversal, with a combined mode to reduce false positives.
Yes, if you need a lightweight, zero-dependency tool to find unused functions. The permissive MIT license and low install friction make it a low-risk addition to a development workflow. Maintenance is dormant but the last release is recent enough (2024-07-11) and no vulnerabilities are known. Best suited for developers who want a simple, fast alternative to heavier static analysis frameworks.
Install
uncalled on PyPI
pip
pip install uncalleduv
uv add uncalledpoetry
poetry add uncalledInstalling uncalled
Before you install
Low install friction with no runtime dependencies. Maintenance is dormant—last release was 2024-07-11 and last commit 2024-09-03, so the package is not actively developed but remains available and functional.
License in practice
MIT license (permissive) allows free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.
Quickstart
pip install uncalled
uncalled path/to/project
Requires Python 3.10 or later.
Verify before relying
- Whether regex mode is the default and how it compares to AST mode in speed and accuracy for typical projects.
- Whether the 'both' combined mode is recommended as a general-purpose setting or only for specific scenarios.
- How false-positive rates compare to vulture or other similar dead-code detection tools.
Package facts
| License | Copyright 2023 Elazar Gershuni elazarg@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 764 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 587,361/month — #5,875 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: uncalled-0.1.8-py3-none-any.whl
Tags
More Quality Assurance packages
Coverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
ruffRuff is a Python linter and code formatter…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
blackBlack reformats Python source code to a…
permissive · top 1,000 on PyPI
pytest-xdistpytest-xdist distributes pytest tests across…
permissive · top 1,000 on PyPI
cfn-lintValidates AWS CloudFormation templates in YAML…
permissive · top 1,000 on PyPI
cppcleancppclean analyzes C++ source code to identify…
permissive · top 15,000 on PyPI
deadcodeScans Python codebases to find and optionally…
agpl · top 15,000 on PyPI
vultureVulture is a static code analyzer that finds…
permissive · top 5,000 on PyPI
mr-propermr. Proper is a static code analyzer that…
permissive · top 15,000 on PyPI
eradicateEradicate detects and removes commented-out…
permissive · top 5,000 on PyPI
portpickerFinds and returns an unused network port on the…
permissive · top 5,000 on PyPI
flake8-eradicateA flake8 plugin that detects commented-out code…
permissive · top 15,000 on PyPI
pytest-unused-fixturesA pytest plugin that identifies and reports…
permissive · top 15,000 on PyPI
flake8-unused-argumentsA flake8 plugin that detects unused function…
permissive · top 15,000 on PyPI
pyclnPycln finds and removes unused import…
permissive · top 15,000 on PyPI