docstring-simulation

command
v0.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command docstring-simulation answers one question before anybody pays for it: would the prose a codebase already carries turn the questions this graph cannot reach into answers?

The measurement that motivated it found that fourteen of eighteen misses are not a ranking failure but an unreachable file -- asked with the search pointed straight at it, the file returns nothing, because no name, qualified name, kind or path of it carries a word of the question. Persisting docstrings would change that, and persisting them costs a canonical schema version, a snapshot format version, five loaders and a full rebuild for every installation.

So this harness builds the index that change would produce, outside the product and over the generation already published: the same fold, the same score, the same neighbour walk, the same view. One text source is added per symbol and nothing else moves. Two arms run over one corpus -- without prose and with it -- and the arm without prose is the control: if it does not reproduce what the live tool answers, the simulation is measuring itself.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL