Skip to main content

A cli util based arround the GN3v3 api

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

GNS3 API Util

surely a temporary logo

Python Version GitHub Issues or Pull Requests by label language count repo size GitHub License

A command-line utility for interacting with the GNS3 API. This tool streamlines common API operations—such as authentication, GET, POST, PUT, and DELETE requests—against a GNS3 server, making it easier to integrate and automate tasks in your network emulation environments.

Installation

  1. Clone the Repository

    git clone https://github.com/Stefanistkuhl/gns3-api-util.git
    cd gns3-api-util
    
  2. Install Dependencies

    Use a virtual environment. Then install the project along with its dependencies:

    python -m venv venv
    source venv/bin/activate
    pip install -e .
    

    This will install the required packages:

    Additionally fzf can be be installed for enhanced interactive selections.

Usage

After installing, the utility can be executed directly from the command line using the entry point gns3util.

Running the CLI

At a minimum, provide the --server (or -s) option with the URL of your GNS3 server:

gns3util --server http://<GNS3_SERVER_ADDRESS>

Commands

The CLI supports several subcommands to interact with the GNS3 API:

  • auth: Manage authentication.
  • get: Perform GET requests.
  • post: Perform POST requests.
  • put: Perform PUT requests.
  • delete: Perform DELETE requests.

For example, to run an authentication command:

gns3util auth --server http://localhost:3080 [additional-options]

Replace [additional-options] with any parameters required by the subcommand.

Help

You can view the help text by using the --help option:

gns3util --help

This will display usage information and options for each command.

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

gns3util-0.6.4.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

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

gns3util-0.6.4-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file gns3util-0.6.4.tar.gz.

File metadata

  • Download URL: gns3util-0.6.4.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for gns3util-0.6.4.tar.gz
Algorithm Hash digest
SHA256 92e8e5c0d27b73755f891c777a0acc981c5262a5ee914893cca6baff21d77eda
MD5 e045994c3b475048a687a5ccfd42f6fe
BLAKE2b-256 dc369d980bd2a45ff35368d2fdf68471f0d32437486dd80aabd3cb767517a07e

See more details on using hashes here.

File details

Details for the file gns3util-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: gns3util-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for gns3util-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5b18cfede08b57e7caa9d240f6ea27e8381a6938cdc904f4d3fae8c51d2d7a19
MD5 9bf73741ab685f87557f1cc67c821aa8
BLAKE2b-256 e0cda7080ff8d6a434cded54bba824f684bd4dbad0808e1b343180a77035da61

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