Skip to main content

a package to use sweetalert2 in flask

Project description

flask-sweetalert2

a package to use sweetalert2 in flask

installation

pip install flask_sweetalert2

usage

from flask_sweetalert2 import Sweetalert2

c = Sweetalert2()
c.init_app(app)
# or
# Sweetalert2(app)

# in templates to include css file
{{ sweetalert2.get_path("css") }}

# in templates to include js file
{{ sweetalert2.get_path("js") }}
{{ sweetalert2.get_path("helpers", "js") }}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_sweetalert2-11.23.0.20250916.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.

flask_sweetalert2-11.23.0.20250916-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file flask_sweetalert2-11.23.0.20250916.tar.gz.

File metadata

File hashes

Hashes for flask_sweetalert2-11.23.0.20250916.tar.gz
Algorithm Hash digest
SHA256 99cad9fc45f30c74473bfbcb236c9b12182acdafe8fb55564b6068804723cdab
MD5 6b360a43cd77682b6314a113f66639ae
BLAKE2b-256 1c7de1a7afcf887a52ed1217932b9257fa8a3ebe6f080af035d0f525fbeef035

See more details on using hashes here.

File details

Details for the file flask_sweetalert2-11.23.0.20250916-py3-none-any.whl.

File metadata

File hashes

Hashes for flask_sweetalert2-11.23.0.20250916-py3-none-any.whl
Algorithm Hash digest
SHA256 aac0482edce0b63ce853ec353c3269edd905313f1cf7183028e5b1375af1e3dd
MD5 853d459211ac395f615327e482aaab12
BLAKE2b-256 10e9558d4e3ccc4d6c0ca82eafde9cbf0b915c34212babe19461f12e085d76ec

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