Skip to main content

Configuration generation from Excel Facts File

Project description

Configuration Generation Tool

=========================== Mandatory Required packages

pandas, nettoolkit

For the documentation kindly refer to https://configs_generator.readthedocs.io

======== OPTION 1 ===========

import configs_generator as cg

db = "data.xlsx" template = "template.txt" output = "output.txt"

cfg = cg.ConfGen( template_file=template, output_file=output, db=db,

# ~~~~~~~~~~~~ OPTIONAL ARGUMENTS ~~~~~~~~~~~~
confGen_minimal=True,   # default False

# ~~~~~~~~~~~~ ADVANCE OPTIONAL ARGUMENTS FOR CUSTOMIZATION ~~~~~~~~~~~~
find_column_name="FIND",     # default
replace_column_name="REPLACE",   # default
condition_starter="GOAHEAD FOR",    # default
condition_stopper="GOAHEAD END",    # default
repeat_starter="REPEAT EACH",       # default
repeat_stopper="REPEAT STOP",       # default
nested_section_var_identifier="PARENT",     # default

) cfg.generate()

============ OPTION 2 ===========

usage: configs_generator [-h] [-i] [-t TEMPLATE_FILE] [-d DB] [-o OUTPUT_FILE] [-m] [-f FIND_COLUMN_NAME] [-r REPLACE_COLUMN_NAME] [-cs CONDITION_STARTER] [-ce CONDITION_STOPPER] [-rs REPEAT_STARTER] [-re REPEAT_STOPPER] [-nv NESTED_SECTION_VAR_IDENTIFIER]

Made for Networking Geeks

optional arguments: -h, --help show this help message and exit -i, -interactive run command interactive mode (default: False) -t TEMPLATE_FILE, -template TEMPLATE_FILE Template File (text file) (default: None) -d DB, -database DB Database File (Excel file) (default: None) -o OUTPUT_FILE, -output OUTPUT_FILE output File (text file) (default: None) -m, -minimal execution of var sheet replacement only.( default: False) (default: False) -f FIND_COLUMN_NAME, -find FIND_COLUMN_NAME FIND column headers from "var" tab: (default: FIND) -r REPLACE_COLUMN_NAME, -replace REPLACE_COLUMN_NAME REPLACe column headers from "var" tab: (default: REPLACE) -cs CONDITION_STARTER, -condition_start CONDITION_STARTER conditional block start identifier (default: GOAHEAD FOR) -ce CONDITION_STOPPER, -condition_end CONDITION_STOPPER conditional block end identifier (default: GOAHEAD END) -rs REPEAT_STARTER, -repeat_start REPEAT_STARTER repeat block start identifier (default: REPEAT EACH) -re REPEAT_STOPPER, -repeat_end REPEAT_STOPPER repeat block end identifier (default: REPEAT STOP) -nv NESTED_SECTION_VAR_IDENTIFIER, -nested_var NESTED_SECTION_VAR_IDENTIFIER nested section variable identifier string (default: PARENT)

And that's how you'd use the tool

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

configs_generator-0.0.7.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

configs_generator-0.0.7-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file configs_generator-0.0.7.tar.gz.

File metadata

  • Download URL: configs_generator-0.0.7.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for configs_generator-0.0.7.tar.gz
Algorithm Hash digest
SHA256 98ea3dcbe2a8be2e7e303e7899b0c82cd559896e964aadf31a04f7ca9f4a1512
MD5 e4c392d94e23c0c42a75f6846485e2f4
BLAKE2b-256 f9e47a51bbecf94e701c0201d94f97ae34670d9c786f8eb2d4cef45d97217ae9

See more details on using hashes here.

File details

Details for the file configs_generator-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for configs_generator-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b750a44f7c5412e885ae1946f514455eb0878ef98fb744237e2847470c58bf62
MD5 b1dcbeb8185087f1e899e6be5adda238
BLAKE2b-256 61016e8a03f1a35e33a15a779fa85e6654cbb1f0e1dbd3991d380209140c50da

See more details on using hashes here.

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