use Execute_Read_Only_Mode function to read the output and generate facts
mandatory command output requires :
# Cisco
'sh run'
'sh lldp nei'
'sh int status'
# Juniper
'show configuration | no-more'
'show lldp neighbors | no-more'
'show interfaces descriptions | no-more'
=============================================
- USAGE GUIDELINES -
============================================= from facts_generator import FactsGen
OPTION 1 # single file with all outputs
datapath = "c:/Users/xxxx/Desktop/Data/" # path capture_file = datapath + "switch_op.log"
OPTION 2 # output distributed in mutliple files
conf = datapath + 'conf.log'
intf = datapath + "interfaces.log"
lldp = datapath + "lldp.log"
capture_file = {'config': conf, 'interfaces': intf, 'neighbour': lldp }
fg = FactsGen() fg.parse(capture_file)
custom processes on fg.facts to add/modify facts ## OPTIONAL
fg.process( # map_sheet=custom_map_excelsheet, # optional # customer_var=additional_customer_variables_dict, # optional ) fg.to_file(datapath)
Metadata
Release files for facts-generator 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| facts_generator-0.0.6.tar.gz | 16.7 kB | Without provenance | Details for facts_generator-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| facts_generator-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for facts_generator-0.0.6-py3-none-any.whl |
Total release size: 37.3 kB
Release files / facts_generator-0.0.6.tar.gz
| Download URL | facts_generator-0.0.6.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d5b504e4d6f0ef35d64bfbb79712161daade61ef18757db457523582eb5e775
|
|
BLAKE2b-256 checksum How to use checksums |
00f3fec811ee65d31e9c0bc9b03d6b8c35eef630907787e5d5ba05425f557085
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / facts_generator-0.0.6-py3-none-any.whl
| Download URL | facts_generator-0.0.6-py3-none-any.whl |
|---|---|
| Size | 20.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3235c61691172cfc5549b332bf00b9e798a5f925c5e4204ae4620b45e62c4bdf
|
|
BLAKE2b-256 checksum How to use checksums |
9457aaa82c09a235049dc3c9b992a9d73876d01eed1ab41932317a5bbe416836
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Security for facts-generator 0.0.6
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.