{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/3"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"}],"enrichment":{"capability":"Provides Python decorators (@async_property and @async_cached_property) that let you define async functions as class properties, with optional caching and concurrent initialization via AwaitLoader.","skillfed_tags":["async-await","decorators","caching"],"use_cases":["Define a class property that fetches data from a remote API or database without explicit method calls.","Cache the result of an expensive async operation so it's computed once and reused across multiple accesses.","Initialize multiple async resources concurrently when instantiating a class by subclassing AwaitLoader.","Build async context objects where properties lazily load remote state on first access.","Simplify async initialization patterns in frameworks that expect property-like access patterns."],"what_it_does":"async_property is a lightweight decorator library that brings async/await semantics to Python class properties. It lets you define async functions as properties using @async_property (which returns an awaitable each time) or @async_cached_property (which caches the result after the first await). For classes with multiple cached async properties, you can subclass AwaitLoader to make instances awaitable, which will load all cached properties concurrently and optionally call an async load() hook first.\n\nThe package solves the problem of accessing remote data or expensive async operations through a clean property interface instead of explicit method calls. It uses asyncio.Lock internally to ensure cached functions are called only once even under concurrent access. With no runtime dependencies and support for Python 3.7 through 3.11, it integrates easily into existing async codebases.","worth_installing":"Yes. The package is lightweight, actively maintained, has no dependencies, and solves a real problem in async Python code. The MIT license is permissive. Use it when you need async properties in your class design and want to avoid explicit method calls or manual caching logic."},"id":"async-property","links":{"html":"https://skillfed.io/packages/async-property","md":"https://skillfed.io/packages/async-property.md","pypi":"https://pypi.org/project/async-property/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-07-03","license_spdx":null,"license_treatment":"permissive","name":"async-property","python_support":"unspecified","summary":"Python decorator for async properties."},"popularity":{"monthly_downloads":6032066,"position":1981,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.2.2"}
