Giter Site home page Giter Site logo

windterm_bulk_session's Introduction

Windterm Session Converter

Converts a table containing IP, label, group, and icon separated by pipes (|) into Windterm session JSON format.

Introduction

This Python project aims to simplify the conversion of tabular data, typically found in pipe-separated files, into the JSON format required by Windterm session configurations.

Usage

  1. Prepare your input file containing the table with IP, label, group, and icon separated by pipes (|).

    Example input file (input.txt):

    |192.168.1.1|Server 1|Production| server-icon.png|
    |192.168.1.2|Server 2|Test| test-icon.png|
    
  2. Run the converter script, specifying the input file:

    python main.py input.txt
  3. The converted Windterm session JSON will be generated and printed to the console.

  4. You can then copy the JSON output and use it to configure your Windterm sessions.

Input Format

The input file should follow the format below:

|IP|Label|Group|Icon|
  • IP: The IP address of the server or device.
  • Label: A descriptive label for the session.
  • Group: The group or category the session belongs to.
  • Icon: The icon associated with the session.

Ensure that each field is separated by a pipe (|) character.

Example

Consider the following input file (input.txt):

|192.168.1.1|Server 1|Production|linux|
|192.168.1.2|Server 2|Test|centos|

Running the converter will produce the following JSON output:

[
    {
        "session.group": "Production",
        "session.icon": "linux",
        "session.label": "Server 1 - 192.168.1.1",
        "session.port": 22,
        "session.protocol": "SSH",
        "session.target": "192.168.1.1",
        "session.uuid": "sdfkjs33-e5f1-4909-b390-a4dda358305f"
    },
    {
        "session.group": "Test",
        "session.icon": "centos",
        "session.label": "Server 2 - 192.168.1.2",
        "session.port": 22,
        "session.protocol": "SSH",
        "session.target": "192.168.1.2",
        "session.uuid": "5sdf55pw-e5f1-4909-b390-a4dda358305f"
    }
]

License

This project is licensed under the MIT License - see the LICENSE file for details.

windterm_bulk_session's People

Contributors

mrbooshehri avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.