{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/8"}],"enrichment":{"capability":"Provides a base Visitor class to implement the visitor design pattern in Python, dispatching method calls based on node type through dynamic method lookup.","skillfed_tags":["design-pattern","abandoned"],"use_cases":["Implement custom JSON encoders or formatters that traverse nested data structures by type","Build AST walkers or code analysis tools that need type-based dispatch on syntax nodes","Create domain-specific language interpreters that process typed expression trees","Write tree traversal algorithms where behavior depends on the node type encountered"],"what_it_does":"visitor is a minimal library implementing the visitor design pattern for Python. It provides a base Visitor class that uses dynamic method dispatch to route calls to type-specific visit methods\u2014for example, visit_str for strings, visit_int for integers. You subclass Visitor and define visit_* methods for each type you want to handle; calling visitor.visit(node) automatically dispatches to the appropriate handler based on the node's type.\n\nThe library is intentionally tiny and the author explicitly suggests copy-pasting the source into your project rather than adding a dependency. It has no runtime dependencies and supports both Python 2 and 3, but has been abandoned since 2016 with no maintenance or updates.","worth_installing":"No. The package is abandoned and unmaintained since 2016-05-18. The author's own documentation suggests copy-pasting the source instead of taking a dependency. High install friction combined with zero maintenance signal and no security updates makes this a poor choice\u2014either inline the pattern or use a maintained alternative."},"id":"visitor","links":{"html":"https://skillfed.io/packages/visitor","md":"https://skillfed.io/packages/visitor.md","pypi":"https://pypi.org/project/visitor/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2016-05-18","license_spdx":null,"license_treatment":"permissive","name":"visitor","python_support":"unspecified","summary":"A tiny pythonic visitor implementation."},"popularity":{"monthly_downloads":444237,"position":6623,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.3"}
