Skip to main content

shinytail

A lightweight Python package for seamlessly integrating Tailwind CSS with Shiny for Python applications.

Installation

pip install shiny_tail

Features

  • Add Tailwind CSS to Shiny with one line of code
  • Support for Tailwind plugins and configurations
  • Custom themes and styling
  • No external CSS dependencies required
  • Simple, intuitive API
  • Responsive design out of the box

Usage

from shiny import App, ui
from htmltools import tags
from shiny_tail import tailwind

# Configure Tailwind with plugins
tailwind.configure(
    plugins=["typography"],
    config={"theme": {"extend": {"colors": {"custom-blue": "#1e40af"}}}}
)

# Create a UI with Tailwind classes
app_ui = tailwind.page(
    tags.h1("Hello Tailwind", class_="text-3xl font-bold text-custom-blue")
)

def server(input, output, session):
    pass

app = App(app_ui, server)

Requirements

  • Python >=3.7
  • shiny >=0.5.0
  • htmltools >=0.4.0

License MIT

Contributing

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -am 'Add my feature'
  4. Push to the branch: git push origin feature/my-feature
  5. Submit a pull request

Support For issues and feature requests, please use the issue tracker.

Metadata

Release files for shiny-tail 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shiny-tail 0.2.0
File Size Uploaded
shiny_tail-0.2.0.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for shiny-tail 0.2.0
File Interpreter ABI Platform
shiny_tail-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / shiny_tail-0.2.0.tar.gz

Download URL shiny_tail-0.2.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
585d8830e221ed0ddedb924e68c470171e281bb9a3b9f9d20d5433d63e11875d
BLAKE2b-256 checksum
How to use checksums
7ef995ed488c8a38b2e7f93d0dbcd56f99ecb87f3d1401fc70516d04bdcaeb04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / shiny_tail-0.2.0-py3-none-any.whl

Download URL shiny_tail-0.2.0-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80a058390ba59262687ff33ba22dfa8276f9d89c642203390c0ef4cb4a28ad13
BLAKE2b-256 checksum
How to use checksums
1b319b37c8123bed9aad0ac6495d5ad2f5a4437a76a78379cb6dbcba958a164f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page