Skip to content

ajmalrasouli/python-pusher-traffic-monitor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a realtime traffic monitor using Python and Pusher

This is a demo application showing how to build a realtime website traffic monitor using Python and Pusher. You can read about how it was created on Pusher's blog.

Prerequisites

What things you need to install the software.

  • Git.
  • Python.
  • Pip.

Install

Clone the git repository on your computer

$ git clone https://github.com/neoighodaro/python-pusher-traffic-monitor

You can also download the entire repository as a zip file and unpack in on your computer if you do not have git.

After cloning the application, you need to install it's dependencies.

$ cd path/to/project
$ python3 -m venv .venv # activate virtual environment (you can use the other command too)
$ source .venv/bin/activate # windows has their own method
$ python dbsetup.py
$ pip install flask
$ pip install httpagentparser
$ pip install pusher
$ export FLASK_ENVIRONMENT=development # not necessary
$ flask run

You should see the application in action.

Built With

  • Pusher - Hosted APIs to build realtime apps with less code
  • Python - a programming language that lets you work quickly and integrate systems more effectively
  • Flask - a microframework for Python based on Werkzeug, Jinja 2 and good intentions

About

Create a traffic monitor using Pusher Channels and Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • HTML 40.8%
  • CSS 34.4%
  • Python 18.3%
  • JavaScript 6.5%