Dark magics about variable names in python
Overall
score
90%
Debug printing with variable names
Uses debug function
0%
100%
Basic variable printing
0%
100%
Custom prefix parameter
0%
100%
Merge parameter usage
0%
100%
Expression debugging
0%
100%
Direct variable name access (nameof)
Import nameof
100%
100%
Basic nameof usage
48%
100%
Single argument handling
100%
100%
Dictionary construction
100%
100%
Prefix implementation
100%
100%
Full path extraction
0%
100%
Variable name retrieval (varname)
Import varname function
100%
100%
Use varname in __init__
100%
100%
Store captured name
100%
100%
Implement name property
100%
100%
Store configuration values
100%
100%
Registry uses captured names
100%
100%
Registry get method
100%
100%
Registry list method
100%
100%
Property decorator compatibility
@property decorator used
100%
100%
varname() in property
60%
100%
will() in property
0%
100%
Proper storage
100%
100%
Return self pattern
70%
100%
Test compatibility
100%
100%
Strict vs non-strict assignment modes
Import varname
100%
100%
Use varname() in track_direct_assignment
100%
100%
Handle multiple variables
100%
100%
Strict mode for direct
0%
100%
Use varname() in track_expression_assignment
0%
100%
Non-strict mode for expressions
0%
100%
Correct return types
100%
100%
Basic ignore system for modules and functions
Imports varname
100%
0%
Uses varname()
100%
0%
Module ignore parameter
48%
0%
Function ignore parameter
48%
0%
Combined ignore patterns
75%
0%
Async/await function support
varname() import
100%
100%
varname() in __init__
100%
100%
Async function implementation
100%
100%
Variable name storage
100%
100%
Registry integration
100%
100%
Identifier-based retrieval
100%
100%
List all results
100%
100%
Simple assignment handling
varname() function usage
100%
100%
Simple assignment handling
100%
100%
Attribute assignment support
100%
100%
Subscript assignment support
100%
100%
Name storage
100%
100%
Multi-level nested tuple unpacking
varname() usage
0%
100%
multi_vars parameter
0%
100%
Nested unpacking support
100%
100%
Variable mapping storage
100%
100%
Value wrapper with automatic name storage
Wrapper class usage
0%
100%
Variable name capture
80%
96%
Value storage
100%
100%
Name attribute access
100%
100%
String representation
100%
100%
Install with Tessl CLI
npx tessl i tessl/pypi-varname