Skip to main content

A modern, Tailwind CSS-based UI library for air development

Project description

EidosUI

Modern UI library for Python web frameworks. Built on Air and Tailwind CSS.

[!CAUTION] This library is in alpha, and may have semi-frequent breaking changes. I'd love for you to try it an contribute feedback or PRs!

Installation

pip install eidosui

Quick Start

from eidos import *
import air

app = air.Air()

@app.get("/")
def home():
    return Html(
        Head(
            Title("My App"),
            *EidosHeaders()  # Required CSS/JS
        ),
        Body(
            H1("Welcome"),
            P("Build modern web apps with Python."),
            DataTable.from_lists(
                [["Alice", "30"], ["Bob", "25"]], 
                headers=["Name", "Age"]
            )
        )
    )

app.run()

Features

  • Styled HTML tags - Pre-styled versions of all HTML elements
  • Components - DataTable, NavBar, and more
  • Themes - Light/dark themes via CSS variables
  • Type hints - Full type annotations
  • Air integration - Works seamlessly with Air framework

Plugins

Markdown

pip install "eidosui[markdown]"
from eidos.plugins.markdown import Markdown, MarkdownCSS

Head(
    *EidosHeaders(),
    MarkdownCSS()  # Add markdown styles
)

Body(
    Markdown("# Hello\n\nSupports **GitHub Flavored Markdown**")
)

Documentation

Full documentation: https://eidosui.readthedocs.io

License

MIT

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

eidosui-0.12.3.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

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

eidosui-0.12.3-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file eidosui-0.12.3.tar.gz.

File metadata

  • Download URL: eidosui-0.12.3.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for eidosui-0.12.3.tar.gz
Algorithm Hash digest
SHA256 e734f6cd69f9f2469946c430e9cb6a00d23e39a75bb7594e1763ffee3b7fb1b9
MD5 5b6ef57ae627c3ba3bd9ab14d3d56d61
BLAKE2b-256 b8e2a8d41c140f4d20bbcd08b9aa297a2eaad4a7a20e502117288b33f3972f05

See more details on using hashes here.

File details

Details for the file eidosui-0.12.3-py3-none-any.whl.

File metadata

  • Download URL: eidosui-0.12.3-py3-none-any.whl
  • Upload date:
  • Size: 32.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for eidosui-0.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ec328980301c24dac4f99808af778eadf91880dd1c69562288f161c8a3a94a32
MD5 8e884e6b38023183a1a043237f7893c1
BLAKE2b-256 01ba5bf9053c34765cab33a35c3ee9a563749c6d1e48df3a8b0eb842d67a624b

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