xnano¶
xnano is a modern TUI framework for python designed to simplify the process of putting and interacting with stuff on your terminal.
It provides a simple Pydantic like API for declaring and rendering your UI components in a way that plays nicely with your brain.
Why xnano?¶
-
Fast & Fun
The library provides an interface that promotes rapid iteration with a backend that keeps up with the speed of your thoughts.
-
Low Dependencies
xnano is an incredibly lightweight library with minimal dependencies. The interactive code blocks in this documentation are able to install & run xnano apps within ~150-200ms directly in the browser.
-
Built on Rust
xnano's core is built completely on the back of the ratatui, ratzilla, and tachyonfx rust libraries, giving you incredibly fast performance directly in python.
-
Flexible & Composable
Developer experience is the central focus of xnano's design. The entire API acts as a playground of flexible & controllable shapes through the field-based patterns popularized by Pydantic.
-
Type Safe
xnano is type safe by nature and provides extensive hinting and built-in validation for fields through pydantic-core.