Skip to content

Installation

Requirements

  • Python 3.13 or higher

Install with pip

pip install pyjinhx

Install with uv

uv add pyjinhx

Optional extras

The redis extra pulls in the dependencies for the Redis invalidation backend (used across multiple workers; configuring it also enables cross-request caching):

pip install pyjinhx[redis]

Dependencies

PyJinHx automatically installs these runtime dependencies:

  • Jinja2 - Template engine
  • MarkupSafe - Safe HTML string handling
  • Pydantic - Data validation and settings

PyJinHx does not install a web framework. FastAPI, Starlette, and uvicorn are user-supplied — install them yourself before following the FastAPI quickstart or Build an App:

pip install fastapi uvicorn

Verify Installation

from pyjinhx import BaseComponent, Renderer

print("PyJinHx installed successfully!")

Upgrading from 0.4.x

Coming from an older render-only release? See Migrating from 0.4.x for the compatibility matrix, the handful of mechanical fixes, and how to adopt the new reactive layer.