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.5.0.tar.gz (20.1 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.5.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eidosui-0.5.0.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for eidosui-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e8fd99894d5fc686969278bde52368f2197de1af5c12f936bb8b6f14291be4d0
MD5 b567389d0df73cada30ec931bafa3d2b
BLAKE2b-256 fe486c5d05cf160a5c3ac4eca040c680a4e6b31b88a50f4c5b44c010f09cb4df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: eidosui-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for eidosui-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06d8063bea0cfae9e40a014787498f0b6163f58790a3dd18b0312a35f68c4371
MD5 2a5c3ce80a1a9c69a0308cf4085b41f4
BLAKE2b-256 735b2fa48c1d395e46453530346c3ce960d8877a381f6ebde453beb0581e4e22

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