faicons 0.2.2


pip install faicons

  Latest version

Released: Jan 16, 2024


Meta
Author: Carson Sievert
Requires Python: >=3.8

Classifiers

Development Status
  • 2 - Pre-Alpha

Intended Audience
  • Developers

License
  • OSI Approved :: MIT License

Programming Language
  • Python
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11

Topic
  • Text Processing :: Markup :: HTML

Font Awesome for Shiny

An interface to Font-Awesome for use in Shiny for Python.

This package currently uses Font-Awesome 6.2.0.

Installation

pip install faicons

Usage

Use icon_svg() to get an <svg> representation of the icon.

from faicons import icon_svg
icon_svg("play")

Example usage in Shiny:

from shiny import ui
ui.input_action_button("btn", "Press me", icon=icon_svg("play")).show()

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
htmltools (>=0.1.4.9002)