Skip to main content

inguitive

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 ManagementState propagates 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_args and get_trigger_args()
  • Form Validation — declarative FormSchema with type coercion and per-constraint messages
  • URL Routing — dynamic path parameters with type validation (<name:type>)
  • Session BackendsMemoryBackend for development, RedisBackend for production, with automatic per-user state isolation
  • CLIinguitive init and inguitive run to 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

inguitive-1.0.0.tar.gz (235.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

inguitive-1.0.0-py3-none-any.whl (206.5 kB view details)

Uploaded Python 3

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

Hashes for inguitive-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e293e2cacb9181bc1976d0c51a0da60ef12dbdd5d999d980503de9d8c1b1a49e
MD5 ec43d5cc997533023f20d38883f36290
BLAKE2b-256 cdba7dd065eab9ba887d957b429c64b2079110b579c202c419295c4b38685115

See more details on using hashes here.

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

Hashes for inguitive-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 11d1ac549d11a5bf2b01ffb53a6b755f43feea95e48e7cfe6b8473ad7f476857
MD5 baea05d4e3781fc55f4ba742ece97cdc
BLAKE2b-256 9dca2866430a266ce5961a33daedff9494629a09f60ad9370212979e0fd0794c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.3

2 files

0.1.2

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page