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.1.tar.gz (25.8 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.1-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for eidosui-0.12.1.tar.gz
Algorithm Hash digest
SHA256 23ba1a793794dc9285356502809e879eb73c3802f8ea7c8c33ac07c7e54111b0
MD5 11594c8aae602449efe8ad3fc88f0714
BLAKE2b-256 312f6b68b3ebb25ed8ec109797b5eb38e78ce0cf90469257fba0abcf6e604fe5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for eidosui-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9e6b1f762c680c08c86f0f2a9a7aad0546076cbf8727bfd3e4082de31a9e5cd2
MD5 4868f777d087562f57014d8612e3533f
BLAKE2b-256 197fd460053ab4007ebb27389d48e25e0e25bf35ae0d04740ae8b39ddf4e085c

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