Skip to main content

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

Metadata

Release files for configs-generator 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for configs-generator 0.0.7
File Size Uploaded Provenance Actions
configs_generator-0.0.7.tar.gz 10.1 kB Without provenance Details for configs_generator-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for configs-generator 0.0.7
File Interpreter ABI Platform Actions
configs_generator-0.0.7-py3-none-any.whl Python 3 none any Details for configs_generator-0.0.7-py3-none-any.whl

Total release size: 20.6 kB

Release files / configs_generator-0.0.7.tar.gz

Download URL configs_generator-0.0.7.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
98ea3dcbe2a8be2e7e303e7899b0c82cd559896e964aadf31a04f7ca9f4a1512
BLAKE2b-256 checksum
How to use checksums
f9e47a51bbecf94e701c0201d94f97ae34670d9c786f8eb2d4cef45d97217ae9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / configs_generator-0.0.7-py3-none-any.whl

Download URL configs_generator-0.0.7-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b750a44f7c5412e885ae1946f514455eb0878ef98fb744237e2847470c58bf62
BLAKE2b-256 checksum
How to use checksums
61016e8a03f1a35e33a15a779fa85e6654cbb1f0e1dbd3991d380209140c50da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Security for configs-generator 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page