This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Please note: Django MStats is in early development and the API is very likely to change.

MStats is a super simple, re-usable, stateless Django app for visualizing and browsing statistics, mainly based on existing Django models.

My motivation for creating MStats is to have a dead simple way, with as little effort as possible, to get visualization of key metrics in different Django projects.

The goal of Django MStats is not to be the ultimate metrics/statistics solution™. It will not support different backends for different Metrics services and databases. MStats makes all queries in real-time, and does not store any permanent data itself, even though Django’s cache might be used.

In other words, Django MStats is a reusable app for those who want to get basic statistics browsing with minimum effort. Since MStats is stateless, it can easily be tested out, and thrown away in favor of something more advanced, if a project grow out of it.

What does M in Mstats stand for?

Model or Mini. Whichever you like best.

Requirements

Currently MStats depends on PostgreSQL, because it uses a Postgres specific SQL functions for retrieving stats.

Installation

  1. Install from PyPI:

    pip install django-mstats
    
  2. Add django_mstats to INSTALLED_APPS

  3. Add URL route to your urls.py:

    url(r"^mstats/", include("django_mstats.urls")),
    
  4. Create mstats.py file(s) in your Django apps (see below).

Defining different metrics

Once you have added django_mstats to your INSTALLED_APPS, you can create mstats.py files within your Django apps. In those files you should create classes that inherits from ModelStats. Below are some examples.

Statistics for newly registered users:

from django_mstats.models import ModelStats
from django.contrib.auth.models import User

class NewUsers(ModelStats):
    model = User
    datetime_field = "date_joined"

Specifying a name:

class NewUsers(ModelStats):
    model = User
    datetime_field = "date_joined"
    name = "User registrations"

Author

Django-MStats is developed by Jonatan Heyman.

License

BSD License

Release History

Release History

0.1.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-mstats-0.1.2.tar.gz (17.7 kB) Copy SHA256 Checksum SHA256 Source Jul 14, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting