Skip to main content

Font-Awesome-Flask

PyPI Supported Python Versions CI Test Documentation Status

Font-Awesome-Flask is an extension for Flask that adds support for Font Awesome to your web application. It adds methods to load Font Awesome's resources (both Web Fonts + CSS and SVG + JS are supported) and render icons.

Installation

Font-Awesome-Flask is available on PyPI. Install with uv or your package manager of choice:

uv add font-awesome-flask

Documentation

Check out the Font-Awesome-Flask documentation for the User's Guide and API Reference.

Usage

Configuration

Font-Awesome-Flask can be configured via the Flask configuration API, using the config attribute of the Flask object. These are the available configuration values along with their description:

Configuration value Default Description
FONT_AWESOME_SERVE_LOCAL False Whether to serve Font Awesome's resources locally or from the CDN.

Initialization

Initialize the extension with the Flask application normally...:

from flask import Flask
from flask_font_awesome import FontAwesome

app = Flask(__name__)
font_awesome = FontAwesome(app)

... or using the Application Factory pattern:

from flask import Flask
from flask_font_awesome import FontAwesome

font_awesome = FontAwesome()


def create_app():
    app = Flask(__name__)
    font_awesome.init_app(app)
    return app

Loading resources

Font-Awesome-Flask provides three helper methods to load Font Awesome's resources: font_awesome.load(), font_awesome.load_js() and font_awesome.load_css().

Font Awesome can be used either via Web Fonts + CSS or via SVG + JS. Use the load_css() method for the former, and load_js() for the latter. You can also use the more general load(), which defaults to SVG + JS.

Whichever resource(s) you end up using, you can load them by including any of the load() methods in the head of your base template:

<head>
    ...
    {{ font_awesome.load_js() }}
    ...
</head>
<body>
    ...
</body>

Rendering icons

Font-Awesome-Flask provides two ways of rendering icons: via the font_awesome.render_icon() and font_awesome.render_stacked_icons() methods...:

{{font_awesome.render_icon("fas fa-house")}}
{{font_awesome.render_stacked_icons("fas fa-square", "fas fa-house")}}

... or via the Jinja macros of the same names:

{% from 'font_awesome.html' import render_icon, render_stacked_icons %}
{{ render_icon('fas fa-house') }}
{{ render_stacked_icons('fas fa-square', 'fasfa-house') }}

Metadata

Release files for font-awesome-flask 2026.1.7.3.1

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

Source distribution (sdist)

Source distribution for font-awesome-flask 2026.1.7.3.1
File Size Uploaded Provenance Actions
font_awesome_flask-2026.1.7.3.1.tar.gz 581.9 kB Without provenance Details for font_awesome_flask-2026.1.7.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for font-awesome-flask 2026.1.7.3.1
File Interpreter ABI Platform Actions
font_awesome_flask-2026.1.7.3.1-py3-none-any.whl Python 3 none any Details for font_awesome_flask-2026.1.7.3.1-py3-none-any.whl

Total release size: 1.2 MB

Release files / font_awesome_flask-2026.1.7.3.1.tar.gz

Download URL font_awesome_flask-2026.1.7.3.1.tar.gz
Size 581.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d474e3e87675f81d1e52c562a5fd7c3aae7f839d82046887b479a6e06ba23cfc
BLAKE2b-256 checksum
How to use checksums
f1bd0f77182aba1c7826ef1024e595f2c378b1d2ee08cedf1c6f414de6919e12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / font_awesome_flask-2026.1.7.3.1-py3-none-any.whl

Download URL font_awesome_flask-2026.1.7.3.1-py3-none-any.whl
Size 581.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3bc73d2ab5a7f76d065a84a5e4b366c3aeec3e0ae80962ef82ac8f39197f9db4
BLAKE2b-256 checksum
How to use checksums
c2ca7cbaba65587346dfcde845d14cb43779125177097f0e5474c4738ef03823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for font-awesome-flask 2026.1.7.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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