Skip to main content

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

Metadata

Release files for network-analyzer 0.0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for network-analyzer 0.0.2.5
File Size Uploaded
network-analyzer-0.0.2.5.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for network-analyzer 0.0.2.5
File Interpreter ABI Platform
network_analyzer-0.0.2.5-py2-none-any.whl Python 2 none any Details

Total release size: 17.2 kB

Release files / network-analyzer-0.0.2.5.tar.gz

Download URL network-analyzer-0.0.2.5.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cdb61f8389675ff35e036b1fffd609b316cca194bee9b586a1b7cfb657ed61c3
BLAKE2b-256 checksum
How to use checksums
baa0ea73f2717578314d7f7633e6125a9a3aaf3b885e101babdf1497884f9cbc
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / network_analyzer-0.0.2.5-py2-none-any.whl

Download URL network_analyzer-0.0.2.5-py2-none-any.whl
Size 6.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
6c455aee847b7cfca4addae7f9e4027630e3698a22032422bbc6f083f84ebf96
BLAKE2b-256 checksum
How to use checksums
f2530df0921f62ff24b79c7bfe77bd8defeb94a7b9adc96247dcb1c2159a084c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.2.5 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page