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.2.tar.gz (17.2 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.2-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: flask_umami-0.1.2.tar.gz
  • Upload date:
  • Size: 17.2 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.2.tar.gz
Algorithm Hash digest
SHA256 ef252eb4fe181abecd24c8fea9d71e1359b3565f05c3ba22c3a00bf3eb0e5715
MD5 1e5154fc8f52fe0ff57f192e134e19e7
BLAKE2b-256 70bb993d9582f473d2ed891065325de5781602ab222f7a787c368628c3c8c7ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: flask_umami-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d80349b470a6eac50470f5db2a99a634398a1c87f972d8d4b35bfedadd70bb5f
MD5 f778e4e95e6f068dbd1f90c3b70f4d03
BLAKE2b-256 1f926bef68849dd709134c992f98248c31606bddf6d71761a4d084b5c4b84f9b

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