{"categories":[{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content/3"}],"enrichment":{"capability":"Datastar-py provides a Python SDK for building server-sent event (SSE) responses that allow backends to push real-time updates to browsers, with built-in helpers for multiple web frameworks.","skillfed_tags":["real-time-web","server-sent-events","web-framework-integration"],"use_cases":["Real-time dashboard updates: push live metrics or status changes to a browser without polling.","Live form validation: send validation feedback to the browser as the user types, using signals to track state.","Streaming data visualization: continuously update charts or tables with new data from a long-lived SSE connection.","Collaborative editing: broadcast changes made by one user to all connected clients in real time.","Progress tracking: stream progress updates from a long-running backend task to show live status."],"what_it_does":"Datastar-py is a Python SDK that enables real-time, bidirectional communication between backend applications and browsers via server-sent events. Instead of the traditional request-response cycle, a single HTTP request can trigger a stream of events from the backend to the browser, allowing the server to push updates at any time. The package provides low-level event generation primitives (patch_elements, patch_signals) that work with any framework, plus framework-specific decorators and response classes for Django, FastAPI, FastHTML, Litestar, Quart, Sanic, and Starlette.\n\nThe SDK handles three main concerns: generating SSE-formatted events, wrapping those events in framework-appropriate response objects, and reading signal state (frontend data) sent with each request. It also includes an attribute generator for building data-* HTML attributes with IDE completion and type checking. The package has no external runtime dependencies and supports Python 3.10 through 3.14.","worth_installing":"Yes. Datastar-py is actively maintained, has no external dependencies, and provides a clean abstraction for SSE-based real-time communication across multiple popular frameworks. It's suitable for production use if you're building applications that need server-to-browser push updates. The MIT license imposes no restrictions."},"id":"datastar-py","links":{"html":"https://skillfed.io/packages/datastar-py","md":"https://skillfed.io/packages/datastar-py.md","pypi":"https://pypi.org/project/datastar-py/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-02","license_spdx":"MIT","license_treatment":"permissive","name":"datastar-py","python_support":"supports_current","summary":"Helper functions and classes for the Datastar library (https://data-star.dev/)"},"popularity":{"monthly_downloads":170208,"position":10402,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.2"}
