A lucide icon extension for Flask.
Project description
Lucide Flask
A lucide icon extension for Flask
Installation
pip install -U lucide-flask
Basic Usage
from flask import Flask, render_template
from lucide_flask import Lucide # Import the Lucide class
app = Flask(__name__)
icons = Lucide() # Create a Lucide instance
@app.route("/", methods=["GET"])
def index():
# Pass icons to templates for easy access
return render_template("index.html", icons=icons)
app.run(debug=True)
Simple access
<!-- Render the "smile" icon inline -->
<h1>{{ icons["smile"] }} Hello, World!</h1>
Existence check
<button>
<!-- You can safely check whether an icon exists before rendering it: -->
{{% if "heart" in icons %}}
{{ icons["heart"] }}
{{% else %}}
<span>❤️</span>
</button>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lucide_flask-1.0.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lucide_flask-1.0.tar.gz.
File metadata
- Download URL: lucide_flask-1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00464edbd016988eba0ca6db60638a6dafa1fb9e7cf46fa3e3b1de6139b0ede1
|
|
| MD5 |
7c67c8488d73f740dee041995ffec203
|
|
| BLAKE2b-256 |
9ecd6eb8d1d82720a4562654cef8ecb110ddff4283bf90f65003240f24e1be9a
|
File details
Details for the file lucide_flask-1.0-py3-none-any.whl.
File metadata
- Download URL: lucide_flask-1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fd5a965822507f33d1866a205e94e2a835a235f299cee44b1096a2f4aabcb9f
|
|
| MD5 |
2f79b6c64b10bd8f0a5256f4bf610418
|
|
| BLAKE2b-256 |
740e7ff30ea3538bca83c830c916d6dc96a3683063ac9dbb8acdf0b267912422
|