Skip to main content

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

Project description

ourui 1.12.1

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

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

Style intent props (aspect=, pad_x=, ring=, transition_duration=, brightness=, …) compile to .ourui-* CSS utility classes. 45 utilities across transitions, filters, effects, typography, and layout. 7 new design scales. 225 passthrough properties. 7,983 lines of generated CSS.

ui.Theme = thin brand sheet (+ optional css= escape). 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.1.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.1-py3-none-any.whl (108.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ourui-1.12.1.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.1.tar.gz
Algorithm Hash digest
SHA256 3ea200d8878dc7d2fab05c60c9c8b008c8c861b241aa4df337c11681f07ee1bd
MD5 0c387b2871774eb8234055b5666b7fdd
BLAKE2b-256 7935611c0fdb23772d0fae39a7ea7e211c529eaac6f726c09094c6b18f87610a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ourui-1.12.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98e087167c1d0cdc5f3b5aa79693e1a1b05ffe83b115c8afd4feb5f62a9306fc
MD5 045140feb052a24ddcd922102e49ea50
BLAKE2b-256 424743ca8b91eea4c798fd7480ad5d733ad9624a3ac62687d8663f4544636e4a

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