Discover contiguous network inventory
Discover all types of connected network equipment using CDP neighbor information.
Installation
Install package using pip
pip install cisco-discovery
Run Locally
Clone the project
git clone https://github.com/tkdebnath/cisco_discovery.git
Go to the project directory
cd cisco_discovery
Install dependencies
pip install -r requirements.txt
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
NETMIKO_USERNAME="<username>"
NETMIKO_PASSWORD="<password>"
Usage/Examples
from cisco_discovery import runner
if __name__=='__main__':
host = input("Enter any IP of cisco router or switch")
# preference of passed username and password argument is higher than env variable
obj_discovery = runner(host=host, threads=10, username="username", password="password", env=".env")
"""
default value for directory= "output"
default value for file_name= datetime.now().strftime(r"%d_%m_%Y__%I-%M_%p")
"""
# Generate CSV file for nodes and edges
obj_discovery.to_csv_nodes(directory="output", file_name= "file_name")
obj_discovery.to_csv_edges(directory="output", file_name= "file_name")
# Generate Excel file for nodes and edges
obj_discovery.to_excel_nodes(directory="output", file_name= "file_name")
obj_discovery.to_excel_edges(directory="output", file_name= "file_name")
# Generate CSV for nodes and edges at once
obj_discovery.to_csv(directory="output", file_name= "file_name")
# Generate CSV for nodes and edges at once
obj_discovery.to_excel(directory="output", file_name= "file_name")
# Generate draw_io xml for nodes and edges
obj_discovery.to_draw_io(directory="output", file_name= "file_name")
Authors
Metadata
Release files for cisco-discovery 1.1
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 |
|---|---|---|---|---|
| cisco_discovery-1.1.tar.gz | 23.4 kB | Without provenance | Details for cisco_discovery-1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cisco_discovery-1.1-py3-none-any.whl | Python 3 | none | any | Details for cisco_discovery-1.1-py3-none-any.whl |
Total release size: 49.1 kB
Release files / cisco_discovery-1.1.tar.gz
| Download URL | cisco_discovery-1.1.tar.gz |
|---|---|
| Size | 23.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e44123d350e1e554253ba1d4639ebe023219849321386eb978c5d310afa25bd
|
|
BLAKE2b-256 checksum How to use checksums |
83fcc761de8a975b7d7f0e42e647b3a930bd30b83d8e23bf7603db2c844993bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / cisco_discovery-1.1-py3-none-any.whl
| Download URL | cisco_discovery-1.1-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c504c49ff523d7bc758bdb49d15f881cd3f8a9a6b41a05c8c08becfff2e6d3c6
|
|
BLAKE2b-256 checksum How to use checksums |
9ecd80b46f13ef110f5c1e25cba50cc2dbd45fb005d68b5b955ecd1e17a27e3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for cisco-discovery 1.1
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.