webcompy-cli 0.0.14__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.
- webcompy_cli/__init__.py +20 -0
- webcompy_cli/_argparser.py +232 -0
- webcompy_cli/_browser_probes.py +648 -0
- webcompy_cli/_browser_test_harness.py +554 -0
- webcompy_cli/_build.py +425 -0
- webcompy_cli/_console_types.py +15 -0
- webcompy_cli/_dependency_resolver.py +301 -0
- webcompy_cli/_dualrun_pytest_plugin.py +130 -0
- webcompy_cli/_exception.py +9 -0
- webcompy_cli/_generate.py +224 -0
- webcompy_cli/_init_project.py +54 -0
- webcompy_cli/_inspect.py +741 -0
- webcompy_cli/_inspect_pyexec.py +244 -0
- webcompy_cli/_lock.py +82 -0
- webcompy_cli/_lockfile.py +396 -0
- webcompy_cli/_lockfile_sync.py +343 -0
- webcompy_cli/_output.py +150 -0
- webcompy_cli/_prebuild.py +661 -0
- webcompy_cli/_pwa.py +474 -0
- webcompy_cli/_pyodide_downloader.py +113 -0
- webcompy_cli/_pyodide_lock.py +74 -0
- webcompy_cli/_runtime_downloader.py +222 -0
- webcompy_cli/_server.py +568 -0
- webcompy_cli/_static_files.py +27 -0
- webcompy_cli/_utils.py +72 -0
- webcompy_cli/_version_sweep.py +213 -0
- webcompy_cli/_wheel_builder.py +509 -0
- webcompy_cli/config/__init__.py +23 -0
- webcompy_cli/config/_build_config.py +168 -0
- webcompy_cli/config/_pwa_config.py +203 -0
- webcompy_cli/config/_server_config.py +53 -0
- webcompy_cli/py.typed +0 -0
- webcompy_cli/template_data/app/__init__.py +0 -0
- webcompy_cli/template_data/app/app.py +22 -0
- webcompy_cli/template_data/app/components/__init__.py +0 -0
- webcompy_cli/template_data/app/components/fizzbuzz.py +117 -0
- webcompy_cli/template_data/app/components/home.py +15 -0
- webcompy_cli/template_data/app/components/input.py +34 -0
- webcompy_cli/template_data/app/components/navigation.py +36 -0
- webcompy_cli/template_data/app/components/not_found.py +22 -0
- webcompy_cli/template_data/app/components/root.py +16 -0
- webcompy_cli/template_data/app/router.py +17 -0
- webcompy_cli/template_data/webcompy_config.py +12 -0
- webcompy_cli-0.0.14.dist-info/METADATA +53 -0
- webcompy_cli-0.0.14.dist-info/RECORD +47 -0
- webcompy_cli-0.0.14.dist-info/WHEEL +4 -0
- webcompy_cli-0.0.14.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Template root component."""
|
|
2
|
+
|
|
3
|
+
from webcompy.components import ComponentContext, define_component
|
|
4
|
+
from webcompy.elements import html
|
|
5
|
+
from webcompy.router import RouterView
|
|
6
|
+
|
|
7
|
+
from .navigation import SiteNavigation
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@define_component()
|
|
11
|
+
def AppRoot(_: ComponentContext[None]):
|
|
12
|
+
return html.DIV(
|
|
13
|
+
{},
|
|
14
|
+
SiteNavigation(None),
|
|
15
|
+
RouterView(),
|
|
16
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""Template router configuration."""
|
|
2
|
+
|
|
3
|
+
from webcompy.router import Router
|
|
4
|
+
|
|
5
|
+
from .components.fizzbuzz import FizzbuzzPage
|
|
6
|
+
from .components.home import HomePage
|
|
7
|
+
from .components.input import InOutSample
|
|
8
|
+
from .components.not_found import NotFound
|
|
9
|
+
|
|
10
|
+
router = Router(
|
|
11
|
+
{"path": "/", "component": HomePage},
|
|
12
|
+
{"path": "/fizzbuzz", "component": FizzbuzzPage},
|
|
13
|
+
{"path": "/input", "component": InOutSample},
|
|
14
|
+
default=NotFound,
|
|
15
|
+
mode="history",
|
|
16
|
+
base_url="",
|
|
17
|
+
)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Template build configuration."""
|
|
2
|
+
|
|
3
|
+
import app.app as app_module
|
|
4
|
+
|
|
5
|
+
from webcompy_cli.config import WebComPyBuildConfig, WebComPyServerConfig
|
|
6
|
+
|
|
7
|
+
config = WebComPyBuildConfig(
|
|
8
|
+
app_module,
|
|
9
|
+
dependencies=None,
|
|
10
|
+
dependencies_from=None,
|
|
11
|
+
server=WebComPyServerConfig(port=8080),
|
|
12
|
+
)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: webcompy-cli
|
|
3
|
+
Version: 0.0.14
|
|
4
|
+
Summary: WebComPy CLI tools (dev server, SSG, project init)
|
|
5
|
+
Project-URL: Homepage, https://github.com/kniwase/WebComPy
|
|
6
|
+
Project-URL: Documentation, https://webcompy.net/documents/
|
|
7
|
+
Project-URL: LLM Docs, https://webcompy.net/llms.txt
|
|
8
|
+
Author-email: Kento Niwase <kento.niwase@gmail.com>
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: browser,cli,framework,frontend
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Requires-Python: >=3.12
|
|
17
|
+
Requires-Dist: aiofiles
|
|
18
|
+
Requires-Dist: sse-starlette
|
|
19
|
+
Requires-Dist: starlette
|
|
20
|
+
Requires-Dist: uvicorn
|
|
21
|
+
Requires-Dist: webcompy-server==0.0.14
|
|
22
|
+
Requires-Dist: webcompy==0.0.14
|
|
23
|
+
Provides-Extra: inspect
|
|
24
|
+
Requires-Dist: playwright; extra == 'inspect'
|
|
25
|
+
Provides-Extra: lock
|
|
26
|
+
Requires-Dist: packaging; extra == 'lock'
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
# webcompy-cli
|
|
30
|
+
|
|
31
|
+
Command-line tooling, development/production ASGI server, build-once prebuild pipeline, static site generator, and browser inspection CLI for [WebComPy](https://github.com/kniwase/WebComPy).
|
|
32
|
+
|
|
33
|
+
Invoke via `python -m webcompy <command>`:
|
|
34
|
+
|
|
35
|
+
- `init` — Scaffold a new WebComPy project
|
|
36
|
+
- `lock` — Resolve and synchronize browser dependencies (`webcompy-lock.json`)
|
|
37
|
+
- `start` — Run the development (`--dev`), production, or prebuilt (`--prebuilt`) server
|
|
38
|
+
- `prebuild` — Materialize deployable bundles, wheels, and prerendered HTML once (`PrebuildManifest`)
|
|
39
|
+
- `generate` — Export a complete static site (SSG) with wheels, assets, and optional PWA service worker
|
|
40
|
+
- `inspect` — Headless Playwright inspection (`serve`, `screenshot`, `console`, `query`, `click`, `navigate`, `verify`, `pyexec`) — install with `webcompy-cli[inspect]`
|
|
41
|
+
|
|
42
|
+
This distribution is versioned in lockstep with `webcompy` and `webcompy-server`.
|
|
43
|
+
|
|
44
|
+
## Documentation & Resources
|
|
45
|
+
|
|
46
|
+
- [Documentation](https://webcompy.net/documents/)
|
|
47
|
+
- [CLI Reference](https://webcompy.net/documents/server/cli-reference/)
|
|
48
|
+
- [LLM Documentation Index (`llms.txt`)](https://webcompy.net/llms.txt) — bundles: [`llms-small.txt`](https://webcompy.net/llms-small.txt) / [`llms-full.txt`](https://webcompy.net/llms-full.txt)
|
|
49
|
+
- [Source Code & Discussions](https://github.com/kniwase/WebComPy)
|
|
50
|
+
|
|
51
|
+
## License
|
|
52
|
+
|
|
53
|
+
MIT License — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
webcompy_cli/__init__.py,sha256=gVjzGZlw4SUTW5amk9TLf2d4mdcCxFbWcGKYBjNYyCw,631
|
|
2
|
+
webcompy_cli/_argparser.py,sha256=GoYvS0tzjD3vPge8qc6mb9UU_BpTR1bW10z-RJDsGLY,8065
|
|
3
|
+
webcompy_cli/_browser_probes.py,sha256=Z6cAyM0BPUL6KuoMQlmeZrIIjWRruCb2l4c07Zn24sI,24931
|
|
4
|
+
webcompy_cli/_browser_test_harness.py,sha256=PjFKO4LiSe-fMUW7E0PR6hTkDVeQW4x_h9CNIaBuqUc,21148
|
|
5
|
+
webcompy_cli/_build.py,sha256=V4CcMN2Zp8v7aaNXSLSoE6hZObwsUPQFizFH4S4hrjQ,16864
|
|
6
|
+
webcompy_cli/_console_types.py,sha256=fp07HDfDB0ye635erWXQTW8WqyaRUgp4sgiIXKb9jQA,296
|
|
7
|
+
webcompy_cli/_dependency_resolver.py,sha256=pO7081TWAlzu03I2zBixFqERfnwlZsmM12snxqY5z3Y,11023
|
|
8
|
+
webcompy_cli/_dualrun_pytest_plugin.py,sha256=bCPRSouzPFBNpKFhj9qjgyJQdhz0zLLzdNayMmMNofw,4005
|
|
9
|
+
webcompy_cli/_exception.py,sha256=S_V22R9W7zT_4g6yRvbk5JSao6iRnf1TWU4KaEPxunc,187
|
|
10
|
+
webcompy_cli/_generate.py,sha256=mKf9-MW-wK9979aq0RtU-ytzB94SpA2MEQCPPCtmGqo,8471
|
|
11
|
+
webcompy_cli/_init_project.py,sha256=ImffUZo-H26VTK4ZIK8IAr5Gf5Nfo2hvcRiUe8EaF2w,1735
|
|
12
|
+
webcompy_cli/_inspect.py,sha256=lPd5G9hc6yKLlrWCMHG_wARrn9IeTB3nl0QlIBJNciA,25153
|
|
13
|
+
webcompy_cli/_inspect_pyexec.py,sha256=jh35hra-KThKf-OHWiKanm-fD6EyRy_3CkslUOpRFaw,8531
|
|
14
|
+
webcompy_cli/_lock.py,sha256=lKvS9qV50L4hM4HxCcjwAQBxlO-2n3rM6SCdC5cWYcQ,2912
|
|
15
|
+
webcompy_cli/_lockfile.py,sha256=ZCnK8MmP16zCF3hgXDjmCg7oRprfduQhsyzByq7W2H0,14868
|
|
16
|
+
webcompy_cli/_lockfile_sync.py,sha256=6DJW4GGH1iW3m0qO3u9rZG-WYM9hEt3RBVX4RaJZzv0,14474
|
|
17
|
+
webcompy_cli/_output.py,sha256=bq1N_mnsTTmfx9d-YhlvWKf1KOv_xBnGNyQ3T3JaP04,5399
|
|
18
|
+
webcompy_cli/_prebuild.py,sha256=b04TFVp3YfaXxtbKtxFBZtmcq8yWLqq_3BMOOomtrAo,27256
|
|
19
|
+
webcompy_cli/_pwa.py,sha256=XQpFtpz7QmFD1RDMNa_rTdSD5h6LLjT56Hw7vVQ-mPM,15747
|
|
20
|
+
webcompy_cli/_pyodide_downloader.py,sha256=VNVNkk-7i0Wd_GdeqPZJqw4Xi0GAEUDtezLadi1QJao,3584
|
|
21
|
+
webcompy_cli/_pyodide_lock.py,sha256=m5skGXry7E6WweYZsDg28iI77eWa8_Ja1OUSVHf9_aU,2640
|
|
22
|
+
webcompy_cli/_runtime_downloader.py,sha256=PYc3rGTilAJ6bPV1Z8v6lONvO6DxhxIaGAsMsLjB5tw,7867
|
|
23
|
+
webcompy_cli/_server.py,sha256=YyQwXEVV_pZzw4SjubGUi9p6KaCVNjYy2vsMwiXgf_s,23194
|
|
24
|
+
webcompy_cli/_static_files.py,sha256=F2OZTDGbY89SyQ-DuzhXTNHnw9PuZT291lbu5pCw9Ak,1035
|
|
25
|
+
webcompy_cli/_utils.py,sha256=bNxCgXl7NgNSZWXoogsMGQUUauIJiZUOdGMpavcjnl4,2353
|
|
26
|
+
webcompy_cli/_version_sweep.py,sha256=DDPwvNnFelT4GNSBoEgaAOCf9qgWnYBqOw_FTWWUfE4,8213
|
|
27
|
+
webcompy_cli/_wheel_builder.py,sha256=eakqcPnw8f_hMEHF73RIkllB07frzb4c_M0jpLKQDSw,19865
|
|
28
|
+
webcompy_cli/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
29
|
+
webcompy_cli/config/__init__.py,sha256=_fAGvWxp29LmdZcfz7nrIRCCXMeJzq7p0v4A6PnoD5c,614
|
|
30
|
+
webcompy_cli/config/_build_config.py,sha256=V4nNXljG_-T06GCaicObwmJ4avV6OmBxASXcwCWS_zE,7822
|
|
31
|
+
webcompy_cli/config/_pwa_config.py,sha256=HqGf177JrIifKKkn9-mZxJS4TyQIjmM1rhbn-axHgQI,8595
|
|
32
|
+
webcompy_cli/config/_server_config.py,sha256=grtYbPwNsPNozG4b_J7FnQ_RSDCd44OMmss4W15wLH0,1607
|
|
33
|
+
webcompy_cli/template_data/webcompy_config.py,sha256=O5MysmKECZEGQc9yrm6MxtMcc2sqTC45Iy7fU2Uyq_Y,285
|
|
34
|
+
webcompy_cli/template_data/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
+
webcompy_cli/template_data/app/app.py,sha256=NHMq_sAIij3QS5NMyMjFAEHJO9tYyYwYa8Iu-XTeuSY,446
|
|
36
|
+
webcompy_cli/template_data/app/router.py,sha256=pyYgLoeQg3puOjNyqviqGpkC2oaR6QVxRW6_IzVV-Nk,468
|
|
37
|
+
webcompy_cli/template_data/app/components/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
38
|
+
webcompy_cli/template_data/app/components/fizzbuzz.py,sha256=RXovBIkxoR3Ekp7pYEI42gx0iIZqyjaYXqza7Hw1bbI,2657
|
|
39
|
+
webcompy_cli/template_data/app/components/home.py,sha256=ccRZTsZEO8fBzzfptWEqxZv-AVDuI8kLj-tgRIGe17g,370
|
|
40
|
+
webcompy_cli/template_data/app/components/input.py,sha256=MFOcKVvdAhTwB2NVyoZiwSgFPEqSoYT4-eLcHGdQius,846
|
|
41
|
+
webcompy_cli/template_data/app/components/navigation.py,sha256=UJrHYOt-GxKIVSJ1lXFy0Zou18tVAHwkHV9EEapyar8,865
|
|
42
|
+
webcompy_cli/template_data/app/components/not_found.py,sha256=uGfLdS_wL_XsoiRfRJWprn0ideRUlsT-lz_n-nzFvVI,503
|
|
43
|
+
webcompy_cli/template_data/app/components/root.py,sha256=R6fyHuGAYNB6GVYyqAw_5UUe0EnKf0uaa2V19MZ-dk0,366
|
|
44
|
+
webcompy_cli-0.0.14.dist-info/METADATA,sha256=QNj-lqoBN4NtnfPUWwzhl5u6iM7b1tU6KHpM2u_RRjs,2404
|
|
45
|
+
webcompy_cli-0.0.14.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
46
|
+
webcompy_cli-0.0.14.dist-info/licenses/LICENSE,sha256=endi3iQMQFbLs2ZrHgpdhZB7G0qTxwHw_DcSn6PjQrM,1069
|
|
47
|
+
webcompy_cli-0.0.14.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 Kento NIWASE
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|