Skip to main content

Selective Interface Design System: TailwindCSS + Python for universal GUIs

Project description

SIDS: Selective Interface Design System ๐Ÿš€

PyPI version Python Support License: MIT

SIDS (Selective Interface Design System) integrates TailwindCSS with Python for building beautiful GUIs everywhere - web apps, desktop applications, and Jupyter notebooks.

๐ŸŽฏ Features

  • Declarative Python API - Build UIs like React, but in Python
  • TailwindCSS Integration - Beautiful, responsive styling out of the box
  • Multi-Platform Rendering - Deploy to Flask, FastAPI, Jupyter, or Tkinter
  • Component Library - Pre-built buttons, cards, forms, and more
  • CLI Tools - Easy project setup and development

๐Ÿš€ Quick Start

Installation

pip install sids

Basic Example

import sids as ui

# Create an app
app = ui.App()

# Define your UI
with app.page("Dashboard"):
    ui.H1("Welcome to SIDS! ๐ŸŽ‰", classes="text-blue-600")
    ui.Button(
        "Click Me", 
        color="blue",
        on_click=lambda: print("Hello from SIDS!")
    )
    ui.Card(
        "This is a beautiful card styled with Tailwind!",
        classes="bg-gradient-to-r from-purple-500 to-pink-500"
    )

# Run anywhere
app.run("flask")    # Web app
app.run("jupyter")  # Jupyter notebook
app.run("tkinter")  # Desktop app

๐Ÿ“ฆ Installation Options

# Basic installation
pip install sids

# With FastAPI support
pip install sids[fastapi]

# With Jupyter support  
pip install sids[jupyter]

# With everything
pip install sids[all]

# For development
pip install sids[dev]

๐Ÿ› ๏ธ CLI Usage

# Initialize a new SIDS project
sids init my-app

# Run development server
sids run

# Build for production
sids build

๐Ÿ—๏ธ Architecture

SIDS provides a unified API that renders to multiple backends:

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚   Python API    โ”‚  โ† Your Code Here
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚   SIDS Core     โ”‚  โ† Component System
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚    Adapters     โ”‚  โ† Backend Integration
โ”œโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚Flaskโ”‚Jptr โ”‚Tkntrโ”‚  โ† Render Targets
โ””โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ“š Documentation

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

๐Ÿ“„ License

MIT License - see LICENSE file for details.

๐Ÿ™ Acknowledgments

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

sids-0.1.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

sids-0.1.0-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file sids-0.1.0.tar.gz.

File metadata

  • Download URL: sids-0.1.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for sids-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2ec0a4089925367ef482c0a716b01c46f65f5de927a7d2e50293c809691e6845
MD5 1154c7d00fd2705f978640c1c12b8399
BLAKE2b-256 32910e1834d55daea16001a9a41d30ac03cab64300862d80fbe9e7f6a030f291

See more details on using hashes here.

File details

Details for the file sids-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sids-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for sids-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46122ac78bed6ba47dd88d6a0bf8f7f43bf9cb9271487a517915f1a2bba50b41
MD5 a27c0387b59e433dc94cd06651bf440b
BLAKE2b-256 3ea81a3533cc2066406acce0ca4f22a41a911cc1e213e879e2d6496a91f57a2c

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