netscud
netscud is an SSH and Telnet python library for network devices (mainly network switches and routers). It uses async techniques to speed up concurrent connections.
As an overview here is an example of netscud code for a Cisco IOS device:
# Python library import
import asyncio, netscud
async def main():
# Device parameters
my_device = {
"ip": "192.168.0.16",
"username": "cisco",
"password": "cisco",
"device_type": "cisco_ios",
}
# Creation of a device
async with netscud.ConnectDevice(**my_device) as sw1:
# Sending command
output = await sw1.send_command("show interfaces description")
# Display message
print(output)
# Main function call
if __name__ == "__main__":
# Main async loop
asyncio.run(main())
The result of this script is:
c:\>script.py
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.0.16 YES NVRAM up up
FastEthernet0/1 unassigned YES manual up up
FastEthernet1/0 unassigned YES manual administratively down down
FastEthernet1/1 unassigned YES DHCP up up
Ethernet2/0 unassigned YES DHCP up up
Ethernet2/1 unassigned YES NVRAM up up
Ethernet2/2 unassigned YES NVRAM up up
Ethernet2/3 unassigned YES NVRAM up up
c:\>
Documentation can be found here: https://netscud.readthedocs.io/en/latest/
Metadata
Release files for netscud 1.1.0
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 |
|---|---|---|---|---|
| netscud-1.1.0.tar.gz | 51.5 kB | Without provenance | Details for netscud-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netscud-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for netscud-1.1.0-py3-none-any.whl |
Total release size: 74.6 kB
Release files / netscud-1.1.0.tar.gz
| Download URL | netscud-1.1.0.tar.gz |
|---|---|
| Size | 51.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5e6a45dcd875af61606ac9e8085ba15764db9e062618fccb774576ffa13165a
|
|
BLAKE2b-256 checksum How to use checksums |
616ea8a4da014cd54792b09c9ad6a1643adffcc8fb8de2200321261620ed31b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.3 CPython/3.8.2 Windows/10
|
Release files / netscud-1.1.0-py3-none-any.whl
| Download URL | netscud-1.1.0-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79dd452c2c58c810528afa05b037994f2a1b85e0d4d34c3b7006c86dad7bc86b
|
|
BLAKE2b-256 checksum How to use checksums |
c523f94571bd2f4c299f78aa36f656ad00b11f4ca4b463d5f2fbb9621f6b6c6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.3 CPython/3.8.2 Windows/10
|
Security for netscud 1.1.0
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.