Skip to main content

Python API client for GNS3 network simulation tool

Project description

Python 3.9 License: MIT

gns3-client

gns3-client is a Python library that can be used to interact with a GNS3 server using its HTTP REST API. A GNS3 server manages emulators or hypervisors such as Dynamips, VirtualBox or Qemu/KVM.

Disclaimer

This library does not aim at explaining nor documenting in any way the GNS3 server API. Please check the GNS3 server official documentation for further information.

Getting Started

Tests provide a very good starting point.

Prerequisites

You'll need a GNS3 server appliance or virtual machine to use the library. Instructions on how to install a server appliance or virtual machine can be found on the GNS3 website.

Installing

pip install gns3-client

Running the tests

You'll need a GNS3 server appliance or virtual machine to test the library. Instructions on how to install a server appliance or virtual machine can be found on the GNS3 website.

Location of this test server is provided via these 2 environment variables:

Environment variable name Description Example
GNS3_SERVER_URL The URL of the GNS3 test server http://gns3.example.com:3080/v2

You then simply need to perform a python -v tests/.

Limitations

In this version, all CRUD operations of the following object types have been implemented:

  • projects
  • templates
  • nodes
  • links
  • drawings

Contributing

Please read CONTRIBUTING.md for details on our code of conduct.

Building

poetry build
poetry publish

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

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

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

gns3-client-0.1.0.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

gns3_client-0.1.0-py3-none-any.whl (10.2 kB view hashes)

Uploaded Python 3

Supported by

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