{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/19"}],"enrichment":{"capability":"Creates mutable or immutable named tuple-like classes with support for per-field and global default values.","skillfed_tags":["legacy","data-structures"],"use_cases":["Maintaining code that already depends on namedlist for mutable named tuple behavior.","Creating lightweight mutable data structures with named fields and sensible defaults.","Defining immutable records with per-field defaults when per-field default support is needed.","Building tuple-like objects that support attribute access, iteration, and selective field updates."],"what_it_does":"namedlist provides two factory functions\u2014namedlist and namedtuple\u2014that generate named tuple-like classes with enhanced default-value handling. The key difference from collections.namedtuple is that namedlist instances are mutable (you can reassign fields after creation), while namedtuple instances remain immutable. Both support per-field defaults, a global default value applied to all fields without explicit defaults, and factory functions for mutable defaults like lists.\n\nThe package is no longer maintained and its own documentation warns users to prefer built-in dataclasses instead. It has no runtime dependencies and installs as a pure Python wheel. It was last released 2020-08-30 and has not been updated since, so it should be considered legacy code suitable only for maintaining existing projects.","worth_installing":"No, unless maintaining legacy code. The package is abandoned and explicitly recommends using built-in dataclasses instead. For new projects, dataclasses provide superior maintainability and ongoing language support. Install only to maintain or understand existing code that already depends on namedlist."},"id":"namedlist","links":{"html":"https://skillfed.io/packages/namedlist","md":"https://skillfed.io/packages/namedlist.md","pypi":"https://pypi.org/project/namedlist/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-08-30","license_spdx":null,"license_treatment":"permissive","name":"namedlist","python_support":"unspecified","summary":"Similar to namedtuple, but instances are mutable."},"popularity":{"monthly_downloads":120809,"position":12009,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.8"}
