Skip to main content

Analyze your network traffic with ease

Project description

Network Analyzer

Installation

Clone the repository and go to its root folder and run:

sudo pip install -e .

Run Server

Using PM2

To run JSON-RPC server over HTTP as well as Websocket:

pm2 start pm2.json

Using shell script

To run JSON-RPC server over http on port 5000:

sh scripts/serve_rpc.sh

To run RPC server over web socket (socket.io) on port 5050:

sh scripts/serve_socket.sh

Client

Python (2.7)

  1. Install JSON-RPC client tinyrpc by running:
sudo pip install tinyrpc
  1. Sample Python 2.7 client code to access JSON-RPC API
from tinyrpc.protocols.jsonrpc import JSONRPCProtocol
from tinyrpc.transports.http import HttpPostClientTransport
from tinyrpc import RPCClient

rpc_client = RPCClient(
    JSONRPCProtocol(),
    HttpPostClientTransport('http://localhost:5000/v1/jsonrpc')
)

rpc_server = rpc_client.get_proxy()

print "pinging..."
pong = rpc_server.ping()
print "ping response: " + pong
resp = rpc_server.hello("John")
print "hello world response: " + resp

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

network-analyzer-0.0.2.5.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

network_analyzer-0.0.2.5-py2-none-any.whl (6.6 kB view details)

Uploaded Python 2

File details

Details for the file network-analyzer-0.0.2.5.tar.gz.

File metadata

  • Download URL: network-analyzer-0.0.2.5.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.13

File hashes

Hashes for network-analyzer-0.0.2.5.tar.gz
Algorithm Hash digest
SHA256 cdb61f8389675ff35e036b1fffd609b316cca194bee9b586a1b7cfb657ed61c3
MD5 fa0b1cda2baed97d7dc74e82996b0a8c
BLAKE2b-256 baa0ea73f2717578314d7f7633e6125a9a3aaf3b885e101babdf1497884f9cbc

See more details on using hashes here.

File details

Details for the file network_analyzer-0.0.2.5-py2-none-any.whl.

File metadata

  • Download URL: network_analyzer-0.0.2.5-py2-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.13

File hashes

Hashes for network_analyzer-0.0.2.5-py2-none-any.whl
Algorithm Hash digest
SHA256 6c455aee847b7cfca4addae7f9e4027630e3698a22032422bbc6f083f84ebf96
MD5 054c5354f87a0edd41f9f982a75a196c
BLAKE2b-256 f2530df0921f62ff24b79c7bfe77bd8defeb94a7b9adc96247dcb1c2159a084c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page