https://github.com/imshymike/flask-umami
An easy way to implement Umami into your Flask website
https://github.com/imshymike/flask-umami
flask flask-extension umami umami-analytics
Last synced: 6 months ago
JSON representation
An easy way to implement Umami into your Flask website
- Host: GitHub
- URL: https://github.com/imshymike/flask-umami
- Owner: ImShyMike
- License: agpl-3.0
- Created: 2025-03-23T22:46:34.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-23T23:47:51.000Z (7 months ago)
- Last Synced: 2025-03-31T12:18:56.534Z (6 months ago)
- Topics: flask, flask-extension, umami, umami-analytics
- Language: Python
- Homepage: https://pypi.org/project/Flask-Umami
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask-Umami
[pypi_url]: https://pypi.org/project/Flask-Umami
[](https://github.com/ImShyMike/Flask-Umami/blob/main/LICENSE)
[][pypi_url]
[][pypi_url]
[][pypi_url][Flask-Umami][pypi_url] is an extension for [Flask](https://flask.palletsprojects.com) that simplifies the integration of the web analytics platform [Umami](https://umami.is) into any Flask project.
## Quickstart
### Install
`pip install Flask-Umami`
### Minimal Example
```python
from flask import Flask
from flask_umami import Umamiapp = 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](https://github.com/ImShyMike/Flask-Umami/tree/main/examples) 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.