Saravanan666/pypi-org huggingface dataset:
Package: network3-medusa
network3_medusaA Network3 approach to putting NXOS state and configuration data onto Hedera's DLTSetting up guestshellEnable guestshellswitch# guestshell enableWait until the guestshell becomes activeResize guestshell diskspaceswitch# conf tswitch(config)# guestshell resize rootfs 2000switch(config)# guestshell resize memory 2688switch(config)# guesthshell rebootUpdate DNS[cisco@guestshell ~] $sudovi/etc/resolv.confnameserver <dns server IP address>domain <domain that matches NX-OS configured domain>Install Python 3.8[cisco@guestshell ~] $sudoyum-yinstallepel-release[cisco@guestshell ~] $sudoyum-yupdate[cisco@guestshell ~] $sudoyum-ygroupinstall"Development Tools"[cisco@guestshell ~] $sudoyum-yinstallopenssl-develbzip2-devellibffi-develxz-develConfirm GCC[cisco@guestshell ~] $gcc--versiongcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)Install Python 3.8.12[cisco@guestshell ~] $sudoyum-yinstallwget[cisco@guestshell ~] $wgethttps://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz[cisco@guestshell ~] $tarxvfPython-3.8.12.tgz[cisco@guestshell ~] $cdPython-3.8*/[cisco@guestshell ~] $./configure--enable-optimizations[cisco@guestshell ~] $sudomakealtinstallConfirm install[cisco@guestshell ~]$python3.8--versionPython 3.8.12[cisco@guestshell ~] $rm-rfPython-3.8*/[cisco@guestshell ~] $rmPython-3.8.12.tgzAdd Python to the PathCleanup[cisco@guestshell ~] $ rm -rf Python-3.8.12
[cisco@guestshell ~] $ rm Python-3.8.12.tgzUpgrade pip[cisco@guestshell ~] $/usr/bin/python-mpipinstall--upgradepipInstall Java JDK[cisco@guestshell ~] $curlhttps://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.rpm--outputjdk-18_linux-x64_bin.rpm[cisco@guestshell ~] $sudorpm-Uvhjdk-18_linux-x64_bin.rpm[cisco@guestshell ~] $cat<<EOF|sudotee/etc/profile.d/jdk18.shexport JAVA_HOME=/usr/java/defaultexport PATH=\$PATH:\$JAVA_HOME/binEOF[cisco@guestshell ~] $source/etc/profile.d/jdk18.sh[cisco@guestshell ~] $rmjdk-18_linux-x64_bin.rpmVerify Java[cisco@guestshell ~] $java-versionjava version "18.0.1.1" 2022-04-22Java(TM) SE Runtime Environment (build 18.0.1.1+2-6)Java HotSpot(TM) 64-Bit Server VM (build 18.0.1.1+2-6, mixed mode, sharing)Setup Network3 MedusaInstall Network3_Medusapip install the package[cisco@guestshell ~] $python3.8-mpipinstallnetwork3_medusasetup call_clid.py!```console
[cisco@guestshell ~] $ sudo vi call_clid.py
import sys
from cli import *if sys.argv[1] == "show running-config":
output = cli("show running-config")
else:
output = clid(sys.argv[1])
print(output):wq## Configure Network3 Medusa
### Configure Java
```console
[cisco@guestshell ~] $ OPERATOR_ID={ Hedera account id }
[cisco@guestshell ~] $ OPERATOR_PRIVATE_KEY={ Hedera private key }(Optional)Export your Webex Room and Webex token to send alerts to Webex when Network3 Medusa writes data to Hedera
export WEBEX_ROOM="Webex room id"
export WEBEX_TOKEN="Webex token id"
Package: network3-perseus
perseusNetwork Device Configuration from Hedera Hashgraph IntentSetting up guestshellEnable guestshellswitch# guestshell enableWait until the guestshell becomes activeResize guestshell diskspaceswitch# conf tswitch(config)# guestshell resize rootfs 2000switch(config)# guestshell resize memory 2688switch(config)# guesthshell rebootUpdate DNS[cisco@guestshell ~] $sudovi/etc/resolv.confnameserver <dns server IP address>domain <domain that matches NX-OS configured domain>Install Python 3.8[cisco@guestshell ~] $sudoyum-yinstallepel-release[cisco@guestshell ~] $sudoyum-yupdate[cisco@guestshell ~] $sudoyum-ygroupinstall"Development Tools"[cisco@guestshell ~] $sudoyum-yinstallopenssl-develbzip2-devellibffi-develxz-develConfirm GCC[cisco@guestshell ~] $gcc--versiongcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)Install Python 3.8.12[cisco@guestshell ~] $sudoyum-yinstallwget[cisco@guestshell ~] $wgethttps://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz[cisco@guestshell ~] $tarxvfPython-3.8.12.tgz[cisco@guestshell ~] $cdPython-3.8*/[cisco@guestshell ~] $./configure--enable-optimizations[cisco@guestshell ~] $sudomakealtinstallConfirm install[cisco@guestshell ~]$python3.8--versionPython 3.8.12[cisco@guestshell ~] $rm-rfPython-3.8*/[cisco@guestshell ~] $rmPython-3.8.12.tgzAdd Python to the PathCleanup[cisco@guestshell ~] $ rm -rf Python-3.8.12
[cisco@guestshell ~] $ rm Python-3.8.12.tgzUpgrade pip[cisco@guestshell ~] $/usr/bin/python-mpipinstall--upgradepipInstall Java JDK[cisco@guestshell ~] $curlhttps://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.rpm--outputjdk-18_linux-x64_bin.rpm[cisco@guestshell ~] $sudorpm-Uvhjdk-18_linux-x64_bin.rpm[cisco@guestshell ~] $cat<<EOF|sudotee/etc/profile.d/jdk18.shexport JAVA_HOME=/usr/java/defaultexport PATH=\$PATH:\$JAVA_HOME/binEOF[cisco@guestshell ~] $source/etc/profile.d/jdk18.sh[cisco@guestshell ~] $rmjdk-18_linux-x64_bin.rpmVerify Java[cisco@guestshell ~] $java-versionjava version "18.0.1.1" 2022-04-22Java(TM) SE Runtime Environment (build 18.0.1.1+2-6)Java HotSpot(TM) 64-Bit Server VM (build 18.0.1.1+2-6, mixed mode, sharing)Setup Network3 PerseusInstall Network3_Perseuspip install the package[cisco@guestshell ~] $python3.8-mpipinstallnetwork3_perseussetup call_clid.py[cisco@guestshell ~] $sudovicall_clid.pyimport sysfrom cli import *if sys.argv[1] == "show running-config":output = cli("show running-config")else:output = clid(sys.argv[1])print(output):wqsetup cli_configure.py[cisco@guestshell ~] $sudovicli_configure.pyimport sysfrom cli import *configuration = sys.argv[1]cli(configuration):wqConfigure Network3 MedusaConfigure Java[cisco@guestshell ~] $OPERATOR_ID={Hederaaccountid}[cisco@guestshell ~] $OPERATOR_PRIVATE_KEY={Hederaprivatekey}[cisco@guestshell ~] $INTENTID={HederaIntentAccount}[cisco@guestshell ~] $APIKEY=={DragonglassAPIAccesskey}(Optional)Export your Webex Room and Webex token to send alerts to Webex when Network3 Medusa writes data to Hedera
export WEBEX_ROOM="Webex room id"
export WEBEX_TOKEN="Webex token id"
Package: network-analyzer
Network AnalyzerInstallationClone the repository and go to its root folder and run:sudo pip install -e .Run ServerUsing PM2To run JSON-RPC server over HTTP as well as Websocket:pm2 start pm2.jsonUsing shell scriptTo run JSON-RPC server over http on port 5000:sh scripts/serve_rpc.shTo run RPC server over web socket (socket.io) on port 5050:sh scripts/serve_socket.shClientPython (2.7)Install JSON-RPC clienttinyrpcby running:sudo pip install tinyrpcSample Python 2.7 client code to access JSON-RPC APIfromtinyrpc.protocols.jsonrpcimportJSONRPCProtocolfromtinyrpc.transports.httpimportHttpPostClientTransportfromtinyrpcimportRPCClientrpc_client=RPCClient(JSONRPCProtocol(),HttpPostClientTransport('http://localhost:5000/v1/jsonrpc'))rpc_server=rpc_client.get_proxy()print"pinging..."pong=rpc_server.ping()print"ping response: "+pongresp=rpc_server.hello("John")print"hello world response: "+resp
Package: network-changer
Some python3.7+ utilities for changing the network you’re computer is onWith super thanks to @igo95862 for the sdbus library I use afterhttps://github.com/igo95862/python-sdbus/issues/1InstallationSomething like:> python3 -m venv network_changer
> ./network_changer/bin/python -m pip install network_changer
> ./network_changer/network_changer infoOn Linux systems with nmcli it’ll install sdbus related dbus libraries. You can
modify that behaviour with these environment variables at pip install:NETWORK_CHANGER_NO_SDBUSDon’t automatically install sdbus. If you want sdbus anyway then use:> python -m pip instal network_changer[sdbus]On linux systems without nmcli, you’ll needlibiw-devto be installed for
network switching to work. You will also needsudofor all actions with iw
and forwpasupplicantto be uninstalled.If you are using nmcli on a raspberry Pi, you’ll need to do the following:> sudo apt-get install network-manager
# Make /etc/NetworkManager/NetworkManager.conf look like this
|   [main]
|   plugins=ifupdown,keyfile
|   dhcp=internal
|
|   [ifupdown]
|   managed=true
# Make sure /etc/dhcpcd.conf has "denyinterfaces wlan0" in it somewhere
> sudo rebootOn a Mac, it’ll shell out to the airport CLI command. Note that the only thing
that requiressudois disconnection.There is no Windows support.UsageOnce you’ve installed network_manager you have three commands available to you:network_manager infoDisplay the bssid and ssid of the interface--interface<iface>Specify which interface to use. By default it’ll find the one most
appropriate for your system. So en0 on Mac and wlan0 on a linuxnetwork_manager scanDisplay the bssid and ssid of the access points the interface can see--interface<iface>Specify which interface to use. By default it’ll find the one most
appropriate for your system. So en0 on Mac and wlan0 on a linux--filter-bssid<some string>Only show networks whose bssid contains the specified string in it--filter-ssid<some string>Only show networks whose ssid contains the specified string in itnetwork_manager connectConnect to the network with the specified ssid. Note that this library does
not support networks that have any type of security.--interface<iface>Specify which interface to use. By default it’ll find the one most
appropriate for your system. So en0 on Mac and wlan0 on a linux--ssid<ssid>The ssid to connect toChangelog0.1.0 - TBDInitial releaseNote that there are no unit tests and this code isn’t actively used by me
Package: networkconfigutility
NetworkConfigUtilityNetworkConfigUtility is currently a small program to assist with pushing configuration data to network devices. It can
also retrieve state data. This utility is built using the Nornir framework:https://github.com/nornir-automation/nornirSource Codehttps://github.com/naonder/NetworkConfigUtilityPyPI packagehttps://pypi.org/project/networkconfigutilitySetuppip install networkconfigutilitySee sample hosts, groups, and defaults file for reference. Also see the following for more information on Nornir and
SimpleInventoryhttps://nornir.readthedocs.io/en/stable/tutorials/intro/inventory.htmlAlso - see the sample 'configuration.ini' file on how to set it up properlyLastly - this requires that ntc-templates are downloaded to the host running this program:https://github.com/networktocode/ntc-templatesntc-templatesEasiest method is to download and keep the ntc-templates in the home directory of the user running this program.git clone https://github.com/networktocode/ntc-templatesOtherwise you can explicitly tell the program (namely Netmiko) where to look for them (example is for Linux):export NET_TEXTFSM=/path/to/ntc-templates/templates/More information is here:https://pynet.twb-tech.com/blog/automation/netmiko-textfsm.htmlUsageRun using the following:python -m networkconfigutility [options\files\filters]Example of current capabilities:usage: networkconfigutility [-h] -config path to config file for device(s |
                        -getters GETTERS [GETTERS ...] | -cli command)
                        configuration_file ftype filter

positional arguments:
  configuration_file    name of configuration file for program itself
  ftype                 type of filter to use
  filter                name of device or group

optional arguments:
  -h, --help            show this help message and exit
  
  -config path to config file for device(s)
  
                        change configuration on a device or groups of devices
                        
  -merge path to config file for device(s)
  
                    merge a configuration to a device or group of devices

                        
  -getters GETTERS [GETTERS ...]
  
                        use built-in NAPALM getters to retrieve information
                        
  -cli command          use the system CLI to retrieve information
  
    -getters_extra GETTERS_EXTRA [GETTERS_EXTRA ...]
    
                    optional, additional getters to use
                    
  -cli_extra command    optional, additional CLI to retrieve informationExample execution of the getters looks like such:Enter username: test-user
Input password: 
napalm_get**********************************************************************
* test-device ** changed : False ***********************************************
vvvv napalm_get ** changed : False vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv INFO
{ 'get_interfaces_ip': { 'Vlan10': { 'ipv4': { '10.96.128.18': { 'prefix_length': 24}}}}}
^^^^ END napalm_get ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Returned output is utilized from the Nornir 'print_result()' method
Package: network_dict
Summarynetwork_dict creates a network subnet based dictionary that returns the most specific subnet(s) for a given IP.  It will work equally with both IPv4 and IPv6.There’s a few more simple bells and whistles to make the library useful in different circumstances.This is a case where examples speak louder than words…Simple Examplefromnetwork_dictimportNetworkDictnetworks={'0.0.0.0/0':'Everything','10.0.0.0/8':'Office','10.1.0.0/16':'Region 1','10.1.1.0/255.255.255.0':'City 1'# Can take multiple netmasks}ns=NetworkDict(networks)>>>nd['10.1.1.1']'City 1'>>>nd.firstHit=False# Return all matching values in a list# Results are in order, most to least specific>>>nd['10.1.1.1']['City 1','Region 1','Office','Everything']>>>nd.format=both# return both the subnet and value in a tuple>>>nd['10.1.1.1'][('10.1.1.0/24','City 1'),('10.1.0.0/16','Region 1'),('10.0.0.0/8','Office'),('0.0.0.0/0','Everything')]>>>nd.format=key# return just the subnet address>>>nd['10.1.1.1']['10.1.1.0/24','10.1.0.0/16','10.0.0.0/8','0.0.0.0/0']Adding Subnets>>>nd['192.168.1.1']['0.0.0.0/0']# If 0.0.0.0/0 is not set, will return KeyError exception>>>nd['192.168.1.1/16']='Home'>>>nd['192.168.1.1']['192.168.0.0/16','0.0.0.0/16']# Note that the key was normalized to a proper subnetHosts and /32 prefixes>>>nd['10.1.1.1']='Router'>>>nd['10.1.1.1']['10.1.1.0/24','10.1.0.0/16','10.0.0.0/8','0.0.0.0/0']# Hosts are ignored by default>>>nd.ignoreHosts=False>>>nd['10.1.1.1']='Router'['10.1.1.1/32','10.1.1.0/24','10.1.0.0/16','10.0.0.0/8','0.0.0.0/0']IPv6 Subnets>>>nd['::1']Traceback(mostrecentcalllast):File"<stdin>",line1,in<module>KeyError:Nomatchingnetworksfound,andnodefaultnetworkset# we didn't set '::/0', which is different from the '0.0.0.0/0' which is already set>>>nd['::1/128']='Localhost'# Note: /128 is a hostmask, so will be ignored if ignoreHosts = True (default)>>>nd['::1']['::1/128']Setting options at creation>>>nd=NetworkDict(format='both',firstHit=False,ignoreHosts=True)# Returns an empty NetworkDict object, but with default options setRequirementsTested on python 2.8netaddr libraryInstallationVia pip or easy_install$sudopipinstallnetwork_dict# If you prefer PIP$sudoeasy_installnetwork_dict# If you prefer easy_installManual installation$gitclonehttps://github.com/neoCrimeLabs/python-network_dict.git$cdpython-network_dict$sudopythonsetup.pyinstallConditions of UseI wrote this library for my own use, but realized others may find it useful.Unfortunately I cannot guarentee any active support, but will do my best as time
permits.  That said, I’ll happily accept push requests with suitable changes
that address the general audience of this library.Put simply, use this at your own risk.  If it works, great!  If not, I may not
be able to help you.  If you fix anything, however, please push it back and I’ll
likely accept it.  :-)Also, if you use this library in your package, tool, or comercial software, let
me know, and I’ll list it here!
Package: network-diffusion
Network Diffusion - spreading models in complex networksThis Python library provides a versatile toolkit for simulating diffusion
processes in complex networks. It offers support for various types of models,
including temporal models, multilayer models, and combinations of both.Documentationis availablehere!Key FeaturesComplex Network Simulation: The library enables users to simulate
diffusion processes in complex networks with ease. Whether you are studying
information spread, disease propagation, or any other diffusion phenomena,
this library has you covered.Temporal Models: You can work with temporal models, allowing you to
capture the dynamics of processes over time. These temporal models can be
created using regular time windows or leverageCogSnet.Multilayer Networks: The library supports multilayer networks, which are
essential for modeling real-world systems with interconnected layers of
complexity.Predefined Models: You have the option to use predefined diffusion models
such as the Linear Threshold Model, Independent Cascade Model, and more.
These models simplify the simulation process, allowing you to focus on your
specific research questions.Custom Models: Additionally, Nwtwork Diffusion allows you to define your
own diffusion models using open interfaces, providing flexibility for
researchers to tailor simulations to their unique requirements.Centrality Measures: The library provides a wide range of centrality
measures specifically designed for multilayer networks. These measures can be
valuable for selecting influential seed nodes in diffusion processes.NetworkX Compatibility: Last but not least, the package is built on top
of NetworkX, ensuring seamless compatibility with this popular Python library
for network analysis. You can easily integrate it into your existing
NetworkX-based workflows.InstallationTo install package run this command:pip install network_diffusion.
Please note, that currently we support Linux, MacOS, and Windows only.If you like the package, please cite us as:@INPROCEEDINGS{czuba2022networkdiffusion,
    author={Czuba, Micha\l{} and Br\'{o}dka, Piotr},
    booktitle={2022 IEEE 9th International Conference on Data Science and Advanced Analytics (DSAA)},
    title={Simulating Spreading of Multiple Interacting Processes in Complex Networks},
    year={2022},
    month={oct},
    volume={},
    number={},
    pages={1-10},
    publisher={IEEE},
    address={Shenzhen, China},
    doi={10.1109/DSAA54385.2022.10032425},
}New features incomingA board with issues and state of the progress torwards implementing new
functionalities can be foundhere.About usThis library is developed and maintained by Network Science Lab atWUSTand external partners. For more
information and updates, please visit our :website.
Package: networkDiscovery
This library is deprecated. We will no longer release new versions, fix bugs or accept pull requests. If you are looking to make your Home Assistant integration discoverable, usethe zeroconf and SSDP manifest options.NetDiscoNetDisco is a Python 3 library to discover local devices and services. It allows to scan on demand or offer a service that will scan the network in the background in a set interval.Current methods of scanning:mDNS (includes Chromecast, Homekit)uPnPPlex Media Server using Good Day Mate protocolLogitech Media Server discovery protocolDaikin discovery protocolWeb OS discovery protocolIt is the library that powers the device discovery withinHome Assistant.We are no longer accepting PRs that implement custom discovery protocols. Only PRs that use mDNS or uPnP are supported. Seethis issueInstallationNetdisco is available on PyPi. Install usingpip3 install netdisco.ExampleFrom command-line:python3-mnetdisco# To see all raw data:python3-mnetdiscodumpIn your script:fromnetdisco.discoveryimportNetworkDiscoverynetdis=NetworkDiscovery()netdis.scan()fordevinnetdis.discover():print(dev,netdis.get_info(dev))netdis.stop()Will result in a list of discovered devices and their most important information:DLNA ['http://192.168.1.1:8200/rootDesc.xml', 'http://192.168.1.150:32469/DeviceDescription.xml']
google_cast [('Living Room.local.', 8009)]
philips_hue ['http://192.168.1.2:80/description.xml']
belkin_wemo ['http://192.168.1.10:49153/setup.xml']
Package: network-docopt
network-docoptNetworkDocopt is a command line argument parser for networking focused
applications. This was heavily inspired by the docopt module athttp://docopt.org/(no code from docopt was used however). The key
differences are:Support for partial command line options. If your program foo has a
“foo show summary” option you can also enter “foo sh sum”Support for integration into bash’s auto-complete mechanismExampleSee network-docopt-example for an example of how to use this moduleFor bash <tab> auto-completion and bash <tab><tab> “show me available
options” you must create a small bash script in
/usr/share/bash-completion/completions/ like so:cp completions/network-docopt-example
/usr/share/bash-completion/completions/This bash script will call network-docopt-example with ‘options’ as the
last argument. For instance if you type “network-docopt-example show ip
“ the bash script will call “network-docopt-example show ip options”
which will return “route” and “interface”. This tells bash what the next
options are.ContributingFork it.Create your feature branch (git checkout-bmy-new-feature).Commit your changes (git commit-am'Add some feature').Push to the branch (git push originmy-new-feature).Create new Pull Request.License and AuthorsOriginal Author:: Daniel WaltonCopyright:: 2015 Cumulus Networks Inc.Cumulus iconVersion History0.1.10: Bugfixes. Fix setup.py after adding gitversion support. one can build debs now0.1.9: Add gitversion support0.1.8:  Initial commit to pypiCumulus LinuxCumulus Linux is a software distribution that runs on top of industry
standard networking hardware. It enables the latest Linux applications
and automation tools on networking gear while delivering new levels of
innovation and ﬂexibility to the data center.For further details please see:cumulusnetworks.comThis project is licensed under MIT
Package: network-extensions
network_extensionsA collections of tools to handle networks changing in time as well as different types of multilayer networks.
The project is still only beta.I am working on a improved documentation. See the progress at:https://readthedocs.org/projects/network-extension/If you install it via pypi:pip install network-extensionsthere might be missing dependencies. Not all requirements are added to the setup.py file, yet.The source code is athttps://gitlab.gwdg.de/dirk.wintergruen/network_extensions.git
Package: networkh3
networkh3A package to return clipped H3 hexagons from the extent of an OSMnx network. Useful for anyone looking to use the H3 spatial indexing system in route analyses or spatial analyses, and for saving time sourcing H3 hexagons.Examples(L-R): London, Washington DCExample workflows are available in theGithubrepository.InstallInstall the latest version from PyPI:pipinstallnetworkh3Importfromnetworkh3importNETWORKH3UsageNETWORKH3 requires three parameters: the area of interest, the type of OSMNx network, and the resolution of the returned H3 hexagons:fromnetworkh3importNETWORKH3

NETWORKH3.get_h3('Leeds, United Kingdom','drive',9)Optional style keywords can also be specified:fromnetworkh3importNETWORKH3
importcontextilyascx

NETWORKH3.get_h3('Leeds, United Kingdom','drive',9,network_kwargs={'node_size':1,'node_color':'black','edge_color':'red','edge_linewidth':0.2},h3_kwargs={'facecolor':'white','alpha':0.6},basemap_kwargs={'source':cx.providers.Stamen.TonerLite})The network and clipped H3 hexagons can then be used in analysis:# Calling the networkNETWORKH3.network# Calling the clipped H3 hexagonsNETWORKH3.h3Issues and supportSee theGithubrepository to report an issue or contribute to this project.ContactWebsite:callumscoby.comTwitter:@ScobyCallumGithub:@callumscobyLinkedIn:@callumscobyAcknowledgements⌇OSMnx🗺H3