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 the source repository: https://github.com/fortinetps/pyfgtconflib 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 in configuration, it will be a little safer to share the new configuration file without password.
For additional usages/demos/tools, please check this GitHub repo site: https://github.com/fortinetps/FortiGateConfigTools
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfgtconflib-0.0.1.tar.gz.
File metadata
- Download URL: pyfgtconflib-0.0.1.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2c32c999811dd291fa24810ae6f5d79e471f627fc9aa996f38d724c51a67c7d
|
|
| MD5 |
0825c8f278945b63cba2a00b0728b349
|
|
| BLAKE2b-256 |
172ca85e905e62807fc3ecadb713ed46a0aaa5e830cc83d9e9258b8c4c477e5c
|
File details
Details for the file pyfgtconflib-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pyfgtconflib-0.0.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64b8e57a7eceeb7bba3a195c9aaa963a56168d06c595cc978dfb12310c26a1f2
|
|
| MD5 |
d1bc1d78bf4fdcea907d299b3099079e
|
|
| BLAKE2b-256 |
7a8280df50803a1e1b4b3d8e2c5dbb08027bf3d0b3da4be826f0e8d23202271c
|