Skip to main content

A tool to assist with TTP template building in a GUI, testing and execution

Project description

Visual TTP Assistant

Visual TTP Assistant is an all-in-one network automation and templating tool designed for network engineers, developers, and automation specialists. This tool simplifies the process of parsing network data, creating dynamic templates, running live commands on network devices, and generating executable scripts. With an integrated editor and terminal console, the tool enables users to modify and execute scripts in real-time, streamlining the entire workflow.

Purpose

Visual TTP Assistant addresses key challenges in network automation and management:

  • Template-driven Parsing: Automates the extraction and processing of network data using TTP (Text Template Parsing).
  • Live Device Interaction: Connects to network devices via SSH, runs commands, and processes the output in real-time.
  • Dynamic Code Generation: Automatically generates Python scripts based on user inputs and templates.
  • Real-time Code Execution: Provides an integrated development environment with Ace editor and an OS console where users can modify and run generated code.

Alpha

  • Ver 0.1.0 This code base is just getting started. Many things work, but need features, sometimes it breaks. Use with caution if you decide to try it out.

  • App Screenshot

Key Features

1. Template-Driven Parsing

  • Text Input and Parsing: Input raw network data (such as command outputs) and apply a TTP template to extract structured information.

  • Dynamic TTP Template Generation: Easily create TTP templates to extract key details from unstructured network data.

  • Real-Time JSON Results: View the parsed JSON results instantly after applying a template.

  • App Screenshot

  • App Screenshot

2. SSH Command Execution

  • Run Commands on Devices: Execute SSH commands directly on network devices from within the tool. This is integrated with TTP, allowing you to process the live data using templates.
  • Command History: Auto-populates command fields with previous inputs, saving time for repeated tasks.
  • Asynchronous Execution: A separate SSH thread ensures that long-running commands don't block the UI.

3. Dynamic Code Generation and Execution

  • Code Generation: Automatically generate Python code based on user input, SSH commands, and templates.
  • Ace Editor with OS Console: The tool comes with an Ace editor that not only highlights code but also allows users to run the generated scripts in real-time through an integrated OS console (PowerShell, batch, Python, etc.).
  • Fully Functional OS Terminal: The editor includes a fully operational terminal where you can execute scripts instantly without leaving the environment.
  • Real-time Feedback: See the output of your code directly in the terminal pane.

4. Integrated Editor and Terminal

  • Ace-based Editor: Edit your Python scripts or other code in the Ace editor, with features like syntax highlighting, autocompletion, and keyboard shortcuts.
  • OS Console: Directly execute the scripts written in the Ace editor. It supports Python, batch, and PowerShell commands.
  • Save and Load Files: The built-in file menu allows users to save and open scripts, making it easy to resume work later.
  • App Screenshot

Workflow

Step 1: Input Network Data and Template

  • Input raw network command output in the Text Source area.
  • Create or load a TTP template to structure and extract relevant data.
  • The JSON Result panel immediately displays the parsed output after applying the TTP template.

Step 2: Execute SSH Commands

  • Use the SSH Runner to connect to a network device and run custom commands.
  • The output from the device can be processed using the TTP template in real-time.
  • Code Generation: Automatically generate Python scripts that execute the same SSH commands.

Step 3: Modify and Run Generated Code

  • The generated code is displayed in the Ace Editor, where you can edit or modify it as needed.
  • Run the script directly from the Ace editor via the integrated OS console.
  • View live results in the terminal pane below the editor.

Step 4: Save or Load Work

  • Save your session, including the template, input data, and results, for future use.
  • Load previously saved sessions and templates to continue working without starting from scratch.

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

ttp_assistant-0.1.0.tar.gz (11.2 MB view details)

Uploaded Source

Built Distribution

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

ttp_assistant-0.1.0-py3-none-any.whl (11.6 MB view details)

Uploaded Python 3

File details

Details for the file ttp_assistant-0.1.0.tar.gz.

File metadata

  • Download URL: ttp_assistant-0.1.0.tar.gz
  • Upload date:
  • Size: 11.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.13

File hashes

Hashes for ttp_assistant-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b75ef4d5adfa98d5c2df4582deac2eb473963edb230466c7225f0d76bd5c2d9
MD5 89ec0c73ac8689933c6e8188c9bbe39e
BLAKE2b-256 25b93081a125ca01a3d19f1f3b43bf6cf50cead4f48f85a1a6a718ba1f8409b8

See more details on using hashes here.

File details

Details for the file ttp_assistant-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ttp_assistant-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.13

File hashes

Hashes for ttp_assistant-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 04175750cfd5c817fafa49e6dd58dd0afba7e4644e97fb6839383a67a3466fb4
MD5 c22deaf6e72ee7eb1b0ca6a6569030fb
BLAKE2b-256 30d3ec28d0e23eb8283677eeeae7ed32a868891a4cb1e2466563e331ca28eb31

See more details on using hashes here.

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