-
Notifications
You must be signed in to change notification settings - Fork 1
Pydom v0.4 #74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Pydom v0.4 #74
Changes from all commits
1854808
a23586c
bf50c58
575c70f
eb91a25
aec9675
8c79bb1
f8e29f1
ca3dde9
81d4a1c
e1f97b9
b3d9a14
7477398
db7f729
d9ea3cf
d299787
2269283
7023203
af43715
61ae67b
4055902
67cc50f
26fbe48
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,7 @@ | ||
| { | ||
| "cSpell.words": [ | ||
| "Renderable" | ||
| ] | ||
| } | ||
| "cSpell.words": ["pydom", "Renderable"], | ||
| "python.analysis.diagnosticSeverityOverrides": { | ||
| "reportWildcardImportFromLibrary": "none" | ||
| }, | ||
| "python.analysis.extraPaths": ["../pydom"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -74,20 +74,20 @@ class Person(Component): | |
| ``` | ||
| To call a function on the server include this script in your file | ||
| ```html | ||
| <script src="https://cdn.jsdelivr.net/npm/@python-seamless/[email protected]/umd/seamless.init.js"></script> | ||
| <script src="https://cdn.jsdelivr.net/npm/python-seamless/umd/seamless.init.js"></script> | ||
| ``` | ||
| Import the middleware and mount it to your app | ||
| ```python | ||
| from fastapi import FastAPI | ||
| from seamless.middlewares import ASGIMiddleware as SeamlessMiddleware | ||
| from seamless.middlewares import SocketIOMiddleware | ||
|
|
||
| app = FastAPI() | ||
| app.add_middleware(SeamlessMiddleware) | ||
| app.add_middleware(SocketIOMiddleware) | ||
| ``` | ||
| You can pass the following config to the middleware to change the socket path of all seamless endpoints. | ||
| ```python | ||
| app.add_middleware( | ||
| SeamlessMiddleware, | ||
| SocketIOMiddleware, | ||
| socket_path="/my/custom/path" | ||
| ) | ||
| ``` | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .lh/ | ||
| build/* | ||
| .venv/ | ||
| seamless/ |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Minimal makefile for Sphinx documentation | ||
| # | ||
|
|
||
| # You can set these variables from the command line, and also | ||
| # from the environment for the first two. | ||
| SPHINXOPTS ?= | ||
| SPHINXBUILD ?= sphinx-build | ||
| SOURCEDIR = source | ||
| BUILDDIR = build | ||
|
|
||
| # Put it first so that "make" without argument is like "make help". | ||
| help: | ||
| @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) | ||
|
|
||
| .PHONY: help Makefile | ||
|
|
||
| # Catch-all target: route all unknown targets to Sphinx using the new | ||
| # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). | ||
| %: Makefile | ||
| @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The branch name 'release/$VERSION' may be problematic if VERSION contains characters not allowed in git branch names. Consider sanitizing or validating the VERSION variable before using it.