pynext-framework 0.1.0__cp313-cp313-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pynext/__init__.py +24 -0
- pynext/_native.cp313-win_amd64.pyd +0 -0
- pynext/app.py +1240 -0
- pynext/assets.py +142 -0
- pynext/auth.py +36 -0
- pynext/browser/__init__.py +1 -0
- pynext/browser/runtime.js +588 -0
- pynext/build.py +296 -0
- pynext/cache.py +737 -0
- pynext/cli.py +315 -0
- pynext/client.py +202 -0
- pynext/client_dsl.py +630 -0
- pynext/components.py +269 -0
- pynext/forms.py +112 -0
- pynext/http.py +545 -0
- pynext/images.py +53 -0
- pynext/observability.py +576 -0
- pynext/pubsub.py +147 -0
- pynext/ratelimit.py +162 -0
- pynext/redis_cache.py +154 -0
- pynext/redis_rate.py +79 -0
- pynext/routing.py +34 -0
- pynext/scaffold.py +43 -0
- pynext/server.py +403 -0
- pynext/sessions.py +214 -0
- pynext/standalone.py +118 -0
- pynext/static.py +91 -0
- pynext/supervisor.py +291 -0
- pynext/watch.py +156 -0
- pynext_framework-0.1.0.dist-info/METADATA +472 -0
- pynext_framework-0.1.0.dist-info/RECORD +36 -0
- pynext_framework-0.1.0.dist-info/WHEEL +4 -0
- pynext_framework-0.1.0.dist-info/entry_points.txt +2 -0
- pynext_framework-0.1.0.dist-info/licenses/LICENSE +21 -0
- pynext_framework-0.1.0.dist-info/sboms/pynext-native.cyclonedx.json +3719 -0
- third_party/NEXTJS.md +69 -0
pynext/__init__.py
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""Public API for the experimental PyNext framework."""
|
|
2
|
+
|
|
3
|
+
from .app import App, create_app
|
|
4
|
+
from .auth import require_auth, require_permission
|
|
5
|
+
from .client_dsl import ClientDSLCompileError, compile_client_dsl
|
|
6
|
+
from .components import h, fragment, island, layout, model_prop, page
|
|
7
|
+
from .forms import UploadFile
|
|
8
|
+
from .http import (MAX_WS_MESSAGE, BadRequest, JSONResponse, Request, Response, SecurityConfig,
|
|
9
|
+
StreamingResponse, WebSocket, WebSocketDisconnect, csrf_protect, new_csrf_token,
|
|
10
|
+
new_csp_nonce, set_csrf_cookie, validate_csrf)
|
|
11
|
+
from .observability import MetricsCollector, ObservabilityConfig
|
|
12
|
+
from .pubsub import PubSubOverflow, WebSocketPubSub
|
|
13
|
+
from .ratelimit import RateLimiter
|
|
14
|
+
from .redis_rate import RedisRateLimiter
|
|
15
|
+
from .routing import route, websocket
|
|
16
|
+
from .sessions import Session, SessionMiddleware, SQLiteSessionStore
|
|
17
|
+
|
|
18
|
+
__all__ = ["App", "create_app", "h", "fragment", "island", "layout", "model_prop", "page", "route", "websocket",
|
|
19
|
+
"BadRequest", "Request", "Response", "JSONResponse", "StreamingResponse", "SecurityConfig",
|
|
20
|
+
"csrf_protect", "new_csrf_token", "new_csp_nonce", "set_csrf_cookie", "validate_csrf",
|
|
21
|
+
"ObservabilityConfig", "MetricsCollector", "WebSocket", "WebSocketDisconnect", "MAX_WS_MESSAGE",
|
|
22
|
+
"compile_client_dsl", "ClientDSLCompileError", "RateLimiter", "UploadFile",
|
|
23
|
+
"Session", "SessionMiddleware", "SQLiteSessionStore", "require_auth", "require_permission",
|
|
24
|
+
"RedisRateLimiter", "WebSocketPubSub", "PubSubOverflow"]
|
|
Binary file
|