Skip to main content

An easy to use Flask extension for Umami analytics

Project description

Flask-Umami

License PyPI Python Version PyPI - Wheel

Flask-Umami is an extension for Flask that simplifies the integration of the web analytics platform Umami into any Flask project.

Quickstart

Install

pip install Flask-Umami

Minimal Example

from flask import Flask
from flask_umami import Umami

app = Flask(__name__)
umami = Umami(
    app,
    umami_url="https://umami.example.com",
    umami_id="website-umami-id",
)


@app.route("/")
def home():
    return "Hello, World!"

if __name__ == "__main__":
    app.run()

(Check out the examples folder for a more in-depth example)

Disclaimer

Flask-Umami is not affiliated with Umami in any way. It simply provides a simple way to integrate Umami's HTML snippet into websites developed using Flask.

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_umami-0.1.1.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

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

flask_umami-0.1.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file flask_umami-0.1.1.tar.gz.

File metadata

  • Download URL: flask_umami-0.1.1.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for flask_umami-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fc21cf66c3f1299fae4644e7d1b0ee44945129782fa8acbfb1d9467f8a60f6a0
MD5 1f08e2175827a359b5ad7ce591e6aec1
BLAKE2b-256 15f00ec9c1b7d9815d1a385940e09d6ca6a2ab1d4e090680617ea080cbe559b6

See more details on using hashes here.

File details

Details for the file flask_umami-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: flask_umami-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for flask_umami-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21030e8b581b3df29891155c76d1344dac378fa552d36f56d703c1cf056fd65c
MD5 a2d528a3663c6d009b1ea53fd9631c42
BLAKE2b-256 15f5c9617a703debb0e741c17b82268b0d5ae52f6c19ef389161fb56846e59d7

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