Commit Graph

4 Commits

Author SHA1 Message Date
Chase Sterling 3a166394ad Remove mixin from response classes that added SSE-generator functions 2025-03-31 14:39:37 -04:00
Chase Sterling e422bbdecc
Split various python SDK frameworks to different modules (#770)
* Allow passing arguments to the generator function in fastapi sdk

* Allow passing extra headers in FastAPI streaming response

* Keep method signature of upstream FastAPI streaming response

* Split out python sdk frameworks into their own modules
Make all python sdk frameworks mirror the native way of streaming responses

* Rename the sanic helper in python sdk to match sanic convention.
Add some type hinting to sanic helper

* ruff format new python sdk files
2025-03-29 08:05:42 -06:00
Lucian d60f326230
Fix fasthtml simple example (#736) (#737)
* fix(python sdk): fasthtml simple example import from responses

* fasthtml examples: URLs use latest datastar version

Replace versioned CDN URLs with unversioned ones in FastHTML examples to
automatically use the latest Datastar bundle.

* fix(python examples): fasthtml use repo datastar bundles

---------

Co-authored-by: Lucian Knock <git@lucianknock.com>
2025-03-05 09:17:24 -06:00
Lucian b85a6b1241
feat(SDK): FastHTML SSE response and example (#576) (#624)
* feat(SDK): FastHTML SSE response and example (#576)

* feat(sdk): add simple fasthtml example

* remove comments

---------

Co-authored-by: Lucian Knock <git@lucianknock.com>
2025-02-19 10:40:30 -06:00