Skip to main content

Python-first UI compiler — write intent in Python, emit HTML/CSS/JS

Project description

ourui 1.11.1

Python package for the OurUI compiler and runtime.

Developer writes intent. Compiler writes implementation. Host receives primitives.

Package goal: style intent props in Python (aspect=, pad_x=, ring=, …) → HTML/CSS/JS. ui.Theme = thin brand sheet (+ optional css= escape). Style Intent Catalog (ADR-013) L3 complete.

Dump schema 30 (additive). Theme defaults from theme.py. Thin primitives for emit — craft depth is the utility catalog.

Install

pip install ourui

From a clone of the repository (editable):

python3 -m venv .venv
source .venv/bin/activate
pip install -e packages/ourui

Quick commands

ourui dump path/to/app.py
ourui emit path/to/app.py
ourui check path/to/app.py
ourui serve path/to/app.py
ourui serve examples/tutorial/06_counter_app.py

See the repository root README and docs/user/ for language docs. Style utilities: docs/user/reference/style-intents.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ourui-1.11.1.tar.gz (92.9 kB view details)

Uploaded Source

Built Distribution

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

ourui-1.11.1-py3-none-any.whl (104.4 kB view details)

Uploaded Python 3

File details

Details for the file ourui-1.11.1.tar.gz.

File metadata

  • Download URL: ourui-1.11.1.tar.gz
  • Upload date:
  • Size: 92.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ourui-1.11.1.tar.gz
Algorithm Hash digest
SHA256 b3d8c63af4aec5d20fcdf39c8ba9cfe26d652badf70786806cc00250e505131d
MD5 1b1ea5249ba833fe7666c6b6fce257a4
BLAKE2b-256 836aadd624b83acd533194502592bf08fde082ca17d5d40860008ba6dc96b5b7

See more details on using hashes here.

File details

Details for the file ourui-1.11.1-py3-none-any.whl.

File metadata

  • Download URL: ourui-1.11.1-py3-none-any.whl
  • Upload date:
  • Size: 104.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ourui-1.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f118c0fc5cb6fd5b75ffba5d89108d826553fb789fe9736cbd5629e17da700c3
MD5 818a6fd1a140ee5f88c570a4ed36ea11
BLAKE2b-256 b08e1eca596b68653d22e9779db782c8aaabe9a4f5fa1784c98f0971d9aa488d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page