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.12.0.tar.gz (96.6 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.12.0-py3-none-any.whl (108.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ourui-1.12.0.tar.gz
Algorithm Hash digest
SHA256 a6b3b6e4fd49dcdbe84691e1943a10e85e96e217309ad4f5a7791689d3614e1b
MD5 099cebb83e13e15b9a70fc83e6f26562
BLAKE2b-256 6c2894ce28ec43050e911b18c5fffce430ad13ee87593d9f034026ec49c675df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ourui-1.12.0-py3-none-any.whl
  • Upload date:
  • Size: 108.1 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.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d56843869dc6adf3e41a88892d4da3f05c53563a76ad63398760fbb8f2187605
MD5 02ee1d4b6a2487b3ee1389cb15ce1efc
BLAKE2b-256 462af622fa1861ac4f0efcf4619d925b2e09ca554514f6f73764f1e7731241cd

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