millwork 0.1.0__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.
- millwork/__init__.py +45 -0
- millwork/_bundle/dist/.vite/manifest.json +92 -0
- millwork/_bundle/dist/charts-inner-Cq0vWbjt.js +39 -0
- millwork/_bundle/dist/favicon.svg +15 -0
- millwork/_bundle/dist/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- millwork/_bundle/dist/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- millwork/_bundle/dist/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- millwork/_bundle/dist/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- millwork/_bundle/dist/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- millwork/_bundle/dist/icons.svg +24 -0
- millwork/_bundle/dist/index.global-cOFus1M1.js +952 -0
- millwork/_bundle/dist/index.modern-CITEfQrV.js +135 -0
- millwork/_bundle/dist/lib-3DI92Zxk.js +1 -0
- millwork/_bundle/dist/main-BoZpFGOH.js +64 -0
- millwork/_bundle/dist/main-F2tEXmC5.css +2 -0
- millwork/_bundle/dist/react-markdown-DLcbNoI3.js +14 -0
- millwork/_bundle/dist/remark-gfm-DoHjwpPg.js +16 -0
- millwork/app.py +726 -0
- millwork/auth.py +877 -0
- millwork/chat.py +397 -0
- millwork/cli.py +316 -0
- millwork/context.py +42 -0
- millwork/files.py +450 -0
- millwork/forms.py +349 -0
- millwork/manual/__init__.py +449 -0
- millwork/manual/components/Hello.jsx +24 -0
- millwork/manual/components/Voice.jsx +46 -0
- millwork/manual/pages/app/auth.md +188 -0
- millwork/manual/pages/app/pages.md +200 -0
- millwork/manual/pages/app/running.md +242 -0
- millwork/manual/pages/app/state.md +151 -0
- millwork/manual/pages/app/testing.md +147 -0
- millwork/manual/pages/app/theming.md +122 -0
- millwork/manual/pages/components/charts.md +263 -0
- millwork/manual/pages/components/chat.md +280 -0
- millwork/manual/pages/components/custom.md +148 -0
- millwork/manual/pages/components/data.md +112 -0
- millwork/manual/pages/components/feedback.md +212 -0
- millwork/manual/pages/components/files.md +194 -0
- millwork/manual/pages/components/form.md +135 -0
- millwork/manual/pages/components/inputs.md +360 -0
- millwork/manual/pages/components/layout.md +154 -0
- millwork/manual/pages/components/tasks.md +140 -0
- millwork/manual/pages/components/text.md +145 -0
- millwork/manual/pages/index.md +67 -0
- millwork/manual/public/fonts/InterVariable.woff2 +0 -0
- millwork/manual/public/fonts/LICENSE.txt +2 -0
- millwork/manual/public/mark.svg +15 -0
- millwork/manual/public/theme.json +97 -0
- millwork/nodes.py +300 -0
- millwork/protocol.py +238 -0
- millwork/proxy.py +122 -0
- millwork/py.typed +0 -0
- millwork/session.py +1422 -0
- millwork/shell.py +226 -0
- millwork/tasks.py +473 -0
- millwork/testing.py +336 -0
- millwork/theme.py +338 -0
- millwork/ui/__init__.py +725 -0
- millwork/ui/charts.py +214 -0
- millwork/ui/chat.py +97 -0
- millwork/ui/files.py +101 -0
- millwork/ui/form.py +102 -0
- millwork/ui/table.py +145 -0
- millwork/ws.py +220 -0
- millwork-0.1.0.dist-info/METADATA +131 -0
- millwork-0.1.0.dist-info/RECORD +70 -0
- millwork-0.1.0.dist-info/WHEEL +4 -0
- millwork-0.1.0.dist-info/entry_points.txt +2 -0
- millwork-0.1.0.dist-info/licenses/LICENSE +202 -0
millwork/ws.py
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"""The websocket endpoint: one socket per tab, speaking the protocol.
|
|
2
|
+
|
|
3
|
+
Nothing the tab sends may take the loop down: a bad frame is logged and
|
|
4
|
+
skipped, a handler's failure is the session's business, and only the
|
|
5
|
+
socket that currently owns the session detaches it.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import logging
|
|
11
|
+
from typing import Any
|
|
12
|
+
from urllib.parse import urlsplit
|
|
13
|
+
|
|
14
|
+
from pydantic import ValidationError
|
|
15
|
+
from starlette.websockets import WebSocket, WebSocketDisconnect
|
|
16
|
+
|
|
17
|
+
from millwork.protocol import (
|
|
18
|
+
PROTOCOL_VERSION,
|
|
19
|
+
Answer,
|
|
20
|
+
Cancel,
|
|
21
|
+
Command,
|
|
22
|
+
Event,
|
|
23
|
+
Hello,
|
|
24
|
+
Navigate,
|
|
25
|
+
Request,
|
|
26
|
+
ServerError,
|
|
27
|
+
pack,
|
|
28
|
+
unpack_client,
|
|
29
|
+
unpack_frame,
|
|
30
|
+
)
|
|
31
|
+
from millwork.session import MAX_INFLIGHT, Session
|
|
32
|
+
from millwork.shell import root_of
|
|
33
|
+
|
|
34
|
+
log = logging.getLogger("millwork.ws")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def origin_allowed(ws: WebSocket, origins: list[str]) -> bool:
|
|
38
|
+
"""Same origin by default; an explicit allow-list otherwise.
|
|
39
|
+
|
|
40
|
+
A browser always sends ``Origin`` on a websocket. A client without one
|
|
41
|
+
(a test, curl) is not a browser and has no cross-site protection to
|
|
42
|
+
bypass, so it is allowed.
|
|
43
|
+
"""
|
|
44
|
+
origin = ws.headers.get("origin")
|
|
45
|
+
if origin is None:
|
|
46
|
+
return True
|
|
47
|
+
if origins:
|
|
48
|
+
return origin in origins
|
|
49
|
+
host = ws.headers.get("host")
|
|
50
|
+
return host is not None and urlsplit(origin).netloc.lower() == host.lower()
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
async def websocket_endpoint(ws: WebSocket) -> None:
|
|
54
|
+
app = ws.app.state.millwork
|
|
55
|
+
if not origin_allowed(ws, app.origins):
|
|
56
|
+
await ws.close(code=4403)
|
|
57
|
+
return
|
|
58
|
+
await ws.accept()
|
|
59
|
+
|
|
60
|
+
async def refuse(key: str, code: int, **vars: Any) -> None:
|
|
61
|
+
await ws.send_text(pack(0, ServerError(message=app.theme.text(key, **vars), fatal=True)))
|
|
62
|
+
await ws.close(code=code)
|
|
63
|
+
|
|
64
|
+
try:
|
|
65
|
+
_, first = unpack_client(await ws.receive_text())
|
|
66
|
+
except (ValidationError, WebSocketDisconnect, KeyError):
|
|
67
|
+
await ws.close(code=4400)
|
|
68
|
+
return
|
|
69
|
+
if not isinstance(first, Hello):
|
|
70
|
+
await ws.send_text(pack(0, ServerError(message="expected hello", fatal=True)))
|
|
71
|
+
await ws.close(code=4400)
|
|
72
|
+
return
|
|
73
|
+
if first.protocol != PROTOCOL_VERSION:
|
|
74
|
+
await ws.send_text(pack(0, Command(name="reload")))
|
|
75
|
+
await ws.close(code=4426)
|
|
76
|
+
return
|
|
77
|
+
|
|
78
|
+
try:
|
|
79
|
+
user = await app.user_for(ws)
|
|
80
|
+
except Exception:
|
|
81
|
+
# Said once per attempt; the tab is told to stop, so a broken hook does
|
|
82
|
+
# not turn every open tab into a reconnect loop.
|
|
83
|
+
log.exception("identity lookup failed")
|
|
84
|
+
await refuse("something_went_wrong", 4500)
|
|
85
|
+
return
|
|
86
|
+
session: Session[Any] | None = None
|
|
87
|
+
if first.session and first.resume:
|
|
88
|
+
candidate = app.sessions.get(first.session)
|
|
89
|
+
if candidate is not None and candidate.owns_resume(first.resume) and not candidate.closed:
|
|
90
|
+
same_user = (candidate.user is None and user is None) or (
|
|
91
|
+
candidate.user is not None and user is not None and candidate.user.id == user.id
|
|
92
|
+
)
|
|
93
|
+
if same_user:
|
|
94
|
+
session = candidate
|
|
95
|
+
else:
|
|
96
|
+
log.warning("resume refused: another user")
|
|
97
|
+
|
|
98
|
+
if session is None:
|
|
99
|
+
page, params = app.resolve(first.path) or app.fallback("not_found", first.path)
|
|
100
|
+
if app.auth is not None and not page.public and user is None:
|
|
101
|
+
await refuse("sign_in_hint", 4401)
|
|
102
|
+
return
|
|
103
|
+
session = Session(app, page, params, first.path)
|
|
104
|
+
session.user = user
|
|
105
|
+
session.base = root_of(ws.scope)
|
|
106
|
+
session.client = (
|
|
107
|
+
f"user:{user.id}"
|
|
108
|
+
if user is not None
|
|
109
|
+
else f"addr:{ws.client.host if ws.client else '?'}"
|
|
110
|
+
)
|
|
111
|
+
if (
|
|
112
|
+
user is None
|
|
113
|
+
and ws.scope.get("millwork.proxied")
|
|
114
|
+
and "x-forwarded-for" not in ws.headers
|
|
115
|
+
and not app._warned_no_address
|
|
116
|
+
):
|
|
117
|
+
# Every anonymous visitor then shares the proxy's address and one cap.
|
|
118
|
+
app._warned_no_address = True
|
|
119
|
+
log.warning(
|
|
120
|
+
"the proxy sends no X-Forwarded-For, so every anonymous visitor "
|
|
121
|
+
"counts as one client for the session cap"
|
|
122
|
+
)
|
|
123
|
+
session.connecting = True
|
|
124
|
+
if not await app.admit(session):
|
|
125
|
+
log.warning("session refused for %s: too many sessions", session.client)
|
|
126
|
+
await refuse("too_many_sessions", 4429)
|
|
127
|
+
return
|
|
128
|
+
try:
|
|
129
|
+
await session.connect_or_fall_back()
|
|
130
|
+
except Exception:
|
|
131
|
+
log.exception("connect failed for %s", first.path)
|
|
132
|
+
await ws.send_text(
|
|
133
|
+
pack(0, ServerError(message=app.theme.text("page_failed"), fatal=True))
|
|
134
|
+
)
|
|
135
|
+
await session.close()
|
|
136
|
+
await ws.close(code=4500)
|
|
137
|
+
return
|
|
138
|
+
|
|
139
|
+
send = ws.send_text
|
|
140
|
+
|
|
141
|
+
async def close_this_socket() -> None:
|
|
142
|
+
await ws.close(code=4409)
|
|
143
|
+
|
|
144
|
+
try:
|
|
145
|
+
await session.attach(send, first.seq, close=close_this_socket, send_bytes=ws.send_bytes)
|
|
146
|
+
except Exception:
|
|
147
|
+
log.exception("attach failed for session %s", session.id)
|
|
148
|
+
await ws.send_text(pack(0, ServerError(message=app.theme.text("page_failed"), fatal=True)))
|
|
149
|
+
await ws.close(code=4500)
|
|
150
|
+
session.detach(send)
|
|
151
|
+
return
|
|
152
|
+
finally:
|
|
153
|
+
session.connecting = False
|
|
154
|
+
if session.closed:
|
|
155
|
+
# Ended while it was being connected (signed out elsewhere): the tab is
|
|
156
|
+
# told now, since nothing could reach it before.
|
|
157
|
+
reason = session.end_reason or "The session ended."
|
|
158
|
+
await ws.send_text(pack(0, ServerError(message=reason, fatal=True)))
|
|
159
|
+
await ws.close(code=4409)
|
|
160
|
+
return
|
|
161
|
+
|
|
162
|
+
overflowed = False
|
|
163
|
+
try:
|
|
164
|
+
while True:
|
|
165
|
+
message = await ws.receive()
|
|
166
|
+
if message["type"] == "websocket.disconnect":
|
|
167
|
+
break
|
|
168
|
+
text = message.get("text")
|
|
169
|
+
if text is None:
|
|
170
|
+
data = message.get("bytes")
|
|
171
|
+
if not data:
|
|
172
|
+
continue
|
|
173
|
+
try:
|
|
174
|
+
request_id, chunk = unpack_frame(data)
|
|
175
|
+
except ValueError:
|
|
176
|
+
log.warning("bad binary frame from session %s", session.id)
|
|
177
|
+
continue
|
|
178
|
+
# Fed inline: a bounded stream holds this loop back when the disk is
|
|
179
|
+
# slower than the socket, which is the backpressure.
|
|
180
|
+
await session.feed(request_id, chunk)
|
|
181
|
+
continue
|
|
182
|
+
try:
|
|
183
|
+
_, msg = unpack_client(text)
|
|
184
|
+
except ValidationError:
|
|
185
|
+
log.warning("bad message from session %s", session.id)
|
|
186
|
+
continue
|
|
187
|
+
# Each message is its own task: the receive loop never waits on a handler,
|
|
188
|
+
# so an answer to an open ask (or a click during a long handler) still arrives.
|
|
189
|
+
# The session's lock keeps handlers one at a time, in order.
|
|
190
|
+
# An answer to an open ask resolves a waiting handler and starts no new
|
|
191
|
+
# work, so it passes the bound: the backlog cannot clear without it.
|
|
192
|
+
if (
|
|
193
|
+
isinstance(msg, Event | Answer | Navigate)
|
|
194
|
+
and session.inflight >= MAX_INFLIGHT
|
|
195
|
+
and not (isinstance(msg, Event) and "/@ask:" in msg.node)
|
|
196
|
+
):
|
|
197
|
+
if not overflowed:
|
|
198
|
+
overflowed = True
|
|
199
|
+
log.warning(
|
|
200
|
+
"session %s: %d messages pending, dropping", session.id, MAX_INFLIGHT
|
|
201
|
+
)
|
|
202
|
+
await session._send_now(
|
|
203
|
+
ServerError(message=app.theme.text("too_many_actions"), fatal=False)
|
|
204
|
+
)
|
|
205
|
+
continue
|
|
206
|
+
overflowed = False
|
|
207
|
+
if isinstance(msg, Event):
|
|
208
|
+
session.spawn(session.dispatch(msg), f"event {msg.name} on {msg.node}")
|
|
209
|
+
elif isinstance(msg, Answer):
|
|
210
|
+
session.spawn(session.answer(msg), "answer")
|
|
211
|
+
elif isinstance(msg, Navigate):
|
|
212
|
+
session.spawn(session.navigate_to(msg.path), f"navigate {msg.path}")
|
|
213
|
+
elif isinstance(msg, Request):
|
|
214
|
+
session.start_request(msg)
|
|
215
|
+
elif isinstance(msg, Cancel):
|
|
216
|
+
session.cancel_request(msg.request)
|
|
217
|
+
except WebSocketDisconnect:
|
|
218
|
+
pass
|
|
219
|
+
finally:
|
|
220
|
+
session.detach(send)
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: millwork
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A Python framework for data tools and AI applications: one prebuilt React bundle, driven from Python.
|
|
5
|
+
Project-URL: Repository, https://github.com/DvGils/millwork
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Requires-Python: >=3.12
|
|
9
|
+
Requires-Dist: httpx>=0.28
|
|
10
|
+
Requires-Dist: pydantic<3,>=2.11
|
|
11
|
+
Requires-Dist: starlette>=0.47
|
|
12
|
+
Requires-Dist: uvicorn>=0.35
|
|
13
|
+
Requires-Dist: websockets>=15
|
|
14
|
+
Provides-Extra: dev
|
|
15
|
+
Requires-Dist: watchfiles>=1.1; extra == 'dev'
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
<p align="center"><img src="bundle/public/favicon.svg" alt="" width="72"></p>
|
|
19
|
+
|
|
20
|
+
<h1 align="center">millwork</h1>
|
|
21
|
+
|
|
22
|
+
<p align="center">A modern UI framework for Python</p>
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<a href="https://github.com/DvGils/millwork/actions/workflows/ci.yml"><img src="https://github.com/DvGils/millwork/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
|
|
26
|
+
<img src="https://img.shields.io/badge/python-3.12%2B-3776AB" alt="Python 3.12 or newer">
|
|
27
|
+
<img src="https://img.shields.io/badge/license-Apache--2.0-blue" alt="Apache-2.0">
|
|
28
|
+
</p>
|
|
29
|
+
|
|
30
|
+
<picture>
|
|
31
|
+
<source media="(prefers-color-scheme: dark)" srcset=".github/readme/app-dark.png">
|
|
32
|
+
<img src=".github/readme/app-light.png" alt="A millwork page: three stat tiles with trends, a bar chart and a sortable table, in the default theme.">
|
|
33
|
+
</picture>
|
|
34
|
+
|
|
35
|
+
A page is a Python function of the session's state. A handler changes the
|
|
36
|
+
state, the page renders again, and the browser receives a patch. The React bundle
|
|
37
|
+
ships inside the package, so a project is Python only.
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
import millwork as mw
|
|
41
|
+
from millwork import ui
|
|
42
|
+
from pydantic import BaseModel
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class State(BaseModel):
|
|
46
|
+
clicks: int = 0
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
app = mw.App("hello", state=State)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@app.page("/")
|
|
53
|
+
def home(s: mw.Session[State]) -> ui.Component:
|
|
54
|
+
return ui.Page(
|
|
55
|
+
ui.Text(f"Clicked {s.state.clicks} times."),
|
|
56
|
+
ui.Button("Add one", on_click=lambda s, _: setattr(s.state, "clicks", s.state.clicks + 1)),
|
|
57
|
+
)
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
uv add git+https://github.com/DvGils/millwork
|
|
62
|
+
uv run millwork run app.py
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## What is in the box
|
|
66
|
+
|
|
67
|
+
- **A catalogue of components** on shadcn/ui: layout, text, inputs,
|
|
68
|
+
feedback, tables, charts, forms from Pydantic models, files, tasks with
|
|
69
|
+
progress, and a chat surface that streams replies from Python.
|
|
70
|
+
- **One model of state.** Python owns the state; a control is owned by
|
|
71
|
+
Python or by the browser, and the page says which.
|
|
72
|
+
- **Long work as tasks**, with progress, steps and cancellation drawn by
|
|
73
|
+
the page, and chat replies that stream text, reasoning and tool steps.
|
|
74
|
+
- **Files over the session's socket.** Uploads, downloads and inline
|
|
75
|
+
images travel on the same connection as everything else, so replicas
|
|
76
|
+
need no sticky routing and no shared storage.
|
|
77
|
+
- **Sign-in** with password, OAuth and proxy-header providers behind one
|
|
78
|
+
`on_login` hook, and a theme file in the shadcn token vocabulary for
|
|
79
|
+
colors, fonts and logos.
|
|
80
|
+
- **A test harness** that drives a page without a browser: open it,
|
|
81
|
+
click, change, submit, and read what the tab would have received.
|
|
82
|
+
- **One process to run.** `millwork run` serves an app on a port or a
|
|
83
|
+
unix socket, behind a proxy and under a path prefix, with a health
|
|
84
|
+
route for the host.
|
|
85
|
+
|
|
86
|
+
## The manual
|
|
87
|
+
|
|
88
|
+
The manual is a millwork app. Every example in it runs, with the Python
|
|
89
|
+
code beside it:
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
uv run millwork docs
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Then open http://127.0.0.1:8008. The chapters cover pages and routing,
|
|
96
|
+
state and handlers, signing in, theming, testing and running, and every
|
|
97
|
+
component has a live example.
|
|
98
|
+
|
|
99
|
+
## Status
|
|
100
|
+
|
|
101
|
+
millwork is still in beta.
|
|
102
|
+
|
|
103
|
+
## Developing millwork
|
|
104
|
+
|
|
105
|
+
Python is managed with uv, the bundle with pnpm; only `bundle/` needs
|
|
106
|
+
Node.
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
uv run pytest -q # the Python suite
|
|
110
|
+
uv run mypy src && uv run ruff check src tests
|
|
111
|
+
pnpm -C bundle exec tsc --noEmit # the bundle's types
|
|
112
|
+
CI=1 pnpm -C bundle exec vitest run # the bundle's unit tests
|
|
113
|
+
CI=1 pnpm -C bundle build # rebuilds src/millwork/_bundle/dist
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
A change to the bundle is committed together with the rebuilt `dist`, so
|
|
117
|
+
every checkout runs without Node. The manual's pages under
|
|
118
|
+
`src/millwork/manual/pages` are the gallery a bundle upgrade is judged
|
|
119
|
+
against.
|
|
120
|
+
|
|
121
|
+
## Releasing
|
|
122
|
+
|
|
123
|
+
A release is a tag. Write the version's section in `CHANGELOG.md`, set the
|
|
124
|
+
version with `uv version 0.2.0`, commit, tag `v0.2.0` and push the tag. The
|
|
125
|
+
release workflow waits for approval, checks the tagged commit, builds the
|
|
126
|
+
wheel, publishes it to PyPI and makes the GitHub release from the changelog
|
|
127
|
+
section.
|
|
128
|
+
|
|
129
|
+
## License
|
|
130
|
+
|
|
131
|
+
Apache-2.0.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
millwork/__init__.py,sha256=CZe8Bh7wRwApBkNwLeS7bLJR-Rl6VFbTIcyYY-RodEs,1144
|
|
2
|
+
millwork/app.py,sha256=CxlIucKFSezmH9S8hblR-J51HFIawfWuB4dP1Q4NJt4,29915
|
|
3
|
+
millwork/auth.py,sha256=MFrRE-1cOyt1xfCEVMwbrqgQhBWk-SZdcV2i-PnR6Rw,33701
|
|
4
|
+
millwork/chat.py,sha256=G6JigqlcOMRjN_8ohRE-2zxwqXo6UZJVHFS6EyeFfr4,14270
|
|
5
|
+
millwork/cli.py,sha256=mnisqqWMFMWQyNml7ExfCdYFLAdZpK-xeCNDMBw1wKQ,11239
|
|
6
|
+
millwork/context.py,sha256=648bJyGw2LrKR71dPSBIDg82L8QJBDz7R9KSjG6kfds,1185
|
|
7
|
+
millwork/files.py,sha256=QsNyy2TrrQAWiOcR6ugKnLO3q0KSnDRKKj4bscKyJmw,15388
|
|
8
|
+
millwork/forms.py,sha256=dIOhZBvMhGyIgeFsXLpFL1u67SwY_ezHP-4fBWJaAIY,13758
|
|
9
|
+
millwork/nodes.py,sha256=XGaJFbBoE4qxzE1Fc_vA5ps-XUtHB4431S6yO7G5Cfo,11378
|
|
10
|
+
millwork/protocol.py,sha256=ZWD6kNLN2LCrRqNkZtaYvBKuG6YDKTAakthYWL_B3UM,6061
|
|
11
|
+
millwork/proxy.py,sha256=YCZ1SvQ_81s51kC0iXT7BfAPuxWbOuidohI-_uh6a4I,4508
|
|
12
|
+
millwork/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
|
+
millwork/session.py,sha256=RErJeP4arNhlt5y7FKztnfITZxi7J2-RP2xRxCP4DWQ,59326
|
|
14
|
+
millwork/shell.py,sha256=f0sRPPxNZfcQisOq3G-qw5_BF_LK5L5IZsFsfxYFzOo,8388
|
|
15
|
+
millwork/tasks.py,sha256=AvNxmUMA6I10k29iwlnAmxv25TdtbIZz2VZx09yvhLk,16290
|
|
16
|
+
millwork/testing.py,sha256=HjXLa9_CNYjpzZXg5YSVY3kzKrrRvbvI9nYbK7_nTn4,12517
|
|
17
|
+
millwork/theme.py,sha256=BTp7bMZbFvG6ZKSNqz30etZwrpQcBqKrDBeAi3H9kHU,11843
|
|
18
|
+
millwork/ws.py,sha256=oehnRm-2_e8Ocbv0oCxypH9SXWCABs62SQGHuB8vpAg,8354
|
|
19
|
+
millwork/_bundle/dist/charts-inner-Cq0vWbjt.js,sha256=FmVuZOC4F79EddZkk4FLCiei5eOfbSL3n8ViFLylwdc,369971
|
|
20
|
+
millwork/_bundle/dist/favicon.svg,sha256=HTy-ug2tN86ZErZk8HG0ug8vDnKwBoVMj8ocQH9Kl00,535
|
|
21
|
+
millwork/_bundle/dist/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2,sha256=Ixf6S7KTycCxEOGDFdUpI1xHoN3TM4zqPYx5VekniZ4,7420
|
|
22
|
+
millwork/_bundle/dist/geist-cyrillic-wght-normal-BEAKL7Jp.woff2,sha256=aJRDlpSUalidFX7OADCGlgpqQBPXSoE9q3YC79s9jAk,15084
|
|
23
|
+
millwork/_bundle/dist/geist-latin-ext-wght-normal-DC-KSUi6.woff2,sha256=gk9IW10m4vLaPCsjYTLs4byOTkM3NFKVC7DkBUi0MT8,16512
|
|
24
|
+
millwork/_bundle/dist/geist-latin-wght-normal-BgDaEnEv.woff2,sha256=GfnJJUaqMAwxIjXjElrxuBOU2NuaS8SkJc1bZB0tVOE,29400
|
|
25
|
+
millwork/_bundle/dist/geist-vietnamese-wght-normal-6IgcOCM7.woff2,sha256=j6QOXSSCR3NeuXoL1ZO4hSRAQwYA1roBNkwx_gq8H-E,8004
|
|
26
|
+
millwork/_bundle/dist/icons.svg,sha256=tF-lBhlc_N70BrqfDHezbdwafCJAQJJuxwq8L96nuTo,5031
|
|
27
|
+
millwork/_bundle/dist/index.global-cOFus1M1.js,sha256=0p0US_P89RK0vZmRpd0JgwHJpJjITbd-MoQJZKP4Ti8,278894
|
|
28
|
+
millwork/_bundle/dist/index.modern-CITEfQrV.js,sha256=UihD1XlW673UEupdo9UZaD1FbDwV2X756tm5Ja92elo,200872
|
|
29
|
+
millwork/_bundle/dist/lib-3DI92Zxk.js,sha256=oUkCDX_HFKD5sU_XE_JE19CjkYYJH1f8_OyOcrb2PY4,4354
|
|
30
|
+
millwork/_bundle/dist/main-BoZpFGOH.js,sha256=gfag9n6Fi7r_MF7Vw8OBFSH787gsoPIPxPqi58QcMpc,866591
|
|
31
|
+
millwork/_bundle/dist/main-F2tEXmC5.css,sha256=JzSNg0CAcfNu17ng3zi5PZ02gzAUrUyccwdYgRmnOW0,168242
|
|
32
|
+
millwork/_bundle/dist/react-markdown-DLcbNoI3.js,sha256=VxVMDJEy9xzovDrp2tIKxcHDkJNya0Psev3ThneUXN0,113375
|
|
33
|
+
millwork/_bundle/dist/remark-gfm-DoHjwpPg.js,sha256=kZEtxxmySzZbk5O4EfQG7yRxCXBl_xlTa9fAEPKOuyU,38021
|
|
34
|
+
millwork/_bundle/dist/.vite/manifest.json,sha256=aFM9XrEsbnRKg93ejEitw60DIHJIIyM5BNBy5CCQ744,4479
|
|
35
|
+
millwork/manual/__init__.py,sha256=4k-QtRiFk_P3HSWOuOks_X09gHwFuv949t9N1AeNOyY,15621
|
|
36
|
+
millwork/manual/components/Hello.jsx,sha256=dW2c8g9Ix9-iY4kOoAruLYeq1iwe_6LMHXtZxWyxYAU,1064
|
|
37
|
+
millwork/manual/components/Voice.jsx,sha256=1SuuaM0YZyPv-CsHCZtME0smeE70mDpHEBaeoBeco7A,1484
|
|
38
|
+
millwork/manual/pages/index.md,sha256=lzqYoP_Qnh_M6WSkKav8JIGI_nuSzyqifgPTBkQjTD4,1960
|
|
39
|
+
millwork/manual/pages/app/auth.md,sha256=4fnXXtHXi17WyBdIzaPi9g8jb9p277ynYt2vCrJ-knY,7530
|
|
40
|
+
millwork/manual/pages/app/pages.md,sha256=rvQDk2L511OLa-dS9oT8_kC7sh4JjrLzB12EC0mfK1Y,7264
|
|
41
|
+
millwork/manual/pages/app/running.md,sha256=r1l5HEJIFkowrlO1NKe4vYntyXJmo3NYPk0T4KpdX8A,10418
|
|
42
|
+
millwork/manual/pages/app/state.md,sha256=tHayMopXtYKwP5td8SqVriTiBHV3gt3tTcMPvu_hBWc,4884
|
|
43
|
+
millwork/manual/pages/app/testing.md,sha256=bq3FPqlPP2kQNJrnGt-Lq58ADoN-JbvPwN5F7UH-9Us,5223
|
|
44
|
+
millwork/manual/pages/app/theming.md,sha256=-vZivJA4czuYQyVlaFMAidioPFYMG1V_zwb24QbfGDA,4728
|
|
45
|
+
millwork/manual/pages/components/charts.md,sha256=y3hDaeT0aP0SW59jPxj--l4waUceuAH_bhe3X8QjBR8,8334
|
|
46
|
+
millwork/manual/pages/components/chat.md,sha256=o7iI5LjHI6a_mDYo6Qwazu-EWETCuj0OrFiXHoWJ7eA,9152
|
|
47
|
+
millwork/manual/pages/components/custom.md,sha256=r023qmWFFIgdGroATqr9-h9oi-bxA42pexP1-9_J49Y,4876
|
|
48
|
+
millwork/manual/pages/components/data.md,sha256=V_oyDTJ6KT0tXyiiCOwaUsvpTO1ELhq-Kb3Pw09Lb4k,3538
|
|
49
|
+
millwork/manual/pages/components/feedback.md,sha256=NF0oRBHa8IU9BngdxyhRgYHPYbCUzMp2aDYpskcP0_k,5757
|
|
50
|
+
millwork/manual/pages/components/files.md,sha256=_MNjhRKzz3YHSZ8FG6PV4EKIUz3H0fFZk5sd-H14Ao0,5556
|
|
51
|
+
millwork/manual/pages/components/form.md,sha256=L8tLcvLeDnn46hxUT_PA3B-rHgbpgQUB-fK_fXNh5Uc,3570
|
|
52
|
+
millwork/manual/pages/components/inputs.md,sha256=r_iU33FiFcl0W124cheMEI-yRO4lykrQUfIbMgYaH8k,10251
|
|
53
|
+
millwork/manual/pages/components/layout.md,sha256=17vphwaIFiOpCu37pqRCSzQDouhjpEnb1XRzTvieEHM,4315
|
|
54
|
+
millwork/manual/pages/components/tasks.md,sha256=FsswConCOqzIP7ddXmI5SFZDk2C3QGKMkUNwNcFbmvQ,3619
|
|
55
|
+
millwork/manual/pages/components/text.md,sha256=qWVj_K9JV6UX3yTzO3NqGxkP_iv3hzBwrUpOliBbXFE,3518
|
|
56
|
+
millwork/manual/public/mark.svg,sha256=HTy-ug2tN86ZErZk8HG0ug8vDnKwBoVMj8ocQH9Kl00,535
|
|
57
|
+
millwork/manual/public/theme.json,sha256=brPjaeQG-XaBtmfqGaww-c6t38Lsmh-76sDoIB4rdrI,2885
|
|
58
|
+
millwork/manual/public/fonts/InterVariable.woff2,sha256=aTt31PMu6bi_yZVYm1-tXpmt8oMnOGYfVAL5l4QpqOM,352240
|
|
59
|
+
millwork/manual/public/fonts/LICENSE.txt,sha256=x95laahr1Mk2gzPVRFjs6XRp0Yp8XdZ-l2FgpDqLILs,103
|
|
60
|
+
millwork/ui/__init__.py,sha256=2jVD1HQzd9bH6gCH29LNRkkYyzGn-nZ-LiMOQ4SAt5k,19361
|
|
61
|
+
millwork/ui/charts.py,sha256=r77njt8mbdCcy_bsNfXNuinxLUF0FK4tOQV9PqQATPU,8449
|
|
62
|
+
millwork/ui/chat.py,sha256=r9pgx8BF16Hzbu2bVikEMEUEEgLiL5r3TN57_4C9sJg,3343
|
|
63
|
+
millwork/ui/files.py,sha256=u0e9RRSAEms85PpvaKvBWslCPlLZRnKtF77Gk4e-Vis,3021
|
|
64
|
+
millwork/ui/form.py,sha256=I2lDcp-4-ThrW3sH9YyJ_SffRVS3gC3v5w8KdRu7dbs,3942
|
|
65
|
+
millwork/ui/table.py,sha256=HPNkbhb2xQkzDNYjiHv1C1st9j2JnM2BQagKQdIzoqo,4666
|
|
66
|
+
millwork-0.1.0.dist-info/METADATA,sha256=J4CT2wkJNRfTr0-QsGrdb_N6FdxBmulBJuYE1yMY0yk,4539
|
|
67
|
+
millwork-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
68
|
+
millwork-0.1.0.dist-info/entry_points.txt,sha256=BxIsShY4FbKeHxO4ayW7krZ1o66WOHNO7DV3TARo1-Q,47
|
|
69
|
+
millwork-0.1.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
70
|
+
millwork-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|