{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/7"}],"enrichment":{"capability":"Backports the `weakref.finalize` class from Python 3.4+ to earlier Python versions, allowing you to register cleanup callbacks for objects when they are garbage collected.","skillfed_tags":["legacy-python","backport"],"use_cases":["Register cleanup code for Python 2.7 projects that need to run finalizers when objects are garbage collected.","Support legacy Python 3.4\u20133.6 codebases that use `weakref.finalize` but cannot yet upgrade to a newer Python version.","Provide a uniform API across old and new Python versions when backporting code from Python 3.4+."],"what_it_does":"This package provides a backport of `weakref.finalize`, a feature added to Python's standard `weakref` module in Python 3.4. The `finalize` class lets you register a callback function to be called when an object is garbage collected, enabling deterministic cleanup of resources tied to that object's lifetime.\n\nIt is intended only for projects that must support Python 2.7 or early Python 3.x versions (3.4\u20133.6) and cannot upgrade. On Python 3.4 and later, the standard library's `weakref.finalize` should be used directly. The package has no runtime dependencies and installs cleanly, but has been unmaintained since 2017.","worth_installing":"Only if you are maintaining code on Python 2.7, 3.4, 3.5, or 3.6 and need `weakref.finalize`. The package is abandoned and unmaintained since 2017, so it should not be used in new projects. On Python 3.4+, use the standard library's `weakref.finalize` directly. No known security vulnerabilities."},"id":"backports-weakref","links":{"html":"https://skillfed.io/packages/backports-weakref","md":"https://skillfed.io/packages/backports-weakref.md","pypi":"https://pypi.org/project/backports-weakref/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2017-09-17","license_spdx":null,"license_treatment":"permissive","name":"backports.weakref","python_support":"unspecified","summary":"Backport of new features in Python's weakref module"},"popularity":{"monthly_downloads":1240909,"position":4172,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.0.post1"}
