Saravanan666/pypi-org huggingface dataset:
Package: netbench
NetbenchNetbench is a CLI utlity for running benchmarks in a network. It allows
measuring bandwidth or synchronization between devices. Mainly, Netbench acts
as a wrapper around other well-established tools, offering a consistent and
convenient interface for runnings all the necessary benchmarks from one place
and also providing results in an analytics-friendly format.Pre-requisites for installationNetbench relies oniperf3for bandwidth
measurements and injecting load into the network. Some Linux distributions
offer it in a package, but you can always build it from source.For PTP synchronization benchmarking, thelinuxptptools are used. Again,
packages are available in some distributions.Installing netbenchSimply install it with pip:pipinstall--usernetbenchNote that, to be able to use thenetbenchcommand, the pip installation
directory must be present in yourPATH.
Package: netblocks
NetblocksThis is not an official Google product.This module retrieves the DNS entries recursively as per the below linksThe GCE ranges
    https://cloud.google.com/compute/docs/faq#where_can_i_find_product_name_short_ip_ranges
The Google Services ranges
    https://support.google.com/a/answer/60764
The AWS ranges
    https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.htmlInstall the package withpip install netblocksorpip install git+https://github.com/hm-distro/netblocks/Thefetch()method has the default parameter value ofinitial_dns_list=[GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS, GOOGLE_INITIAL_SPF_NETBLOCK_DNS]where#The GCE ranges
GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS = "_cloud-netblocks.googleusercontent.com"

#The Google Services ranges
GOOGLE_INITIAL_SPF_NETBLOCK_DNS= "_spf.google.com"

#The AWS ranges
AWS_IP_RANGES="https://ip-ranges.amazonaws.com/ip-ranges.json"Seehereon how to use this module in Google App EngineAPI Usageimport netblocks
cidr_blocks = set()
api = netblocks.NetBlocks()
try:
    # returns both GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS and GOOGLE_INITIAL_SPF_NETBLOCK_DNS
    cidr_blocks = api.fetch()
    
    # To get only the SPF list use the below:
    #  cidr_blocks = api.fetch([netblocks.GOOGLE_INITIAL_SPF_NETBLOCK_DNS])

    
    # To get only the GCE list use the below:
    #  cidr_blocks = api.fetch([netblocks.GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS]) 
    
    # To get only the AWS list use the below:
    #  cidr_blocks = api.fetch([netblocks.AWS_IP_RANGES]) 
    
    """
    The cidr_blocks set contains strings like the below
    ip4:146.148.2.0/23
    ...
    ip6:2600:1900::/35
    """
    
except netblocks.NetBlockRetrievalException as err:
    #exception handling
    passLanguagePythonDependenciesrequestsLicenseApache 2.0; seeLICENSEfor details.
Package: netblocks3
NetblocksThis is not an official Google product.This module retrieves the DNS entries recursively as per the below linksThe GCE ranges
    https://cloud.google.com/compute/docs/faq#where_can_i_find_product_name_short_ip_ranges
The Google Services ranges
    https://support.google.com/a/answer/60764
The AWS ranges
    https://docs.aws.amazon.com/general/latest/gr/aws-ip-ranges.htmlInstall the package withpip install netblocks3orpip install git+https://github.com/tomasfse/netblocks/Thefetch()method has the default parameter value ofinitial_dns_list=[GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS, GOOGLE_INITIAL_SPF_NETBLOCK_DNS]where#The GCE ranges
GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS = "_cloud-netblocks.googleusercontent.com"

#The Google Services ranges
GOOGLE_INITIAL_SPF_NETBLOCK_DNS= "_spf.google.com"

#The AWS ranges
AWS_IP_RANGES="https://ip-ranges.amazonaws.com/ip-ranges.json"Seehereon how to use this module in Google App EngineAPI Usageimport netblocks3 as netblocks
cidr_blocks = set()
api = netblocks.NetBlocks()
try:
    # returns both GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS and GOOGLE_INITIAL_SPF_NETBLOCK_DNS
    cidr_blocks = api.fetch()
    
    # To get only the SPF list use the below:
    #  cidr_blocks = api.fetch([netblocks.GOOGLE_INITIAL_SPF_NETBLOCK_DNS])

    
    # To get only the GCE list use the below:
    #  cidr_blocks = api.fetch([netblocks.GOOGLE_INITIAL_CLOUD_NETBLOCK_DNS]) 
    
    # To get only the AWS list use the below:
    #  cidr_blocks = api.fetch([netblocks.AWS_IP_RANGES]) 
    
    """
    The cidr_blocks set contains strings like the below
    ip4:146.148.2.0/23
    ...
    ip6:2600:1900::/35
    """
    
except netblocks.NetBlockRetrievalException as err:
    #exception handling
    passLanguagePythonDependenciesrequestsLicenseApache 2.0; seeLICENSEfor details.
Package: netbone
NetBoneNetBone is a Python library for extracting network backbones from simple weighted networks.FeaturesExtract network backbones from simple weighted networksContains six statistical methods for extracting backbonesContains thirteen structural methods for extracting backbonesContains one hybrid method for extracting backbonesIncludes three filters for extracting the backbone: boolean filter, threshold filter, and fraction filterBuilt-in methods for comparing backbones with each otherOption to use custom comparison methodsVisualization tools to display the results of the comparisonInstallationYou should have Python version 3.10 or higher. Then you can install the latest version of NetBone:pip install netboneorpip install git+https://gitlab.liris.cnrs.fr/coregraphie/netboneUsage/ExamplesTo see a more detailed example, please refer to the example notebookhere. However, here is a simple example using a backbone extraction method and three filters that are available:import netbone as nb
import networkx as nx
from netbone.filters import boolean_filter, threshold_filter, fraction_filter

# load the network
g = nx.les_miserables_graph()

# apply the choosen backbone extraction method
b = nb.high_salience_skeleton(g)

# extract the backbone based on the default threshold
backbone1 = boolean_filter(b)

# extract the backbone based on a threshold(0.7)
backbone2 = threshold_filter(b, 0.7)

# extract the backbone keeping a fraction of edges(0.15)
backbone3 = fraction_filter(b, 0.15)CitationAli Yassin, Abbas Haidar, Hocine Cherifi et al. An Evaluation Tool for Backbone Extraction Techniques in Weighted Complex Networks, 19 May 2023, PREPRINT (Version 1) available at Research Square [https://doi.org/10.21203/rs.3.rs-2935871/v1]CreditsThis project includes code from the following sources:ECM filter,Doubly Stochastic,Marginal Likelihood,Metric Distance, Ultrametric DistanceContributingContributions are always welcome!LicenseMIT
Package: netbox
NetboxA python simple and flexible CLI tool used to network testing.IntroductionThis command line tool integrates some common network operations, such as wireless network connection, network ping, network speed measurement, etc., which can be done by using simple commands. The tool supports cross-platform, consistent command-line style for the three major operating systems and user-friendly. In addition, the tool provides a rich function interface which is convenient for users to integrate according to the actual business.Getting StartedPrerequisitesInstall python3 on your local machine, no matter what operating system you are using, you can refer to the link as belowHow to install python3Install git on your local machine, no matter what operating system you are using, you can refer to the link as belowHow to install gitInstallingA step by step series of examples that tell you how to get the CLI tool running.Installing via git repositoryClone project with git commandgitclonehttps://github.com/Hellboycc/netbox.gitCreate a virtual environment in the project root directorycdnetbox
python-mvenv.venvActivate current virtual environment# For MacOScd.venv/binsourceactivateInstall all dependency with pip3 command# In this path /Users/..../netboxpip3install-rrequirements.txtInstall project on your local machine# In this path /Users/..../netboxpip3install-e.Installing from pypiIf you don't want to use git repository, you could choose to download frompypi.organd install to use.pip3installnetboxRunning CLI on your terminal windowExample for display CLI tool informationnetbox-cliUsage:netbox-cli[OPTIONS]COMMAND[ARGS]...AsimpleandflexibleCLItoolfornetworktesting

Options:--versionPrintversioninformationandquit--helpShowthismessageandexit.

Commands:versionShowtheCLItoolversioninformationwlanManagewifinetworkExample for child commandsnetbox-cliwlanUsage:netbox-cliwlan[OPTIONS]COMMAND[ARGS]...Managewifinetwork

Options:--helpShowthismessageandexit.

Commands:connectConnectawifinetworkcurrentCurrentwifinetworkinformationdisconnectDisconnectcurrentwifinetworkscanScansurroundwifinetworkExample for dispaly current versionnetbox-cliversionCurrentversionisv0.0.1Example for scan a specified wifi network exists or notnetbox-cliwlanscan--ssidHellboyccCurrentssidHellboyccisnotfound.TestingThe project contains complete unit tests, if you want to know the unit test results before using the tool, you can get the detailed test results by executing the unit tests.How to run unit testInstall all dependency of develop# For MacOScdnetbox
python-mvenv.venvcd.venv/binsourceactivate# In this path /Users/..../netboxpip3install-rrequirements-dev.txtRunning unit test with tox command# In this path /Users/..../netboxtoxFAQ & IssuesIf you encounter any problems in using it, please keep in touch with me and I will reply as soon as possible, you can access to the link as belowIssues of projectOther classic questionsFAQLicenseThis project is licensed under the MIT License (see theLICENSEfile for details).
Package: netbox3-bgp-kani-fork
NetBox BGP PluginNetboxplugin for BGP related objects documentation.FeaturesThis plugin provide following Models:AS Numbers (will be removed in 0.8.0)BGP CommunitiesBGP SessionsRouting PolicyPrefix Lists (new in 0.7.0)CompatibilityNetBox 2.100.3.9NetBox 2.110.3.9NetBox 3.00.4.3NetBox 3.10.5.0NetBox 3.20.6.0InstallationThe plugin is available as a Python package in pypi and can be installed with pippip install netbox-bgpEnable the plugin in /opt/netbox/netbox/netbox/configuration.py:PLUGINS = ['netbox_bgp']Restart NetBox and addnetbox-bgpto your local_requirements.txtConfigurationThe following options are available:device_ext_page: String (default right) Device related BGP sessions table position. The following values are available:left, right, full_width. Set empty value for disable.asdot: Boolean (defaul False) asdot notation for 4-byte ASScreenshotsBGP SessionBGP SessionsASNASNsCommunityPeer Group
Package: netbox-acls
NetBox Access Lists PluginANetboxplugin for Access List management.FeaturesThis plugin provides the following models:Access ListsAccess List to Interface AssignmentAccess List Rules (abstract model bassis for other rules)Access List Standard RulesAccess List Extended RulesOriginBased on the NetBox plugin tutorial byjeremystretch:demo repositorytutorialAll credit should go to Jeremy. Thanks, Jeremy!This project just looks to build on top of this framework and model presented.ContributingThis project is currently maintained jointly by:Abhimanyu SaharanRyan MerolleSee theCONTRIBUTINGfor more information.CompatibilityEach Plugin Version listed below has been tested with its corresponding NetBox Version.NetBox VersionPlugin Version3.21.0.13.31.1.03.41.2.23.51.3.0InstallingFor adding to a NetBox Docker setup seethe general instructions for using netbox-docker with plugins.You can install with pip:pipinstallnetbox-aclsor by adding to yourlocal_requirements.txtorplugin_requirements.txt(netbox-docker):netbox-aclsConfigurationEnable the plugin in/opt/netbox/netbox/netbox/configuration.py,
or if you use netbox-docker, your/configuration/plugins.pyfile :PLUGINS=["netbox_acls"]PLUGINS_CONFIG={"netbox_acls":{"top_level_menu":True# If set to True the plugin will add a top level menu item for the plugin. If set to False the plugin will add a menu item under the Plugins menu item.  Default is set to True.},}DevelopingVSCode + Docker + Dev ContainersTo develop this plugin further one can use the included .devcontainer configuration. This configuration creates a docker container which includes a fully working netbox installation. Currently it should work when using WSL 2. For this to work make sure you have Docker Desktop installed and the WSL 2 integrations activated.In the WSL terminal, entercodeto run Visual studio code.Install the devcontainer extension "ms-vscode-remote.remote-containers"Press Ctrl+Shift+P and use the "Dev Container: Clone Repository in Container Volume" function to clone this repository. This will take a while depending on your computerIf you'd like the netbox instance to be prepopulated with example data fromnetbox-initializersrunmake  initializersStart the netbox instance usingmake allYour netbox instance will be served under 0.0.0.0:8000, so it should now be available under localhost:8000.ScreenshotsAccess List - List ViewAccess List (Type Extended) - Individual ViewAccess List (Type Standard) - Individual ViewExtended Access List Rules - List ViewStandard Access List Rules - List ViewAccess List Interface Assignments- List ViewHost (device, virtual_chassis, virtual_machine) Access Lists - New CardHost Interface (vminterface interface) Access Lists - New Card
Package: netbox-announcement
Netbox Announcement PluginThis the netbox announcement plugin.
You can usenetbox_announcementplugin in Github.comInstalling Netbox Announcement PluginThe instructions below detail the process for installing and enabling a Netbox announcement plugin.Install PackageDownload and install the plugin package per its installation instructions. Plugins published via PyPI are typically installed using pip. Be sure to install the plugin within Netbox`s virtual environment.please referhow to use netbox plugins$ source /opt/netbox/venv/bin/activate

(venv)$ pip install netbox_announcement==[latest version]Enable the PluginInconfiguration.py, add the plugin's name to thePLUGIINSlist:PLUGINS = [
    'netbox_announcement',
]Configure PluginOpenconfiguration.pywith your preferred editor to begin configuring of Netbox announcement plugin. The following configuration are required only when you migrate the model of the netbox announcement plugin to the Netbox database.DEVELOPER=TrueRun Database MigrationsThe Netbox announcement plugin has 3 models related with Virtual Machine / Device announcement, and Site announcement.
To introduce these new db models, run the provided schema migrations.
Next, we can apply the migration of the Netbox_announcement model to the database with themigratecommand(venv) $ cd /opt/netbox/netbox/
(venv) $ python3 manage.py makemigrations netbox_announcement
(venv) $ python3 manage.py migrate netbox_announcementRestart serviceThen, restart thenetboxandnetbox-rqservices to enable them# systemctl restart netbox netbox-rq
# systemctl restart nginxReferencePlease referNetbox plugin development document
Package: netboxapi-client
This is a python client for netbox (https://github.com/digitalocean/netbox) API. It can be used either as a python module/library or directly from the command line.
The goal of this project is to provide a simple way to automate infrastructure documentation based on the REST API from that great project that is Netbox.StatusUnder development.Current developments are tested on netbox v2.2.2 and above.InstallationYou can clone that repo and install locally with:pythonsetup.pybuild&&pipinstall-e.Proper pypi package on it’s way.UsageFrom CLI, using a configuration file:Copynetboxapi.json.examplefile tonetboxapi.jsonand edit that file to match your netbox instance url and token.python netboxapi_client.py -hwill give you the overview of the models you can act on.-his available at each depth level of the cli.Here are some examples:netboxapi_client-hnetboxapi_clientdcim-hcategorynetboxapi_clientdcimdevices-hnetboxapi_clientdcimdeviceslistnetboxapi_clientdcimdevicescreate-d'$(cat mydevice.json)'netboxapi_clientdcimdevicescreate\-d'{ "name": "sw-02-par-eq2", \
              "slug": "sw-02-par-eq2", \
              "device_role": "1", \
              "device_type": "8", \
              "site": "184" }'netboxapi_clientdcimdevicesshow-nsw-02-par-eq2netboxapi_clientdcimdevicesshow-i10netboxapi_clientdcimdevicesdelete-nsw-02-par-eq2From code:This is a very basic example:frompprintimportpprintfromnetboxapi_clientimportApi,getTOKEN="thetokenyoucangetfromnetboxwebuionauserprofilepage"URL="https://netbox.example.org"api=Api(url=URL,token=TOKEN)res=get(api,model="dcim",obj="devices",name="sw-02-par-eq2")pprint(res)For now, you have to import the Api class and the function you need (get, get_list, update, create, delete, and so on…). This will be improved soon…How-to testInstall docker and docker-compose and then:sudodocker-composerun--rmnetboxcreatesuperuserYou will be prompted for a username, email and password for the superuser.sudodocker-composeup-dThen you have to connect to the netbox instance you just installed. It should be accessible athttp://localhost:8000. Login with the credentials you choosed earlier. On the top right you can select username > profile. Then click on “API tokens” and create one, either use the one writen in tests/basic.py or choose one and replace the one in this file. (yeah token creation could be automated, it will be…)Then you can try querying the api as described earlier.To run unit tests:pythontests/basic.pyTODOprevent sending multiple requests/discovering the model if not requiredbetter catch exceptions to give users a more comprehensive outputsetup CI/CD pipeline and build status on githubpush docker image to public repo and add docker-compose.yml, entrypoint.sh to the repo, add testing process to documentation
Package: netbox-api-token-generator
netbox-api-token-generatorA Django Netbox plugin to expose API token generation API using basic authorization headerThis Django Netbox plugin will expose a REST APIGET /api/plugins/token/tokenwith following required header parametersAuthorization: Basic <base64>: TheAuthorizationheader will be base64 ofusername:passwordstringZ-Expires: yyyy-MM-dd: TheX-Expiresis use to provide expiry for the tokenInstallation and configurationThis instruction only describes how to install this plugin intoDocker-composeinstance of NetBox.General installation steps and considerations follow theofficial guidelines.
The plugin is available as a Python package fromPyPior fromGitHub.0. Pull NetBox docker-compose version from GitHubmkdir~/netbox&&cd"$_"gitclonehttps://github.com/netbox-community/netbox-docker1. Create new docker container based on latest netbox imagecd~/netbox
gitclonehttps://github.com/agrawald/netbox-api-token-generatorcdnetbox-api-token-generator
sudodockerbuild-tnetbox-myplugins.What's in the Dockerfile:FROMnetboxcommunity/netbox:latestCOPY./netbox_api_token_generator/opt/netbox/netbox/netbox_api_token_generator2. Changenetboxservice in docker-compose.yml (do not delete, just add new lines and change image name)version:'3.4'services:netbox:&netbox#Changeimagenametonetbox-myplugins(oldnameisnetboxcommunity/netbox:${VERSION-latest})image:netbox-myplugins...ports:-8080:80803. Update thePLUGINSparameter in the global Netboxconfiguration.pyconfig file innetbox-docker/configurationdirectoryPLUGINS=["netbox_api_token_generator"]4. Start Docker-compose$cd~/netbox/netbox-docker/
sudodocker-composeup-dUsageYou can use either postman or a simple curl as shown below to generate an API tokencurl --request GET 'http://NETBOX_IP:8080/api/plugins/token/token' --header 'Authorization: Basic BASE64' --header 'X-Expires: 2021-12-31'Response will be a JSON as shown below{
"token": "adshkjhWJKHSDBCFlajksdhkjhkjahr214kjh234235kjasdkj123dhkj23h423kjk"
}
Package: netbox-app-systems
Netbox plugin 'Application systems'Добавляет:в Netbox объект "Application system"в карточки объектов virtual machine, device секцию "Application system"Позволяет проводить группировку активов по сервисам, системам.УстановкаУстановить плагинpip3 install netbox-app-systemsДобавить плагин вnetbox/netbox/netbox/configuration.py(обновить или добавить переменную):PLUGINS=['netbox_app_systems']Перейти в каталог с файломmanage.pyи выполнить миграцию БДpython3 manage.py migrateПерезапустить сервер netboxПроверить, что плагин появился в списке установленных плагинов в административном интерфейсе Django.
Package: netbox-attachments
NetBox Attachments PluginNetboxplugin for attaching files to any model.FeaturesThis plugin provide following Models:NetBoxAttachmentCompatibilityNetboxPlugin>= 3.3.40.0.0 <-> 0.0.5>= 3.4.00.0.6 <-> 1.0.6>= 3.4.31.0.7 <-> 1.1.X>= 3.5.02.0.0>= 3.6.03.0.0>= 3.7.04.0.0InstallationThe plugin is available as a Python package in pypi and can be installed with pippip install netbox-attachmentsEnable the plugin inconfiguration.py:PLUGINS = ['netbox_attachments']Restart NetBox and addnetbox-attachmentsto your local_requirements.txtSeeNetBox Documentationfor detailsConfigurationThe following options are available:apps:Type: ListDefault: ['dcim', 'ipam', 'circuits', 'tenancy', 'virtualization', 'wireless']Description: DisplayAttachmentsfeature on all models definded under the app label. Attachmets are displayed onright_pageof the detail-view of model.display_default:Type: StringDefault: "additional_tab"Options: "left_page", "right_page", "full_width_page", "additional_tab"Description: Setup default setting of where attachments should be displayed under the modelsdisplay_setting:Type: DictDefault: {}Options: {<app_label.model>: <prefeered_display>}Example: {'dcim.devicerole': 'full_width_page', 'dcim.device': 'left_page', 'ipam.vlan': 'additional_tab'}Description: Set display setting for concrete modelTip: Properapp_labelandmodelnames could be found at API<your_netbox_url>/api/extras/content-types/Warningadditional_tabdoes not work for Plugin modelsConfiguration Example:PLUGINS_CONFIG = {
    'netbox_attachments': {
        'apps': ['dcim', 'ipam', 'circuits', 'tenancy', 'virtualization', 'wireless', 'inventory_monitor'],
        'display_default': "right_page",
        'display_setting': {'ipam.vlan': "left_page", 'dcim.device': "full_width_page", 'dcim.devicerole': "full_width_page", 'inventory_monitor.probe': "additional_tab"}
    }
}Enable Attachments for custom plugin (models)Append your plugin to configuration listapps: ['<plugin_name>']Extend detail templates# At the TOP
  {% load plugins %}
  # Under a comments section
  {% plugin_right_page object %}
  # add the left_page and full_width for future extensionExample (device - core model):loadleft_pageright_pagefull_with_pageScreenshotsModel ViewList ViewDetail View
Package: netbox-bgp
NetBox BGP PluginNetboxplugin for BGP related objects documentation.FeaturesThis plugin provide following Models:BGP CommunitiesBGP SessionsRouting PolicyPrefix ListsCompatibilityNetBox 3.4>= 0.9.0NetBox 3.5>= 0.10.0NetBox 3.6>= 0.11.0NetBox 3.7>= 0.12.0InstallationThe plugin is available as a Python package in pypi and can be installed with pippip install netbox-bgpEnable the plugin in /opt/netbox/netbox/netbox/configuration.py:PLUGINS = ['netbox_bgp']Restart NetBox and addnetbox-bgpto your local_requirements.txtSeeNetBox Documentationfor detailsConfigurationThe following options are available:device_ext_page: String (default right) Device related BGP sessions table position. The following values are available:left, right, full_width. Set empty value for disable.top_level_menu: Bool (default False) Enable top level section navigation menu for the plugin.ScreenshotsBGP SessionBGP SessionsCommunityPeer GroupRouting PolicyPrefix List
Package: netbox-celery
Netbox Celery PluginAn App forNetbox.OverviewThe Netbox Celery plugin is a Netbox plugin to provide support for celery. This plugin can be used base for any automation tasks.ScreenshotsCelery Results ListCelery Result DetailsInstallationInstall the package using pip:pipinstallnetbox-celeryAdd plugin toPLUGINSin configuration:PLUGINS=[..."netbox_celery",...]