{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/21"}],"enrichment":{"capability":"recordtype creates mutable record classes with optional per-field and global default values, similar to namedtuple but with write support and configurable defaults.","skillfed_tags":["legacy","data-structure"],"use_cases":["Migrating from namedtuple to a mutable variant when you need to modify field values after instantiation.","Creating lightweight data containers with sensible field defaults to reduce boilerplate initialization code.","Supporting Python 2.6+ codebases that predate dataclasses and need a simple mutable record type.","Building configuration or state objects where fields have meaningful defaults and occasional mutation is expected."],"what_it_does":"recordtype is a factory function that generates mutable record classes\u2014similar to collections.namedtuple but with write support and flexible default-value handling. Unlike namedtuple, instances are fully mutable, and you can specify per-field defaults, a global default for all unspecified fields, or both. It depends only on six and generates pure Python classes with introspection members like _fields, _asdict(), and _source.\n\nThe package is production-stable but abandoned; its author explicitly recommends that Python 3.7+ users use dataclasses instead, and points to namedlist and attrs as better-maintained alternatives. It remains useful for legacy codebases or Python 2 compatibility, but new projects should consider those alternatives.","worth_installing":"No, unless you are maintaining legacy Python 2 code or a codebase already using recordtype. For new projects on Python 3.7+, use dataclasses; for more advanced use cases, use attrs or namedlist. The package is abandoned and its author recommends against it."},"id":"recordtype","links":{"html":"https://skillfed.io/packages/recordtype","md":"https://skillfed.io/packages/recordtype.md","pypi":"https://pypi.org/project/recordtype/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-09-22","license_spdx":null,"license_treatment":"permissive","name":"recordtype","python_support":"unspecified","summary":"Similar to namedtuple, but instances are mutable."},"popularity":{"monthly_downloads":93010,"position":13407,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.4"}
