Desktop apps,
written in Python.
One file per component.
Rendered with Qt Quick.
Each component keeps its logic, its template and its styles in one .janel file. Everything between braces is Python, and the window follows your state. Your app runs as a native desktop application on Windows, macOS and Linux.
pip install janelkitPython 3.10+Logic, template and style.
In one file.
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
count = state(0)
def increment():
count.value += 1
</script>
<window title="Hello, JanelKit">
<column class="page">
<text>Count: {count}</text>
<button on:click={increment}>
Add one
</button>
</column>
</window>
<style>
.page { padding: 24px; gap: 16px; }
</style>CopyEach click changes count. The text follows.
Go on, give it a click. This preview runs in your browser to show the behavior; the .janel file runs as a native desktop window, with Python.
Learn how state works ↗One language.
From the logic to the window.
Python for everything you write.
Logic, template expressions and tests are Python. You never write JavaScript or QML: the compiler generates the QML.
Your libraries, in the same process.
A NumPy array, an OpenCV frame or a model’s result goes straight to the interface, with no server in between. Video frames pushed from any thread reach the screen in 17 ms at 1080p (median, measured on a 2013 laptop).
Errors that point at your code.
janel build checks every component before anything runs, and errors come back with the .janel file, line and column. janel dev reloads the window when you save, and keeps its state.
A small core.
Room to grow.
Everything a one-screen app needs is in janelkit. Add a package when your application needs more.
janelkit
Windows, layout and controls, components, reactivity, async work, video, themes, headless tests and the janel command.
↗MORE THAN ONE SCREENjanelkit-router
Page stacks that keep their state, sections, results with await.
↗SHARED DATAjanelkit-store
Stores with actions, one instance per application, persistence.
↗THE NATIVE TOUCHjanelkit-desktop
Native file and message dialogs, and the clipboard.
↗BEYOND ONE LANGUAGEjanelkit-i18n
Translation catalogs, plurals and locale-aware formats.
↗IN YOUR EDITORjanelkit-vscode
Syntax highlighting for .janel files in VS Code.
↗Open a new window.
Made for desktop tools that work with live data, cameras or models, for internal tools, and for any application whose logic is already in Python.