inguitive
A pure Python web framework combining intuitive syntax with HTMX for partial page reloads and Tailwind CSS for styling.
Components automatically re-render when state changes, eliminating the need for manual DOM manipulation or JavaScript. It is designed for Python developers who want to build interactive web applications using only Python, without sacrificing the dynamic feel of modern SPAs.
3 Steps to a Running App
pip install inguitive
inguitive init
inguitive run
inguitive init scaffolds a ready-to-run app.py in the current directory. inguitive run serves it at http://localhost:8000.
A Simple Example
Here's what a simple app might look like — a reactive counter that updates without a full page reload:
from inguitive import Div, Button, Label, State, create_app
app = create_app(title="Counter")
counter = State(0, "counter")
@app.trigger_handler
def increment():
counter.set(counter.get() + 1)
@app.page("/")
def index():
return Div(
Label(text=lambda: f"Count: {counter.get()}", id="counter-label", listen_to="counter"),
Button("+1", trigger="increment"),
)
Features
- Reactive State Management —
Statepropagates to all listening components automatically; no manual DOM updates or JavaScript - Component-Based — composable UI components with clean Python syntax; all attributes can be static strings or callables
- Trigger Handlers — Python functions wired directly to HTMX POST actions; pass data from components to handlers via
trigger_argsandget_trigger_args() - Form Validation — declarative
FormSchemawith type coercion and per-constraint messages - URL Routing — dynamic path parameters with type validation (
<name:type>) - Session Backends —
MemoryBackendfor development,RedisBackendfor production, with automatic per-user state isolation - CLI —
inguitive initandinguitive runto scaffold and serve - Type Safe — full type hints throughout the codebase
- Tailwind CSS — first-class support for utility-first styling
Documentation
For the full component reference, guides, and API docs, see docs/index.md.
License
MIT License — see LICENSE for details.
Contact: GitHub · Issues · info@stork-software.de
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inguitive-1.0.0.tar.gz.
File metadata
- Download URL: inguitive-1.0.0.tar.gz
- Upload date:
- Size: 235.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e293e2cacb9181bc1976d0c51a0da60ef12dbdd5d999d980503de9d8c1b1a49e
|
|
| MD5 |
ec43d5cc997533023f20d38883f36290
|
|
| BLAKE2b-256 |
cdba7dd065eab9ba887d957b429c64b2079110b579c202c419295c4b38685115
|
File details
Details for the file inguitive-1.0.0-py3-none-any.whl.
File metadata
- Download URL: inguitive-1.0.0-py3-none-any.whl
- Upload date:
- Size: 206.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11d1ac549d11a5bf2b01ffb53a6b755f43feea95e48e7cfe6b8473ad7f476857
|
|
| MD5 |
baea05d4e3781fc55f4ba742ece97cdc
|
|
| BLAKE2b-256 |
9dca2866430a266ce5961a33daedff9494629a09f60ad9370212979e0fd0794c
|