Saravanan666/pypi-org huggingface dataset:
Package: netbox-software-tracker
Netbox Software TrackerNetboxplugin that adds the capability to track software and assign golden images to devicesCompatibilityThis plugin in compatible withNetBox3.4 and later.InstallationIf Netbox was installed according to the standard installation instructions. It may be necessary to activate the virtual environment.source /opt/netbox/venv/bin/activateThe plugin is available as a Python package in pypi and can be installed with pippip install netbox-software-trackerEnable the plugin in /opt/netbox/netbox/netbox/configuration.py:PLUGINS = ["netbox-software-tracker"]Restart NetBox and addnetbox-software-trackerto your local_requirements.txtContributingDeveloping tools for this project based onntc-netbox-plugin-onboardingrepo.Issues and pull requests are welcomed.
Package: netbox-storage
GeneralBuild ProjectTo build the project go to log in the pypi web ui and get your token. Add your token to the local pypi config.poetry config pypi-token.pypi pypi-XXXXXAfter you made changes, change the version in the files pyproject.toml and netbox_storage/init.pyNow you can build and publish the project.poetry publish --buildUse ProjectLink:https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Pluginsdocker-compose build --no-cache && docker-compose build --no-cache && docker-compose up -dDirectory structure+- api - The API Classes, consitsts of Serializer, URL Mapper and Views
+- filters - Filters of the models, the implementation of the method search, for searching
+- forms - The ModelForm, ModelFilterForm, ModelImportForm, ModelBulkEditForm, the forms which will be displayed
+- migrations - DB Django Migration steps
+- tables - The ModelTable, which has the configuration on how the table looks like
+- templates
  +- netbox_storage - The detail view of each model
    +- drive - The template content of drive, with base and partition model
    +- inc - The template content box in the Virtual Machine Model
    +- partition - The template content of partition, with base and physicalvolume model
    +- physicalvolume - The template content of physicalvolume with base and linuxvolume model
    +- volumegroup - The template content of volumegroup with base, logicalvolume and physicalvolume
+- views - PhysicalvolumeListView, PhysicalvolumeView, PhysicalvolumeEditView, PhysicalvolumeDeleteView, 
           PhysicalvolumeBulkImportView, PhysicalvolumeBulkEditView, PhysicalvolumeBulkDeleteViewModelsERMDriveThe drive has 4 parameter:NameExample ValueVirtualmachinetest-vm (Link zu virtual machine)IdentifierFestplatte 1ClusterSTOR2000000 (Link zu cluster)Size50GBSystemNoFilesystemThe filesystem has 1 parameter:NameExample ValuefsEXT4git add . && git commit -m "0.0.0.0.272" && git push
Package: netbox-storage-plugin
Netbox-storageANetboxplugin for storage related documentation where virtualization is used.5 new object types are introduced:Storage Pools: a pool that is created on a storage. Currently this storage has to be a Netbox Device.LUN: tied to a Storage PoolDatastores: created on LUN(s)Storage Sessions: the "source" of a session is a Netbox Virtualization Cluster, the "destination" is the LUN GroupVMDK: can be assigned to a VM and a datastoreInstallThe plugin can be installed using pip:pip install netbox-storage-pluginAdd netbox_storage to PLUGINS in configuration.py:PLUGINS = ['netbox_storage',]Don't forget to addnetbox-storage-pluginto your local_requirements.txt as well.UsageCreate regular Netbox objects: a storage Device, a virtualization Cluster, and a Virtual MachineCreate a Storage Pool that is assigned to the above created DeviceCreate LUN(s) on the Storage PoolCreate Datastore(s) on LUNsCreate Storage Session between the Cluster and the DatastoreCreate VMDK on the VM that is on a Cluster that has a Storage Session: this is possible either from the main menu, or on the VM's own page
Package: netbox-subsystems
Netbox Software PluginA plugin designed to faciliate the storage of site, circuit, device type and device specific software withinNetBoxFeaturesStore software against the following NetBox models:CircuitsDevicesDevice TypesSitesUpload software to your NetBox media/ folder or other Django supported storage method e.g. S3Supports a wide array of common file types (bmp, gif, jpeg, jpg, png, pdf, txt, doc, docx, xls, xlsx, xlsm)Store links to external URL's to save duplication of remote softwareCompatibilityNetBox VersionPlugin Version3.2+0.2.4InstallationA working installation of Netbox 3.2+ is required. 3.4+ is recommended.Package Installation from PyPiActivate your virtual env and install via pip:$ source /opt/netbox/venv/bin/activate
(venv) $ pip install netbox-systemsTo ensure the Netbox software plugin is automatically re-installed during future upgrades, add the package to yourlocal_requirements.txt:# echo netbox-systems >> local_requirements.txtEnable the PluginIn the Netboxconfiguration.pyconfiguration file add or update the PLUGINS parameter, addingnetbox_systems:PLUGINS=['netbox_systems',](Optional) Add or update a PLUGINS_CONFIG parameter inconfiguration.pyto configure plugin settings. Options shown below are the configured defaults:PLUGINS_CONFIG={'netbox_systems':{# Enable the management of device specific software (True/False)'enable_device_software':True,# Location to inject the software widget in the device view (left/right'device_software_location':'left',}}(Optional) Add or replace the built-in software Type choices via Netbox'sFIELD_CHOICESconfiguration parameter:The colours that can be used are listed in the Netbox CSS netbox-light.css:(https://github.com/netbox-community/netbox/blob/develop/netbox/project-static/dist/netbox-light.css)The bg- must not be specified in the configuration.
Here are a few examples from the CSS:bg-indigo = #6610f2 --> 'indigo'bg-blue = #0d6efd --> 'blue'bg-purple = #6f42c1 --> 'purple'bg-pink = #d63384 --> 'pink'bg-red = #dc3545 --> 'red'bg-orange = #fd7e14 --> 'orange'bg-yellow = #ffc107 --> 'yellow'bg-green = #198754 --> 'green'bg-teal = #20c997 --> 'teal'bg-cyan = #0dcaf0 --> 'cyan'bg-gray = #adb5bd --> 'gray'bg-black = #000 --> 'black'bg-white --> 'white'FIELD_CHOICES={'netbox_systems.DocTypeChoices.device+':(('mysoftware','My Custom Device software Type','green'),)}Apply Database MigrationsApply database migrations with Netboxmanage.py:(venv) $ python manage.py migrateRestart NetboxRestart the Netbox service to apply changes:sudo systemctl restart netboxRe-index Netbox search index (Upgrade to 3.4 only)If you are upgrading from Netbox 3.2 or above to Netbox 3.4, any previously inserted software may not show up in the new search feature. To resolve this, re-index the plugin:(venv) $ python manage.py reindex netbox_systems
Package: netbox-sync-status
Netbox Sync StatusNetboxplugin that adds the capability to report system sync status backup to NetBoxIt works by having the user create a number ofSync Systems, each sync system can then report back aSync Statusfor a device, so that the end user will be able to see how it went.A full log of how all sync's went is saved so you can go back in history and view errors if needed.CompatibilityThis plugin in compatible withNetBox3.7 and later.InstallationIf Netbox was installed according to the standard installation instructions. It may be necessary to activate the virtual environment.source /opt/netbox/venv/bin/activateThe plugin is available as a Python package in pypi and can be installed with pippip install netbox-sync-statusEnable the plugin in /opt/netbox/netbox/netbox/configuration.py:PLUGINS = ["netbox-sync-status"]Restart NetBox and addnetbox-sync-statusto your local_requirements.txtScreenshotsContributingDeveloping tools for this project based onntc-netbox-plugin-onboardingrepo.Issues and pull requests are welcomed.
Package: netbox-textdatastore
netbox_textdatastoreStore raw text files for devices, like configuration files, unparsed command output or test resultsTextData Object:
'''
{
"id": Int,                # unique id
"name": String,           # Object Name, eg "device config"
'device': Device ID,      # Device ID from Netbox
'hash': String,           # Hash of your Text Data
'data': String,           # Your text data, eg Device Configfile
}
'''Example:extend python-netboxhttps://github.com/jagter/python-netbox'''
from netbox import NetBox as NetBoxOrigclass textdata(object):def __init__(self, netbox_con):
    self.netbox_con = netbox_con

def get_data(self, **kwargs):
    return self.netbox_con.get('/plugins/textdata/data/', **kwargs)

def add_data(self, device, name, hash, data,  **kwargs):
    required_fields = {
        "name": name,
        'device': device,
        'hash': hash,
        'data': data,
        }
    print(required_fields)

    return self.netbox_con.post(
        '/plugins/textdata/data/',
        required_fields,
        **kwargs
    )

def update_data_id(self, pk, **kwargs):
    return self.netbox_con.patch(
        '/plugins/textdata/data/',
        pk,
        **kwargs
    )class NetBox(NetBoxOrig):def __init__(self, host, **kwargs):
    super().__init__(host, **kwargs)
    self.textdata = textdata(self.connection)'''use it in napalm'''
def store_config(task, obj, content):
"""store config to netbox"""hasher = md5()
hasher.update(content.encode('utf-8'))
hash = hasher.hexdigest()
device_id = task.host.data["id"]
res = obj.netbox.textdata.get_data(
    device_id=device_id,
    name="device config"
)
if(len(res) > 0):
    res = res[0]
    if(res["hash"] == hash):
        print("No change")
        return
    print(obj.netbox.textdata.update_data_id(
        pk=res["pk"],
        data=content,
        hash=hash
    ))
    return
print(obj.netbox.textdata.add_data(
    device=device_id,
    name="device config",
    hash=hash,
    data=content
))def backup_config(task, obj):
""" get config from devices"""from nornir_napalm.plugins.tasks import napalm_get
device_config = task.run(task=napalm_get, getters=["config"])
task.run(
    task=store_config,
    obj=obj,
    content=device_config.result["config"]["running"]
)'''
Package: netbox-tunnels2
Netbox Tunnels PluginThis plugin is a fork ofjdrew82/netbox-tunnels-pluginandhiddenman/netbox-tunnels-pluginin an effort to support Netbox 3.4+.In Netbox 3.7, official Tunnel support was added. Please transition to using the build in feature.FeaturesThis plugin provide following Models:TunnelsTunnel TypesCompatibilityNetBox VersionPlugin VersionNetBox 3.40.2.2NetBox 3.50.2.3NetBox 3.60.2.8NetBox 3.7 >0.2.9InstallationYou can install this package from Pippip install netbox-tunnels2To install the package from sourcegit clone https://github.com/robertlynch3/netbox-tunnels2.git
cd netbox-tunnels2
source /path/to/netbox/venv/bin/activate
python3 setup.py developEnable the plugin in /opt/netbox/netbox/netbox/configuration.py:PLUGINS = ['netbox_tunnels2']Apply the migrations with Netboxmanage.py:(venv) $ python manage.py migrateRestart Netbox to apply the changes:sudo systemctl restart netboxSeeNetBox Documentationfor detailsScreenshotsTunnel ListTunnel DetailsTODOValidate the Public IP addresses belong to the DevicesValidate the same inside interface is not used by multiple tunnels
Package: netbox-tunnels-plugin
Netbox Tunnels Plugin+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+NOTE: Please be aware that this plugin is still a work in progress and should not be used for production work at this time!+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++A plugin forNetBoxto support documentation of network tunneling
protocols, ie IPsec, GRE, L2TP, etc.InstallationThe plugin is available as a Python package in pypi and can be installed with pippipinstallnetbox-tunnels-pluginOnce installed, the plugin needs to be enabled in yourconfiguration.py# In your configuration.pyPLUGINS=["netbox_tunnels"]# PLUGINS_CONFIG = {#   "netbox_tunnels": {#     ADD YOUR SETTINGS HERE#   }# }ContributingPull requests are welcomed and automatically built and tested against multiple version of Python and multiple version of NetBox through TravisCI.The project is packaged with a light development environment based ondocker-composeto help with the local development of the project and to run the tests within TravisCI.The project is following Network to Code software development guideline and is leveraging:Black, Pylint, Bandit and pydocstyle for Python linting and formatting.Django unit test to ensure the plugin is working properly.CLI Helper CommandsThe project is coming with a CLI helper based oninvoketo help setup the development environment. The commands are listed below in 3 categoriesdev environment,utilityandtesting.Each command can be executed withinvoke <command>. All commands support the arguments--netbox-verand--python-verif you want to manually define the version of Python and NetBox to use. Each command also has its own helpinvoke <command> --helpLocal dev environmentbuild            Build all docker images.
  debug            Start NetBox and its dependencies in debug mode.
  destroy          Destroy all containers and volumes.
  start            Start NetBox and its dependencies in detached mode.
  stop             Stop NetBox and its dependencies.Utilitycli              Launch a bash shell inside the running NetBox container.
  create-user      Create a new user in django (default: admin), will prompt for password.
  makemigrations   Run Make Migration in Django.
  nbshell          Launch a nbshell session.Testingtests            Run all tests for this plugin.
  pylint           Run pylint code analysis.
  pydocstyle       Run pydocstyle to validate docstring formatting adheres to NTC defined standards.
  bandit           Run bandit to validate basic static code security analysis.
  black            Run black to check that Python files adhere to its style standards.
  unittest         Run Django unit tests for the plugin.
Package: netbox-unacceptable-events-users-computers
netbox-plugin-unacceptable-events-users-computerspip3installnetbox-unacceptable-events-users-computersДобавить в файле netbox/netbox/configuration.pyPLUGINS = [
    'ptuevents'
]В командной строке./manage.py migrateПерезапустить сервер netbox.
Package: netbox-users-and-computers
Netbox plugin 'Users and Computers'Добавляет:в Netbox объект "ADUsers"в Netbox объект "Workstations"в карточки объектов virtual machine, device секцию "Risks"Позволяет связывать активы с рисками ИБ и недопустимыми событиями.УстановкаУстановить плагинpip3 install netbox-users-and-computersДобавить плагин вnetbox/netbox/netbox/configuration.py(обновить или добавить переменную):PLUGINS=['users_and_computers']Перейти в каталог с файломmanage.pyи выполнить миграцию БДpython3 manage.py migrateПерезапустить сервер netboxПроверить, что плагин появился в списке установленных плагинов в административном интерфейсе Django.
Package: netbox-vlan-manager
NetBox VLAN ManagerNetBox plugin for viewer of multiple VLAN Group spaces.PurposeEnterprise environment has a lot of routers or switches.
These devices manage VLAN each other.In many cases, these manage as one VLAN group.
On the other hand, complex network has multiple VLAN groupsFor example, below cases.Manage multi site VLAN groupsVisualize Cisco ACI Leaf Switch VLANsNetBox can manage VLAN space asVLAN Group.
However, it can one VLAN Group only.NetBox VLAN Manager manage multipleVLAN GroupasVLAN Group Set, and visualize status in tabular form such as below image.FeaturesModelsThis plugin provides following Models:VLAN Group SetManage multiple VLAN GroupAPIThis plugin provides following API:Available VLANExtract none used VID searching all VLAN GroupsCompatibilityThis plugin requires NetBoxv3.4.0or later because has migration scripts compatibility.InstallationThe plugin is available as a Python package in PyPI and can be installed with pip:pipinstallnetbox-vlan-managerEnable the plugin in /opt/netbox/netbox/netbox/configuration.pyPLUGINS=['netbox_vlan_manager']Restart NetBoxConfigurationCurrently, this plugin is not necessary plugin configurationScreenshotsVLAN Group Set ListVLAN Group View Set with VLANs
Package: netbox-vrf-context
Netbox VRF Context PluginThis is a netbox plugin for model VRF Contexts. It has dependencies on:Netbox BGP -https://pypi.org/project/netbox-bgp/Static Routes -https://github.com/jbparrish17/netbox-static-routesDevelopmentcp development/dev.env.example development/dev.env
# Set a password for POSTGRES_PASSWORD and REDIS_PASSWORD
# 
vi development/dev.env


virtualenv --python=python3.10 venv
. ./venv/usr/local/bin/activate
# pip install -r requirements.txt   (for liniting)
# or
# pip install poetry invoke
invoke build
invoke debugDeploymentThe plugin is available as a Python package in pypi and can be installed with pippip install netbox-vrf-contextEnable the plugin innetbox/netbox/configuration.pyin thePLUGINSparameter (which is a list):PLUGINS = [
    'netbox_bgp',
    'netbox_static_routes',
    'netbox-vrf-context'
]Save the file and restart the Netbox service.
Package: netbox-work-logs
Netbox Work Logs PluginThis the netbox Device/Virtual Machine work logs plugin.
You can usenetbox_work_logsplugin in Github.comInstalling Netbox Work Logs PluginThe instructions below detail the process for installing and enabling a Netbox work logs 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_work_logs==[latest version]Enable the PluginInconfiguration.py, add the plugin's name to thePLUGIINSlist:PLUGINS = [
    'netbox_work_logs',
]Configure PluginOpenconfiguration.pywith your preferred editor to begin configuring of Netbox work logs plugin. The following configuration are required only when you migrate the model of the netbox work logs plugin to the Netbox database.DEVELOPER=TrueRun Database MigrationsThe Netbox work logs plugin has 3 models related with Virtual Machine / Device work logs, and work logs categories.
To introduce these new db models, run the provided schema migrations.
Next, we can apply the migration of the Netbox_work_logs model to the database with themigratecommand(venv) $ cd /opt/netbox/netbox/
(venv) $ python3 manage.py makemigrations netbox_work_logs
(venv) $ python3 manage.py migrate netbox_work_logsRestart serviceThen, restart thenetboxandnetbox-rqservices to enable them# systemctl restart netbox netbox-rq
# systemctl restart nginxReferencePlease referNetbox plugin development document
Package: netboy
super fast web crawlerNote: this package is still in beta. Use with caution !QuickstartInstall netboy:pip install netboyUse netboy:if__name__=='__main__':setup_log('netboy')data=['http://www.bing.com',]boy=NetBoy()boy.use_queue('worker').use_spider('pycurl').use_filter(['url','title','code']).use_workers().use_triggers(['test.functional.netboy.screen.print_screen'])resp=boy.run(data)
Package: netbuild-Blizzarus
netbuildThe Python Network Building Tool (or 'netbuilder' package) is a terrific tool for students and networking
enthusiasts alike, which provides helpful functions for IP schema creation and subnetting.  It has four
primary modes, including a guide/walkthrough and a quick start variatn for both IPv4 and IPv6.You can use this tool to create a subnet plan for an IPv4 network, check address classes, check public and
private addresses (as well as special addresses), expand and/or compress an IPv6 address, and check IP ranges
or /64 network counts for an IPv6 network.
Package: netbytes
netbytesThenetbytesmodule aims to offer an easy way to handle the bytes exchanded
beetween server and clients.Warningnetbytesdoes not replace the module socket, nor package twisted or
alike. It only manages thestrexchanged via network ; in fact, you may
very well not doing any networking at all, it doesn’t care becausetechnicaly, it has nothing to do with networking, even if designed to
operate in such context.As servers and clients can only exchangestr, there is a need to
establish an arbitrary convention for representing instructions, informations,
data, etc… intostr. A common technic, is to reserve the first bytes
of the string to this purpose, and the rest of the string to contain data. And
even this data must be rigourously encoded by an arbitrary convention… If not
properly handled, the readability can quickly be a mess, and a nightmare to
maintain.This is wherenetbytesaims to be handfull : it creates a tree of all the
type of bytes that can be exchanged beetween clients and server from a model
easy to understand, and quick to design. The nodes of this tree can then be
called to produce a string ready to be sent. And on the reciever side, this
string can be processed by the tree, which call the appropriate handler. This
way, the programmer spends less time in writing code to decode and interpret
the recieved string of bytes, and the source code become a lot more readable,
and maintainable.Linksgooglecode pagegooglegroups pageNews2011-11-20 : a version 2.0 is under construction, it will support python 3 as well, and the docs will be accurate (actually there is little mistakes in it, but nothing really important). I chosed to name the next release 2.0 because the  package will be multi-file, therefore requiring a deletion of previous versions. It should come by the end of the month.
Package: netcdf2csv
Whynetcdf2csv?netcdf2csvis a opensource python package to convert NetCDF files to CSV format. This is mainly helpful for those who are working with weather data, GIS data etc.Installationpip install netcdf2csvUsagesConvert entire NetCdf file directory to csvfrom netcdf2csv import convert_dir

convert_dir(netcdf_dir,csv_dir,cleaned_csv_dir='./',clean_choice=0)net_cdf_dir = Directory containing all netcdf (.nc) filescsv_dir = Directory to output all csv files(uncleaned- containing null values)cleaned_csv_dir = Directory to output cleaned csv files (does not containing null values) (Optional)clean_choice = (0 -> if you don't need cleaned csv, 1 -> if you want cleaned csv output)Convert a single NetCdf file to csvfrom netcdf2csv import convert_dir

convert_file(filepath,csv_dir,cleaned_csv_dir,clean_choice=0)filepath = Full path of filecsv_dir = Directory to output csv files (Uncleaned - containing null)cleaned_csv_dir = Directory to output cleaned csv files (does not containing null values) (Optional)clean_choice = (0 -> if you don't need cleaned csv, 1 -> if you want cleaned csv output)DonatePlease donate to support further developement of this packagehttps://pmny.in/Sr8zto1GCbdq
Package: netCDF4
netCDF version 4 has many features not found in earlier versions of the library,
such as hierarchical groups, zlib compression, multiple unlimited dimensions,
and new data types.  It is implemented on top of HDF5.  This module implements
most of the new features, and can read and write netCDF files compatible with
older versions of the library.  The API is modelled after Scientific.IO.NetCDF,
and should be familiar to users of that module.