JanelKit
Modern desktop apps in pure Python. Tests click every button without a screen, so you, your CI and your coding agent can see the app work.
A Kanban board built with JanelKit: 842 lines of .janel and Python, and 12 tests that run without a screen. Source
pip install janelkit
janel new my-app
cd my-app
python main.py
Next: the tutorial builds a complete app, step by step.
One file per component
A .janel file holds a component's logic, template and styles. Everything between { and } is Python, and the interface follows your state: when a value changes, only what depends on it is updated.
<script lang="python">
from janelkit import state, computed
todos = state([{"id": 1, "title": "Try JanelKit", "done": False}])
draft = state("")
@computed
def pending():
return sum(not t["done"] for t in todos.value)
def add():
todos.value.append({"id": len(todos.value) + 1, "title": draft.value, "done": False})
draft.value = ""
</script>
<window title="Tasks" width={420} height={360}>
<column class="page">
<text class="title">{pending} pending</text>
<row class="new">
<textfield bind:value={draft} on:submit={add} placeholder="New task" flex={1} />
<button variant="primary" on:click={add}>Add</button>
</row>
{#each todos as todo (todo["id"])}
<checkbox checked={todo["done"]} on:change={todo["done"] = event}>{todo["title"]}</checkbox>
{/each}
</column>
</window>
<style>
.page { padding: 24px; gap: 12px; }
.title { font-size: var(--font-size-xl); font-weight: 600; }
.new { gap: 8px; }
</style>
Lowercase tags come with JanelKit (<text>, <button>, <column>). Capitalized tags are components you import like any Python module (from components.TodoItem import TodoItem).
Tested the way it is used
janelkit.inspect mounts the app without a window and drives it like a user. This is the test for the component above:
from janelkit.inspect import mount
def test_add_a_task():
with mount("src/App.janel") as app:
app.find(placeholder="New task").type("Buy milk").submit()
app.find("checkbox", text="Buy milk").check()
assert "1 pending" in app.texts()
There is no display, browser or driver to set up: it runs wherever pytest runs. A large app is tested the same way. These lines are from the tests of the Kanban board (its labels are in Spanish):
app.find("Tarjeta", label="Beta").drag_to(app.find("Columna", label="Hecho")) # press, move, release
app.find("Tarjeta", label="Gamma").right_click() # opens the context menu
app.find("flex", label="Mover a «Hecho»").click()
app.find("Tarjeta", label="Beta").key("Enter") # opens the card
assert app.find("Detalle").visible
app.screenshot("board.png")
- It finds what a user sees.
findlooks an element up by tag, text, label, placeholder or id, only among the visible ones, and fails unless exactly one matches. - It acts through the real paths.
click,type,check,drag_toandkeyemit the same signals a user would, so they go through your handlers and yourbind:. Acting on a disabled control fails, as it would for a user. - It reaches the whole app. Async tasks and timers (
app.wait(until=...)), other windows, system dialogs, the script's state (app.get("todos")) and screenshots.
JanelKit's own suite, more than 650 tests, runs this way on Windows, macOS and Linux. Reference
Built for coding agents too
An agent can't look at a window, but it can run a command. With JanelKit it can close the whole loop on its own:
- Write a component.
- Check it:
janel buildreports every error with the.janelfile, line and column, without running anything. - Use it:
mountthe app, click, type and drag through it. - Look at it:
app.texts()returns the visible text in reading order, andapp.screenshot()the image.
No display, no browser, no extra tools: the same API your tests use.
Why JanelKit
- Python all the way. Logic, template expressions and tests are Python, and the compiler generates the QML. When you need something from Qt Quick that JanelKit doesn't have, a
.qmlfile of your own is imported like any other component. Your own QML elements - Your libraries in the same process. A NumPy array, a pandas table or a model's result goes straight to the interface, with no server in between and nothing to serialize.
- Native rendering. Qt Quick draws the interface on the GPU. There is no browser or webview inside your app.
- Errors that point at your code. Errors from the compiler, from Qt or at run time come back with the
.janelfile, line and column, and a suggestion when there is one.
And the day-to-day: janel dev reloads the window when you save and keeps the state of every component you didn't touch, and the VS Code extension (or janel lsp in any editor) underlines errors as you type.
Is it for you?
A good fit: internal tools, data and lab tools, and any desktop app whose logic is already in Python and that you want covered by tests.
Not covered today:
- Web and mobile: JanelKit is for the desktop.
- Installers and code signing: there is a PyInstaller recipe; MSI, DMG and AppImage are up to you.
- English documentation: the guides and the compiler messages are in Spanish for now.
Learn
The guides are in docs/ (Spanish):
| Guide | What's in it |
|---|---|
| Tutorial | Start here: a complete app, step by step |
| Language | The .janel format: expressions, blocks, components, built-in elements |
| Styles | Supported CSS, flex layout, tokens, light and dark themes |
| Real-time patterns | Cameras, models and data acquisition: loops, frames, latency |
| Development | janel dev, janel build, errors, tests, executables |
| Public API · Changes | What is public, the versioning policy and how to migrate |
apps/examples has small apps, one topic each. apps/challenges has large apps that put the framework to the test: a chat client, a project manager, the Kanban board above, a 10 000 × 26 spreadsheet and a live system monitor.
Packages
pip install janelkit is all a one-screen app needs. Add the rest when you need it:
| You need | Install |
|---|---|
| Several screens: page stacks, a sidebar with sections | janelkit-router |
| Data shared by several views or windows, remembered between sessions | janelkit-store |
| Native file and system dialogs, clipboard | janelkit-desktop |
| Translations | janelkit-i18n |
.janel syntax highlighting and compiler errors in VS Code |
janelkit-vscode |
Requirements
- Python 3.10 or later.
- PySide6-Essentials 6.8 or later, except 6.12.0: Qt's essential modules, without the Add-ons. It is installed automatically.
- Windows, macOS or Linux.
Status
Alpha (0.2). The public API is documented in api.md and protected by tests. Each series (0.1, 0.2…) may break it, always with migration notes in cambios.md and janel migrate.
Next up: completion and type checking for the Python inside a .janel.
Try it and tell us
Build something small and open an issue with your .janel and what you expected to see: that is the fastest way to get something fixed. CONTRIBUTING.md explains how to run the suite and how the repository is organized.
License
MIT. JanelKit uses PySide6 (Qt for Python), distributed under LGPL-3.0: if you ship an app that bundles Qt, review its terms.
Metadata
Release files for janelkit 0.2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| janelkit-0.2.1.0.tar.gz | 327.3 kB | With provenance | Details for janelkit-0.2.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| janelkit-0.2.1.0-py3-none-any.whl | Python 3 | none | any | Details for janelkit-0.2.1.0-py3-none-any.whl |
Total release size: 600.8 kB
Release files / janelkit-0.2.1.0.tar.gz
| Download URL | janelkit-0.2.1.0.tar.gz |
|---|---|
| Size | 327.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
994df0fa946e841a6572d15dfc31a737fb030018a2d024016a603d5ae2a4c6f8
|
|
BLAKE2b-256 checksum How to use checksums |
4c871048f33e91557d57dbd70feb21336fb33883c149612ddce11bb24b19c386
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logRelease files / janelkit-0.2.1.0-py3-none-any.whl
| Download URL | janelkit-0.2.1.0-py3-none-any.whl |
|---|---|
| Size | 273.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1b9ef74425df5ee105493c52ab0a9113f7daa4e30c8f48bc9554d074df7cab3
|
|
BLAKE2b-256 checksum How to use checksums |
81c3d78b0a0cd1b8566cd121ecba4ad64e47763cf92942e56c7fad9a7ed47061
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logSecurity for janelkit 0.2.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for janelkit-0.2.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.