Andros Fenollosa on Nostr: I've been testing using #FastAPI to build sites with an HTML over WebSockets ...
I've been testing using #FastAPI to build sites with an HTML over WebSockets approach.
Good things:
- Easy to deploy WebSockets server.
- No borders for calling external functions.
Cons:
- It is not possible to create contexts or rooms.
- I have not found a way to launch broadcasting (I suspect it is not documented).
- You need an external library for topics such as validating forms or having a template engine.
In conclusion, I find #Django with Channels more complete and versatile.
#python
Published at
2024-06-09 20:42:28Event JSON
{
"id": "0549f768adbdc3a492be6d827668634bd3a7623d73cb0f563b76106127c18694",
"pubkey": "51088da72719a92b8df97dc3f458dc3ab83e51d12242b835bdde710f08d76b59",
"created_at": 1717965748,
"kind": 1,
"tags": [
[
"t",
"fastapi"
],
[
"t",
"django"
],
[
"t",
"python"
],
[
"proxy",
"https://hostux.social/users/andros/statuses/112588603313278822",
"activitypub"
]
],
"content": "I've been testing using #FastAPI to build sites with an HTML over WebSockets approach.\nGood things:\n- Easy to deploy WebSockets server.\n- No borders for calling external functions.\nCons:\n- It is not possible to create contexts or rooms.\n- I have not found a way to launch broadcasting (I suspect it is not documented).\n- You need an external library for topics such as validating forms or having a template engine.\nIn conclusion, I find #Django with Channels more complete and versatile.\n#python",
"sig": "9eab9f4d996b5d331a5c44ad051cb59fc677b5989212738e29856b9e7d53ae46158efd09040ad3e52273f402d2b0a90940d91957e734aa5482a38e986bbce284"
}