Registry / testing / uncalled

uncalled

JSON →
library0.1.8pypypi✓ verified 24d ago

Uncalled is a Python library and command-line tool (version 0.1.8, released July 11, 2024) designed to identify unused functions within Python projects. It employs either regular expressions for speed (default) or Abstract Syntax Tree (AST) traversal for greater accuracy, also offering a combined mode to reduce false positives. Releases appear to be infrequent and as-needed.

pip install uncalled
INSTALL
IMPORT
SIG · UNCALLED
U
uncalled
testingpythonv0.1.8
Install
1.7s avg
Import
Disk
16MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.1.8 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 17.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.7s · import 0.000s · 18MB
16MB installed
● package 16MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

uncalled
uncalled path/to/your/project
Uncalled is primarily a command-line tool and is not typically imported as a Python library for programmatic use. Its functionality is accessed by executing the `uncalled` command in the shell.

Scan the current directory for unused functions. For more options, use `uncalled --help`.

uncalled .
uncalled --version
Debug
Known issues
gotchaPotential for False Positives due to Python's Dynamic Nature.
fix
Static analysis tools like Uncalled can report functions as unused even if they are called dynamically (e.g., via `getattr()`, decorators, or framework magic). Users should manually review reports and consider using the `--combined` mode for better accuracy, which leverages both regex and AST analysis.
affects: All versions
gotchaPrimarily a Command-Line Tool, Not Designed for Library Import.
fix
Uncalled is intended to be executed from the command line on a specified project path (`$ uncalled path/to/project`). It does not expose a public API for direct programmatic import and use within other Python scripts. Attempts to import it for direct function calls may not yield expected results or are not officially supported.
affects: All versions
gotchaInfrequent Release Cadence.
fix
The project has an infrequent and as-needed release schedule. Users should not expect frequent updates, new features, or rapid bug fixes. While the tool remains functional for its core purpose, those requiring cutting-edge features or quick resolution of minor issues might find its development pace slower than other active projects.
affects: All versions
Upgrade
Version history
0.1.8latest on PyPI · released Jul 11, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Resources
uncalled — pip install uncalled · libregistry