Skip to main content

Tool for creating graphs of routes

Project description

route-graph

CLI tool for creating graphs of routes.

This tool simply wraps the example of TCP traceroute which is mentioned in the scapy documentation.

# scapy
>>> res, unans = traceroute(["target"], dport=[22, 80, 443], maxttl=20, retry=-2)
>>> res.graph(target="> target.svg")

Requirements

You will need graphviz to be installed. If graphviz is not available on your system the graph can not be created.

route-graph has to be executed with sudo.

Installation

The package is available in the Python Package Index.

$ pip3 install route-graph --user

To get the lastest state:

$ pip install git+https://github.com/audiusGmbH/route-graph.git

For Nix or NixOS users is a package available in Nixpkgs. Keep in mind that the lastest releases might only be present in the unstable channel.

$ nix-env -iA nixos.route-graph

Usage

$ sudo ./route-graph --help
                                                                                                                       
 Usage: route-graph [OPTIONS] COMMAND [ARGS]...                                                                        
                                                                                                                       
 Tool to draw a graph of traceroute results.                                                                           
                                                                                                                       
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion          Install completion for the current shell.                                             │
│ --show-completion             Show completion for the current shell, to copy it or customize the installation.      │
│ --help                        Show this message and exit.                                                           │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ graph           Create a graph from traceroute results.                                                             │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

The graph could then be found in the current directory. The format is svg.

License

route-graph is licensed under MIT, for more details check the LICENSE file.

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

route_graph-0.4.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

route_graph-0.4.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file route_graph-0.4.0.tar.gz.

File metadata

  • Download URL: route_graph-0.4.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for route_graph-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4c9a8e0bce1623eb0b36886a7e88a745f078dcd5206dffbbca0ef6e63635c369
MD5 76526430754d79bb56dc4b84e5a0e42d
BLAKE2b-256 8df741da048d235d39df603ba6f8ca375536cd6df50f26210cd951120afb07e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for route_graph-0.4.0.tar.gz:

Publisher: publish-to-pypi.yml on audius/route-graph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file route_graph-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: route_graph-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for route_graph-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 845ab7e307f8c0bb081a683bbba6bed724151fce1e774ea653caa02dd5f6dff1
MD5 46f7df0ecfcfb34c73c11005b4c91247
BLAKE2b-256 ae021d9d3ee8ac55c4ae9220a8d9fc331e86c961a83b3518b172e380d87e11a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for route_graph-0.4.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on audius/route-graph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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