{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/4"}],"enrichment":{"capability":"Acquisition implements a mechanism for Python objects to automatically obtain attributes from their containment hierarchy at runtime, enabling objects to inherit behavior from their containers without explicit inheritance.","skillfed_tags":["zope-ecosystem","object-hierarchy","context-acquisition"],"use_cases":["Building hierarchical object systems in web frameworks where child objects need access to parent context without explicit parameter passing.","Implementing dynamic role-based access control where permissions are inherited from container objects.","Creating nested component architectures where behavior adapts based on the object's position in the containment tree.","Zope application development where acquisition is a core pattern for managing object relationships and context.","Reducing boilerplate in deeply nested object structures by allowing implicit attribute resolution from ancestors."],"what_it_does":"Acquisition is a Python mechanism that allows objects to dynamically acquire attributes from their containment hierarchy at runtime. Rather than requiring explicit inheritance, an object wrapped in an acquisition context can transparently access attributes from its container or parent objects. This is particularly useful in frameworks like Zope where object hierarchies are deep and dynamic, and behavior should depend on context.\n\nThe package provides two acquisition styles: implicit (automatic attribute lookup up the containment chain) and explicit (manual lookup via the aq_acquire method). Objects inherit from Acquisition.Implicit or Acquisition.Explicit to enable this behavior. Acquisition wrappers expose the wrapped object and its context through attributes like aq_parent, aq_self, and aq_base. The mechanism relies on ExtensionClass to implement the low-level wrapping and attribute resolution logic.","worth_installing":"Yes, if you are building Zope applications or need a framework-level acquisition pattern for hierarchical object systems. The package is actively maintained, has no known vulnerabilities, and supports current Python versions. Install friction is moderate due to compiled dependencies, but wheels are widely available. Verify ZPL-2.1 license compatibility first. Not recommended for general-purpose Python projects; acquisition is a specialized pattern most valuable in web frameworks that depend on it."},"id":"acquisition","links":{"html":"https://skillfed.io/packages/acquisition","md":"https://skillfed.io/packages/acquisition.md","pypi":"https://pypi.org/project/acquisition/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-16","license_spdx":"ZPL-2.1","license_treatment":"unclear","name":"Acquisition","python_support":"supports_current","summary":"Acquisition is a mechanism that allows objects to obtain attributes from the containment hierarchy they're in."},"popularity":{"monthly_downloads":181799,"position":10114,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"6.2"}
