stilo-cli 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.
- stilo/__init__.py +6 -0
- stilo/__main__.py +7 -0
- stilo/cli/__init__.py +18 -0
- stilo/cli/commands.py +80 -0
- stilo/server/__init__.py +5 -0
- stilo/server/app.py +78 -0
- stilo/server/storage.py +140 -0
- stilo/web/assets/index-4AKEJowe.css +1 -0
- stilo/web/assets/index-CM5cmnCe.js +889 -0
- stilo/web/assets/texl_wasm_bg-DqOV-p_i.wasm +0 -0
- stilo/web/index.html +20 -0
- stilo_cli-0.1.0.dist-info/METADATA +75 -0
- stilo_cli-0.1.0.dist-info/RECORD +16 -0
- stilo_cli-0.1.0.dist-info/WHEEL +4 -0
- stilo_cli-0.1.0.dist-info/entry_points.txt +2 -0
- stilo_cli-0.1.0.dist-info/licenses/LICENSE +21 -0
|
Binary file
|
stilo/web/index.html
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" data-theme="dark">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<title>Stilo</title>
|
|
7
|
+
<script>
|
|
8
|
+
// Apply the saved theme before the first paint (default: dark).
|
|
9
|
+
try {
|
|
10
|
+
const theme = localStorage.getItem("stilo-theme");
|
|
11
|
+
if (theme === "light" || theme === "dark") document.documentElement.dataset.theme = theme;
|
|
12
|
+
} catch {}
|
|
13
|
+
</script>
|
|
14
|
+
<script type="module" crossorigin src="/_app/assets/index-CM5cmnCe.js"></script>
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/_app/assets/index-4AKEJowe.css">
|
|
16
|
+
</head>
|
|
17
|
+
<body>
|
|
18
|
+
<stilo-app></stilo-app>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: stilo-cli
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Stilo: edit and render a folder of linked Texl documents
|
|
5
|
+
Project-URL: Homepage, https://www.onlabs.org/stilo/
|
|
6
|
+
Project-URL: Source, https://github.com/onlabsorg/stilo
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Python: >=3.11
|
|
10
|
+
Requires-Dist: fastapi>=0.115
|
|
11
|
+
Requires-Dist: pytexl>=0.4
|
|
12
|
+
Requires-Dist: uvicorn>=0.30
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# Stilo
|
|
16
|
+
|
|
17
|
+
Stilo is the editor for [Texl](https://github.com/onlabsorg/texl) documents:
|
|
18
|
+
living documents that compute their content and link to each other. It
|
|
19
|
+
edits a folder of `.texl` files in the browser, as a stack of cells that
|
|
20
|
+
feels familiar to Word and Excel users, and renders them from the command
|
|
21
|
+
line.
|
|
22
|
+
|
|
23
|
+
Stilo is single-user and open source (MIT). Use it on your own folder,
|
|
24
|
+
locally or on a server of your own; collaboration between people and
|
|
25
|
+
organisations (accounts, permissions, release and accept) is the job of a
|
|
26
|
+
platform built on top of it.
|
|
27
|
+
|
|
28
|
+
> This repository used to hold the olojs version of Stilo, a CLI for
|
|
29
|
+
> olo-docs. That code is kept under the tag `olojs-v0.19.4`.
|
|
30
|
+
|
|
31
|
+
## Getting started
|
|
32
|
+
|
|
33
|
+
Requires Python 3.11 or later. Install the `stilo` command from PyPI, with
|
|
34
|
+
[uv](https://docs.astral.sh/uv/) or pip:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
uv tool install stilo-cli # or: pip install stilo-cli
|
|
38
|
+
stilo serve my-folder # http://127.0.0.1:8000
|
|
39
|
+
stilo render my-folder/report.texl
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
To try the sample documents, or to work on Stilo itself, use a checkout
|
|
43
|
+
(Node.js 22+ builds the web app):
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
git clone https://github.com/onlabsorg/stilo.git && cd stilo
|
|
47
|
+
cd web && npm install && npm run build && cd ..
|
|
48
|
+
uv run stilo serve examples
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Open <http://127.0.0.1:8000/projects/beam/beam-check.texl>. See the
|
|
52
|
+
[getting started guide](https://www.onlabs.org/stilo/book/getting-started.html)
|
|
53
|
+
and the developer guide.
|
|
54
|
+
|
|
55
|
+
## Parts
|
|
56
|
+
|
|
57
|
+
| Folder | What |
|
|
58
|
+
|-----------|---------------------------------------------------------------|
|
|
59
|
+
| `web/` | The web app's source (Lit, Vite): navigation, side panes and the editor (`web/src/editor/`, the `<texl-editor>` component) |
|
|
60
|
+
| `src/stilo/` | The Python package `stilo`: `server/` (FastAPI, one folder of documents), `cli/` (the `stilo` command, `render` and `serve`), `web/` (the built web app) |
|
|
61
|
+
| `tests/` | The Python tests |
|
|
62
|
+
| `pyproject.toml` | The package `stilo`, the only one published (on PyPI: `stilo-cli`) |
|
|
63
|
+
| `docs/` | The documentation (manual, editor manual, landing page), published on <https://www.onlabs.org/stilo/>; `docs/build.sh` builds it into `target/site` |
|
|
64
|
+
| `examples/` | Sample documents |
|
|
65
|
+
|
|
66
|
+
## Documentation
|
|
67
|
+
|
|
68
|
+
<https://www.onlabs.org/stilo/>: getting started, the `stilo` command, the
|
|
69
|
+
web editor (with an interactive editor manual), the protocol, the editor
|
|
70
|
+
component and a developer guide. See also [CONTRIBUTING.md](https://github.com/onlabsorg/stilo/blob/main/CONTRIBUTING.md)
|
|
71
|
+
and [CHANGELOG.md](https://github.com/onlabsorg/stilo/blob/main/CHANGELOG.md).
|
|
72
|
+
|
|
73
|
+
## License
|
|
74
|
+
|
|
75
|
+
[MIT](https://github.com/onlabsorg/stilo/blob/main/LICENSE)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
stilo/__init__.py,sha256=BwEcb1Oy6lvR3MJwgJGxEB-FnLabCzSUMcPBkFGBR_c,264
|
|
2
|
+
stilo/__main__.py,sha256=AGJgoVdYMcsvezsK6Qwm729J0mnA9ZdcOiXO89564So,116
|
|
3
|
+
stilo/cli/__init__.py,sha256=SP99OgMEgqSsdj9fr0JHYRc1MdxPo8Me2OEBptIo8bA,584
|
|
4
|
+
stilo/cli/commands.py,sha256=bb9Yj8QKhBUJnja49IQWITjYmCcUerKO2q_dfo8K5To,2729
|
|
5
|
+
stilo/server/__init__.py,sha256=UMoLgBnYebGXJiEbUQJF9ojhCp4ji6NAZnogfN8kQWw,121
|
|
6
|
+
stilo/server/app.py,sha256=VJA1KHpoUAhgngWmg42wFAlLx7nCy6-zjpdgmoiSMKQ,3594
|
|
7
|
+
stilo/server/storage.py,sha256=AiqE8fzBdSBeIQPrOWTFW0LkFj0d-DW7DKmVHlWBj64,5290
|
|
8
|
+
stilo/web/index.html,sha256=0NkwV5SaC1eFIGw4exKGWePgRX9IRBlWUzx3TzvYEMs,773
|
|
9
|
+
stilo/web/assets/index-4AKEJowe.css,sha256=lYQE0CYcId8v77pYF2UBew8PUp01iQpBRyPyXWiGSZY,1389
|
|
10
|
+
stilo/web/assets/index-CM5cmnCe.js,sha256=XuQZglFZPzqSmhHd9BitzG_ft470HDqPidHpXGaEcuY,662645
|
|
11
|
+
stilo/web/assets/texl_wasm_bg-DqOV-p_i.wasm,sha256=wm5724iYsYI689lI2BTh2gOC4s_Ksd5Qmw_9-OprkUM,638235
|
|
12
|
+
stilo_cli-0.1.0.dist-info/METADATA,sha256=Htr-_r9hXnGa-gOSUx1n-WQ8G9bSv8mvavxbOQn2V9c,3165
|
|
13
|
+
stilo_cli-0.1.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
14
|
+
stilo_cli-0.1.0.dist-info/entry_points.txt,sha256=LDlJyQzaTH7-5tuQR59w5BzGxcljFof7B39Veo0YmIc,41
|
|
15
|
+
stilo_cli-0.1.0.dist-info/licenses/LICENSE,sha256=GbofmElpc_iZrhl2C6_nlx5U3x-z3nWFQuCpCNDVpNU,1067
|
|
16
|
+
stilo_cli-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 OnLabs.org
|
|
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.
|