pyheroicons
pyheroicons
is a Python library that offers a convenient interface to the Tailwind CSS Heroicons icon set. This library allows developers to easily integrate Heroicons into Python-based web frameworks such as Django, Flask, or FastAPI by generating SVG icon template strings.
To install pyheroicons
, simply use pip:
pip install pyheroicons
Import heroicon
function from pyheroicons
and use it to generate icon templates:
from pyheroicons import heroicon
heroicon
APIicon_svg = heroicon(name="academic-cap", variant="outline", cls="icon-class", strokewidth="2")
print(icon_svg)
pyheroicons
aims to stay up-to-date with the Heroicons library. When a new version of Heroicons is released, pyheroicons
will also release a corresponding version to ensure compatibility.
pyheroicons Version | Heroicons Version |
---|---|
1.2.0 | 2.1.5 |
Contributions to pyheroicons
are welcomed!
pyheroicons
is released under the MIT License.