{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/12"}],"enrichment":{"capability":"A decorator that attaches metadata attributes to functions or classes without repeating boilerplate code.","skillfed_tags":["decorator","abandoned","django"],"use_cases":["Reduce repetition when setting Django admin metadata on calculated fields without separate assignment statements.","Attach custom attributes to functions or classes using decorator syntax instead of post-definition assignment.","Legacy Django projects that need minimal decorator support for metadata attachment."],"what_it_does":"attr is a lightweight decorator for attaching metadata to Python functions and classes without repeating configuration code. It was designed to reduce boilerplate when setting Django admin field attributes like short_description and admin_order_field, allowing you to declare them once as decorator arguments instead of assigning them after function definition.\n\nThe package has been abandoned since 2022-07-13 and is now overshadowed by a more popular package that uses the same import name, creating namespace conflicts. With no runtime dependencies and a permissive MIT license, it installs cleanly, but its lack of maintenance and the naming collision make it a poor choice for new projects.","worth_installing":"No. The package is abandoned (last release 2022-07-13, no commits since), and namespace shadowing issues are documented in its own description. For new projects, consider alternatives. For legacy code already using attr, migration is advisable to avoid import collision."},"id":"attr","links":{"html":"https://skillfed.io/packages/attr","md":"https://skillfed.io/packages/attr.md","pypi":"https://pypi.org/project/attr/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2022-07-13","license_spdx":null,"license_treatment":"permissive","name":"attr","python_support":"unspecified","summary":"Simple decorator to set attributes of target function or class in a DRY way."},"popularity":{"monthly_downloads":441722,"position":6642,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.2"}
