Skip to main content

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

This version

1.0

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)

Uploaded Source

Built Distribution

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

lucide_flask-1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for lucide_flask-1.0.tar.gz
Algorithm Hash digest
SHA256 00464edbd016988eba0ca6db60638a6dafa1fb9e7cf46fa3e3b1de6139b0ede1
MD5 7c67c8488d73f740dee041995ffec203
BLAKE2b-256 9ecd6eb8d1d82720a4562654cef8ecb110ddff4283bf90f65003240f24e1be9a

See more details on using hashes here.

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

Hashes for lucide_flask-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fd5a965822507f33d1866a205e94e2a835a235f299cee44b1096a2f4aabcb9f
MD5 2f79b6c64b10bd8f0a5256f4bf610418
BLAKE2b-256 740e7ff30ea3538bca83c830c916d6dc96a3683063ac9dbb8acdf0b267912422

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