pywire 0.1.0__py3-none-any.whl → 0.1.2__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/runtime/app.py CHANGED
@@ -122,12 +122,24 @@ class PyWire:
122
122
  # Upload endpoint
123
123
  Route("/_pywire/upload", self._handle_upload, methods=["POST"]),
124
124
  # Internal Static files
125
- Mount(
126
- "/_pywire/static",
127
- app=StaticFiles(directory=str(internal_static_dir)),
128
- name="internal_static",
125
+ *(
126
+ [
127
+ Mount(
128
+ "/_pywire/static",
129
+ app=StaticFiles(directory=str(internal_static_dir)),
130
+ name="internal_static",
131
+ )
132
+ ]
133
+ if internal_static_dir.exists()
134
+ else []
129
135
  ),
130
136
  ]
137
+ if not internal_static_dir.exists():
138
+ logger.warning(
139
+ "Internal static assets not found at '%s'. "
140
+ "Reinstall pywire or verify package data inclusion.",
141
+ internal_static_dir,
142
+ )
131
143
 
132
144
  # Mount User Static Files if configured
133
145
  if self.static_dir:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pywire
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: HTML-over-the-wire Python web framework
5
5
  Author-email: Reece Holmdahl <reece@pywire.dev>
6
6
  License-File: LICENSE
@@ -35,6 +35,28 @@ Description-Content-Type: text/markdown
35
35
 
36
36
  The core framework for pywire.
37
37
 
38
+ <!-- INSTALL_MESSAGE_TEMPLATE_START -->
39
+ ## 🚀 Quick Start
40
+
41
+ If you already have [uv](https://docs.astral.sh/uv/) installed, you can get started instantly:
42
+
43
+ ```bash
44
+ uvx create-pywire-app
45
+ ```
46
+
47
+ If you don't have `uv` installed or aren't sure, use our installer script which handles the setup for you:
48
+
49
+ ### macOS / Linux
50
+ ```bash
51
+ curl -fsSL pywire.dev/install | sh
52
+ ```
53
+
54
+ ### Windows (PowerShell)
55
+ ```powershell
56
+ irm pywire.dev/install.ps1 | iex
57
+ ```
58
+ <!-- INSTALL_MESSAGE_TEMPLATE_END -->
59
+
38
60
  <!-- SUPPORT_MESSAGE_TEMPLATE_START -->
39
61
  ## ❤️ Support pywire
40
62
 
@@ -71,7 +71,7 @@ pywire/compiler/interpolation/jinja.py,sha256=HJEkRE0aB-YEiw7sZ6agS_zRUQlo19uj0b
71
71
  pywire/core/wire.py,sha256=ZgjoALx_B8i4ibt8rdY0XjNLVrfZcHLQh0urWl-iwIE,3899
72
72
  pywire/runtime/__init__.py,sha256=441hDvBWfYni7BtKlVXHEm2FWahK0MR3sIpkPkIE1zk,207
73
73
  pywire/runtime/aioquic_server.py,sha256=n9GuK81xtc6PUT54uMhqMlGXn8NrH-ryZ6Rl9qQWt7M,6685
74
- pywire/runtime/app.py,sha256=h50bmMll0wUixAYWq1FUUMBlt-zjnlqNC4K_3BqC4xY,35785
74
+ pywire/runtime/app.py,sha256=ebJ5SDDgJTk95R6AunWtJOi6RI4R4dJKCM31051hGy8,36217
75
75
  pywire/runtime/compile_error_page.py,sha256=sqPTqG9dv_e2uBgYuAgOcDHx0D3Gwq2liFbBRrz4_iY,8205
76
76
  pywire/runtime/debug.py,sha256=6U-Ot1defe7eDXaAxNip4NtRPQjtjS9LNCUnk_pmmeQ,7416
77
77
  pywire/runtime/dev_server.py,sha256=QQ2tr7bgSdM1yDwfW7h_-x7r2RZ4qsd5A59GAvbceu0,16096
@@ -97,8 +97,8 @@ pywire/templates/error/404.html,sha256=cZavWjs-aXoSRpEy-8D0rulP7g5Sn31MsIXmkZUQn
97
97
  pywire/templates/error/500.html,sha256=545CPh1XyhN-zdSAD8R-6Cuos6hLC--TXJy4EQHrpjM,1282
98
98
  pywire/templates/error/base.html,sha256=nlBlBIg-VFAWtTLWky7c2igNVsFjj9M8Wyw3v3_4KGQ,4863
99
99
  pywire/templates/error/compile_error.html,sha256=FMqU3HXYWMeiXG3eTAysNpAHH-AOPx2Apbz8f_HBvtw,837
100
- pywire-0.1.0.dist-info/METADATA,sha256=AIOkF-E5UkYqWCgRRRer-c9P8v5NJLb4PaEecsVMfcE,1905
101
- pywire-0.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
102
- pywire-0.1.0.dist-info/entry_points.txt,sha256=L0n4cNLZIocOo6lG05uOoUN1GHgA_uQOHvapDAhULBI,47
103
- pywire-0.1.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
104
- pywire-0.1.0.dist-info/RECORD,,
100
+ pywire-0.1.2.dist-info/METADATA,sha256=YY8GcGmn6gFSwfczEJHF_rWvPn3-rgj6aL9OosQLTag,2386
101
+ pywire-0.1.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
102
+ pywire-0.1.2.dist-info/entry_points.txt,sha256=L0n4cNLZIocOo6lG05uOoUN1GHgA_uQOHvapDAhULBI,47
103
+ pywire-0.1.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
104
+ pywire-0.1.2.dist-info/RECORD,,
File without changes