Punkweb Insight
Punkweb Insight is a Django application that provides visitor and page view tracking and an analytics dashboard for your Django website.
Built with
Requirements
- Python 3.9+
- Django 4.0+
It may work with older versions of Python and Django, but it has not been tested.
Installation
pip install punkweb-insight
Add insight to your INSTALLED_APPS in your Django settings module:
INSTALLED_APPS = [
...
"insight",
]
Add the following middleware to your MIDDLEWARE in your Django settings module, directly after SessionMiddleware:
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"insight.middleware.InsightMiddleware", # Directly after SessionMiddleware
]
Add the following URL pattern to your urls.py:
from django.urls import path, include
urlpatterns = [
...
path("insight/", include("insight.urls")), # or any other path you want
]
And finally, install the models:
python manage.py migrate
Configuration
These are the default settings for Punkweb Insight, which can be overridden in your Django settings module:
INSIGHT = {}
Testing
Report:
coverage run && coverage report
HTML:
coverage run && coverage html
Metadata
Release files for punkweb-insight 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| punkweb_insight-0.1.1.tar.gz | 36.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| punkweb_insight-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 130.6 kB
Release files / punkweb_insight-0.1.1.tar.gz
| Download URL | punkweb_insight-0.1.1.tar.gz |
|---|---|
| Size | 36.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d11c6e34427994aaa2082362fc930a332c254f867f66cc8a1d504eec67ca18e
|
|
BLAKE2b-256 checksum How to use checksums |
5124a89702e000ad5447459c9207b616854aaa07580bf83aedf3bd3a31e42597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Release files / punkweb_insight-0.1.1-py3-none-any.whl
| Download URL | punkweb_insight-0.1.1-py3-none-any.whl |
|---|---|
| Size | 94.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7331136595d07fa91b426fdea37af1fe31f44061d02a940f3eb3e395f9e035f4
|
|
BLAKE2b-256 checksum How to use checksums |
422a1d541b6f99afe7928a6e7de66604f959017f4e357a0a99ba4ef8ffa7c94b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.2
|
Security for punkweb-insight 0.1.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.