{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/13"}],"enrichment":{"capability":"Retrieves the name of a variable or attribute as a string at runtime through AST inspection, mimicking C# nameof functionality.","skillfed_tags":["ast-introspection","abandoned"],"use_cases":["Debugging and logging where you need to print variable names alongside their values","Generating field names dynamically in data validation or ORM frameworks","Building introspection tools that require mapping runtime objects back to their source variable names"],"what_it_does":"nameof is a utility that extracts the string name of a variable or object attribute at runtime by inspecting the abstract syntax tree (AST). It attempts to replicate C#'s nameof operator, allowing code like `nameof(foo)` to return the string `\"foo\"`. The package has no runtime dependencies and consists of minimal code that can be copied directly into a project if needed.\n\nHowever, the author explicitly states this was a toy project and recommends using an alternative instead. The package is abandoned, with its repository archived and no releases since 2020-02-01. It relies on fragile AST manipulation that breaks in the presence of other AST-modifying tools like pytest, and the author cautions that code depending on it should be thoroughly tested. It is not suitable for production use.","worth_installing":"No. The author explicitly recommends against this package in the description. The project is abandoned, last released 2020-02-01, and relies on fragile AST inspection that breaks with common tools. High install friction and lack of maintenance make it unsuitable for any new project."},"id":"nameof","links":{"html":"https://skillfed.io/packages/nameof","md":"https://skillfed.io/packages/nameof.md","pypi":"https://pypi.org/project/nameof/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-02-01","license_spdx":null,"license_treatment":"permissive","name":"nameof","python_support":"unspecified","summary":"Get the name of a variable or attribute, as in C#"},"popularity":{"monthly_downloads":208877,"position":9523,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.0.1"}
