Skip to main content

Python FortiGate Config Library

Project description

pyfgtconflib

Author :

Don Yao

Description :

A simple and tiny FortiGate Configuration file parser. It takes FortiGate Configuration as input, and output as python defaultdict. The core parsing fuctions implemented in less than 100 lines of code.

Install :

pip install pyfgtconflib

Usage :

In pyfgtconflib source repository.

A demo script called import_export.py in tests folder. This script open a FortiGate configuration file, parses configuration file into python dictionary, and print the dictionary out with nicely formatted text. You can redirect the output to a file, to compare the original input FortiGate configuration file, so you could verify the config paring (import) and config dictionary printing out (export) works.

A demo script called remove_password.py in tests folder. This script open a FortiGate configuration file, parses configuration file into python dictionary, when printing the dictionary out, it removes/strips all (encrypted) passwords, private-key, and certificate in configuration, it will be a little safer to share the configuration file without these information.

For additional usages/demos/tools, please check this GitHub repo site: https://github.com/fortinetps/FortiGateConfigTools

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

pyfgtconflib-0.0.2.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

pyfgtconflib-0.0.2-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file pyfgtconflib-0.0.2.tar.gz.

File metadata

  • Download URL: pyfgtconflib-0.0.2.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for pyfgtconflib-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3bc4186d2a6abe94d1397b8d83b836ef6d6cdd390025a2440d74cfa1ebeb42c4
MD5 d94b8b6539b79ff7d2ca9b3369c7bfeb
BLAKE2b-256 cff95be85eb0eb8de0bffa719f5446cb8790bc9667cdcb28ade1ebf88e370099

See more details on using hashes here.

File details

Details for the file pyfgtconflib-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyfgtconflib-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.13

File hashes

Hashes for pyfgtconflib-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b8150b453f91e8ac1164d69f72db1d9d90e437b88a64cd617b12ab2b9aa8ad2b
MD5 9f196c78b2ce20c51a92fcbd8d0c99ce
BLAKE2b-256 0bac8ba079ea0f83492088cb521dba017ccb68b1c4c4d492614701adf377144c

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