Expand description
Python (libcst-based) frontend for FxRank’s effect-cost profiler.
Modules§
- coverage
- Signature annotation-slot coverage +
Any/decorator analysis — the Python analog offxrank-lang-ts’scoverage.rs. The project thesis (“types lower the score”) made operational for gradual-typed Python: we measure how much of a function’s signature is explicitly annotated (its boundary), so the boundary-containment discount inanalyze_unitcan shift contained effects down when the boundary is honest, and void the discount whenAnypoisons it. - detect
- Per-function effect/risk detection and
Hotspotassembly. - functions
- Collect every function-unit (
def/async def, method, nesteddef,lambda) from a parsed PythonModule. - imports
- Import-resolution table:
import,from … import, and… as …forms. - module_
map - Python module map: dotted module keys via
__init__.pypackage roots, and absolute/relative import resolution against the in-batch set, by path convention (spec 025-3e §5.3). No disk, no sys.path, no libcst. - source
Structs§
- Python
Frontend - The Python language frontend.
Constants§
- CORPUS_
PROFILE - Python corpus hygiene.
Functions§
- is_
test_ file - Return
trueifpathidentifies a test file by Python convention.