{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/5"}],"enrichment":{"capability":"Provides session management for aiohttp.web applications with dict-like access to user-specific data, supporting multiple storage backends including encrypted cookies, Redis, and Memcached.","skillfed_tags":["async-web","session-management","middleware"],"use_cases":["Store user login state and authentication tokens across requests in a web application.","Track user preferences or UI state without a database.","Maintain shopping cart or form data during multi-step workflows in async web apps.","Use Redis as a centralized session store for load-balanced aiohttp deployments.","Persist session data with automatic expiration and TTL management."],"what_it_does":"aiohttp_session is a middleware library that adds session support to aiohttp.web applications. It provides a dict-like interface for storing and retrieving user-specific data across HTTP requests, with the session identifier stored in an HTTP cookie named AIOHTTP_SESSION (customizable via the storage class).\n\nThe library offers three main storage backends: SimpleCookieStorage (plain JSON in cookie, for testing only), EncryptedCookieStorage (encrypted cookie storage), and RedisStorage (server-side storage in Redis with only the session key in the cookie). You register the session middleware with your aiohttp Application via the setup() function, then retrieve the session object in handlers using get_session(request). The session automatically handles expiration, TTL management, and cookie attributes.","worth_installing":"Yes. This is the standard session middleware for aiohttp.web with low install friction, active maintenance, no known vulnerabilities, and a permissive license. Install it if you are building an aiohttp web application that needs to track user state across requests. Choose your storage backend based on security and scalability needs."},"id":"aiohttp-session","links":{"html":"https://skillfed.io/packages/aiohttp-session","md":"https://skillfed.io/packages/aiohttp-session.md","pypi":"https://pypi.org/project/aiohttp-session/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2024-09-25","license_spdx":null,"license_treatment":"permissive","name":"aiohttp-session","python_support":"unspecified","summary":"sessions for aiohttp.web"},"popularity":{"monthly_downloads":223136,"position":9251,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.12.1"}
