pywire 0.1.1__py3-none-any.whl → 0.1.3__py3-none-any.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.
- pywire/__init__.py +2 -0
- pywire/cli/__init__.py +1 -0
- pywire/cli/generators.py +48 -0
- pywire/cli/main.py +309 -0
- pywire/cli/tui.py +563 -0
- pywire/cli/validate.py +26 -0
- pywire/client/.prettierignore +8 -0
- pywire/client/.prettierrc +7 -0
- pywire/client/build.mjs +73 -0
- pywire/client/eslint.config.js +46 -0
- pywire/client/package.json +39 -0
- pywire/client/pnpm-lock.yaml +2971 -0
- pywire/client/src/core/app.ts +263 -0
- pywire/client/src/core/dom-updater.test.ts +78 -0
- pywire/client/src/core/dom-updater.ts +321 -0
- pywire/client/src/core/index.ts +5 -0
- pywire/client/src/core/transport-manager.test.ts +179 -0
- pywire/client/src/core/transport-manager.ts +159 -0
- pywire/client/src/core/transports/base.ts +122 -0
- pywire/client/src/core/transports/http.ts +142 -0
- pywire/client/src/core/transports/index.ts +13 -0
- pywire/client/src/core/transports/websocket.ts +97 -0
- pywire/client/src/core/transports/webtransport.ts +149 -0
- pywire/client/src/dev/dev-app.ts +93 -0
- pywire/client/src/dev/error-trace.test.ts +97 -0
- pywire/client/src/dev/error-trace.ts +76 -0
- pywire/client/src/dev/index.ts +4 -0
- pywire/client/src/dev/status-overlay.ts +63 -0
- pywire/client/src/events/handler.test.ts +318 -0
- pywire/client/src/events/handler.ts +454 -0
- pywire/client/src/pywire.core.ts +22 -0
- pywire/client/src/pywire.dev.ts +27 -0
- pywire/client/tsconfig.json +17 -0
- pywire/client/vitest.config.ts +15 -0
- pywire/compiler/__init__.py +6 -0
- pywire/compiler/ast_nodes.py +304 -0
- pywire/compiler/attributes/__init__.py +6 -0
- pywire/compiler/attributes/base.py +24 -0
- pywire/compiler/attributes/conditional.py +37 -0
- pywire/compiler/attributes/events.py +55 -0
- pywire/compiler/attributes/form.py +37 -0
- pywire/compiler/attributes/loop.py +75 -0
- pywire/compiler/attributes/reactive.py +34 -0
- pywire/compiler/build.py +28 -0
- pywire/compiler/build_artifacts.py +342 -0
- pywire/compiler/codegen/__init__.py +5 -0
- pywire/compiler/codegen/attributes/__init__.py +6 -0
- pywire/compiler/codegen/attributes/base.py +19 -0
- pywire/compiler/codegen/attributes/events.py +35 -0
- pywire/compiler/codegen/directives/__init__.py +6 -0
- pywire/compiler/codegen/directives/base.py +16 -0
- pywire/compiler/codegen/directives/path.py +53 -0
- pywire/compiler/codegen/generator.py +2341 -0
- pywire/compiler/codegen/template.py +2178 -0
- pywire/compiler/directives/__init__.py +7 -0
- pywire/compiler/directives/base.py +20 -0
- pywire/compiler/directives/component.py +33 -0
- pywire/compiler/directives/context.py +93 -0
- pywire/compiler/directives/layout.py +49 -0
- pywire/compiler/directives/no_spa.py +24 -0
- pywire/compiler/directives/path.py +71 -0
- pywire/compiler/directives/props.py +88 -0
- pywire/compiler/exceptions.py +19 -0
- pywire/compiler/interpolation/__init__.py +6 -0
- pywire/compiler/interpolation/base.py +28 -0
- pywire/compiler/interpolation/jinja.py +272 -0
- pywire/compiler/parser.py +750 -0
- pywire/compiler/paths.py +29 -0
- pywire/compiler/preprocessor.py +43 -0
- pywire/core/wire.py +119 -0
- pywire/py.typed +0 -0
- pywire/runtime/__init__.py +7 -0
- pywire/runtime/aioquic_server.py +194 -0
- pywire/runtime/app.py +901 -0
- pywire/runtime/compile_error_page.py +195 -0
- pywire/runtime/debug.py +203 -0
- pywire/runtime/dev_server.py +433 -0
- pywire/runtime/dev_server.py.broken +268 -0
- pywire/runtime/error_page.py +64 -0
- pywire/runtime/error_renderer.py +23 -0
- pywire/runtime/escape.py +23 -0
- pywire/runtime/files.py +40 -0
- pywire/runtime/helpers.py +97 -0
- pywire/runtime/http_transport.py +253 -0
- pywire/runtime/loader.py +272 -0
- pywire/runtime/logging.py +72 -0
- pywire/runtime/page.py +384 -0
- pywire/runtime/pydantic_integration.py +52 -0
- pywire/runtime/router.py +229 -0
- pywire/runtime/server.py +25 -0
- pywire/runtime/style_collector.py +31 -0
- pywire/runtime/upload_manager.py +76 -0
- pywire/runtime/validation.py +449 -0
- pywire/runtime/websocket.py +665 -0
- pywire/runtime/webtransport_handler.py +195 -0
- pywire/static/pywire.core.min.js +3 -0
- pywire/static/pywire.dev.min.js +20 -0
- {pywire-0.1.1.dist-info → pywire-0.1.3.dist-info}/METADATA +1 -1
- pywire-0.1.3.dist-info/RECORD +106 -0
- pywire-0.1.1.dist-info/RECORD +0 -9
- {pywire-0.1.1.dist-info → pywire-0.1.3.dist-info}/WHEEL +0 -0
- {pywire-0.1.1.dist-info → pywire-0.1.3.dist-info}/entry_points.txt +0 -0
- {pywire-0.1.1.dist-info → pywire-0.1.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import js from '@eslint/js'
|
|
2
|
+
import tseslint from '@typescript-eslint/eslint-plugin'
|
|
3
|
+
import tsParser from '@typescript-eslint/parser'
|
|
4
|
+
import globals from 'globals'
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
// Ignore patterns
|
|
8
|
+
{
|
|
9
|
+
ignores: ['dist/**', 'node_modules/**', 'test_output.txt'],
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
// Base configuration
|
|
13
|
+
{
|
|
14
|
+
languageOptions: {
|
|
15
|
+
globals: {
|
|
16
|
+
...globals.browser,
|
|
17
|
+
...globals.node,
|
|
18
|
+
},
|
|
19
|
+
ecmaVersion: 'latest',
|
|
20
|
+
sourceType: 'module',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
// ESLint recommended rules
|
|
25
|
+
js.configs.recommended,
|
|
26
|
+
|
|
27
|
+
// TypeScript files
|
|
28
|
+
{
|
|
29
|
+
files: ['**/*.ts'],
|
|
30
|
+
plugins: {
|
|
31
|
+
'@typescript-eslint': tseslint,
|
|
32
|
+
},
|
|
33
|
+
languageOptions: {
|
|
34
|
+
parser: tsParser,
|
|
35
|
+
},
|
|
36
|
+
rules: {
|
|
37
|
+
...tseslint.configs.recommended.rules,
|
|
38
|
+
'no-undef': 'off',
|
|
39
|
+
'@typescript-eslint/no-unused-vars': [
|
|
40
|
+
'error',
|
|
41
|
+
{ argsIgnorePattern: '^_', destructuredArrayIgnorePattern: '^_' },
|
|
42
|
+
],
|
|
43
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
]
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pywire-client",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "PyWire client-side library with transport fallbacks",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"private": true,
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "node build.mjs",
|
|
9
|
+
"build:dev": "node build.mjs --dev",
|
|
10
|
+
"watch": "node build.mjs --watch",
|
|
11
|
+
"test": "vitest run",
|
|
12
|
+
"test:watch": "vitest",
|
|
13
|
+
"test:coverage": "vitest run --coverage",
|
|
14
|
+
"lint": "eslint .",
|
|
15
|
+
"lint:fix": "eslint . --fix",
|
|
16
|
+
"format": "prettier --write .",
|
|
17
|
+
"format:check": "prettier --check .",
|
|
18
|
+
"typecheck": "tsc --noEmit",
|
|
19
|
+
"check": "pnpm format:check && pnpm lint && pnpm typecheck && pnpm test"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@eslint/js": "^9.35.0",
|
|
23
|
+
"@types/morphdom": "^2.3.0",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
25
|
+
"@typescript-eslint/parser": "^8.43.0",
|
|
26
|
+
"@vitest/coverage-v8": "^4.0.17",
|
|
27
|
+
"esbuild": "^0.20.0",
|
|
28
|
+
"eslint": "^9.35.0",
|
|
29
|
+
"globals": "^16.4.0",
|
|
30
|
+
"happy-dom": "^20.3.6",
|
|
31
|
+
"prettier": "^3.6.2",
|
|
32
|
+
"typescript": "^5.3.0",
|
|
33
|
+
"vitest": "^4.0.17"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@msgpack/msgpack": "^3.1.3",
|
|
37
|
+
"morphdom": "^2.7.7"
|
|
38
|
+
}
|
|
39
|
+
}
|