Saravanan666/pypi-org huggingface dataset:
Package: netgate-xml-to-xlsx
Netgate Firewall ConverterThenetgate-xml-to-xlsxapplication converts a standard Netgate firewall .xml configuration file to an .xlsx spreadsheet with multiple tabs.We've run the current implementation on a handful of our own XML firewall rules, however there's are probably some complex XML elements that will throw warnings when you run on your own files.If you have a piece of XML that doesn't parse please extract a minimal portion (starting at the pfsense root) and open a ticket (better yet, modify the plugin and provide a pull request).What is implemented?First pass of XML elements in a base Netgate firewall installation.Installed packages:haproxyRequirementsPython 3.10+.Netgate firewall XML version 21.x or 22.x.InstallationRecommend installing this with pipx:pipx install netgate-xml-to-xlsxOr into a virtual environment.python -m pip install netgate-xml-to-xlsxOnce installed, thenetgate-xml-to-xlsxcommand is available on your path.Configuration fileThe script requires a configuration file calledplugins.tomlin the current working directory when you run the script.
Download the sample from the GitLabrepository.
Theplugins.tomlfile defines the plugins to run as well as the order in which they are run.
The default order to to run all standard plugins in alphabetical order followed by the installed packages in alphabetical order.UsageHelp# Display help
netgate-xml-to-xlsx --helpSanitize Before UseNetgate configuration files contains sensitive information.
The XML file must be sanitized before processing.
The original (unsanitized) file is deleted.# Sanitize Netgate configuration file(s) for review.
netgate-xml-to-xlsx --sanitize firewall-config.xml
netgate-xml-to-xlsx --sanitize dir/*.xmlConvert to SpreadsheetBy default, output is sent to the./outputdirectory.Use the--output-dirparameter to set a specific output directory.The output filename is the input filename with.xlsxattached to the end.# Convert a Netgate firewall configuration file.
netgate-xml-to-xlsx firewall-config.xml

# Convert all files in a directory.
netgate-xml-to-xlsx /fwalls/*-sanitized.xmlImplementation NotesPluginsEach top-level (or installed package) element is implemented in a separate plugin.
The plugin name matches the XML element being processed.Some advantages to implementing plugins:Simplifies testing.
Plugins parse XML and return a list of rows to be output.
Plugins do not do their own output.
Test provide source XML and check the returned rows.There are numerous Netgate plugins which I'll probably never see.
You can add your own plugins, along with tests.Nosec on lxml importsThe#nosecflag is added to the lxml imports as the lxml parsing is not a security concern in this environment.assertsAsserts are used throughout to:provide mypy guidancecheck for unexpected data as we're working from XML samples and not a specification.Cookiecutter Referencescookiecutter-hypermodern-pythoncookiecutter-poetry
Package: net-genconfig
net-genconfigThis package generates configurations for network devices based on three
sources of information:roles -- these Jinja2 templates form the basis of an output
configuration file and exist for each platform and device role (e.g.
IOS as distribution router; IOS as core router, NX-OS as core router,
NX-OS as row switch)include -- Jinja2 includes (some to be included 'as is' [.j2] and
some with macros that can be called [.j2m]); these are included by
the role templates and by each otherinventory -- this is a big database of device details (including the role for
a particular device) and associated information, such as VLANs, subnets,
interfaces, etc.
Package: netherrack
NetherrackWelcome to the Netherrack documentation. Netherrack is a tool to convert Python code into DF code templates. This project is based onPrismarine, another tool to convert JavaScript code into DF.DocsDiscordInstallationTo install Netherrack, use the PyPi command:python3-mpipinstallnetherrackAnd done! To use Netherrack in your project, you can import it like this:fromnetherrackimportnetherrackAnd as for Netherite, the add-on for this library with a collection of pre-built functions:fromnetherrackimportnetheriteSee the documentation for more info.
Package: neticle-textanalysis-api-sdk
Who we areNeticle's proprietary sentiment and semantic analysis technology works with outstanding human-level precision. We know how to get insights automatically from texts and we build products and services applying this technology.About this packageNeticle Text Analysisprovides market leading, humanly accurate sentiment and semantic analysis toolkits for in-house corporate use. Or are you looking for NLP (natural language processing)? Yes, that's what we do.Getting StartedThis package was meant to use with Neticle's Text Analysis API. For further information please visit the project'shome page.Start with importing the package into your project:fromtextanalysis_python_sdkimportNeticleException,TextAnalysis,TextSplitTypeAfter this you can easily use the API with the following code snippet:textAnalysisApi=TextAnalysis(token='REPLACE-WITH-YOUR-TOKEN')neticleTextAnalysisAnswer=Nonetry:neticleTextAnalysisAnswer=textAnalysisApi.getTextAnalyzed(language='en',input='This is a very good example text.',textSplitType=TextSplitType.SENTENCE)exceptNeticleExceptionase:print('Something went wrong while getting the answer from Neticle Text Analysis API! The error message is: '+str(e))# Few example methods:print('The provided text decorated with HTML spans around recognized entities, synonyms and phrases: '+neticleTextAnalysisAnswer.getFullHTMLText())print('The overall sentiment score (opinion index) calculated from the provided text: '+str(neticleTextAnalysisAnswer.getOpinionIndex()))# For a detailed description of provided methods please refer to the TextAnalysisAnswer class's documentation.
Package: neticspy
Python implementation of NetICS.Free software: MIT licenseInstallationpip install neticspyYou can also install the in-development version with:pip install https://github.com/bhi-kimlab/neticspy/archive/master.zipDocumentationhttps://pyNetICS.readthedocs.io/DevelopmentTo run all the tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxChangelog0.0.0 (2020-11-18)First release on PyPI.
Package: netilion-api
netilion-apiThis is a python client to acccessNetilionREST API.Swagger UI can be found atStaging APIorProduction APIPlease visit our developer portal for further instructions and information:https://developer.netilion.endress.com/This Python package is automatically generated by theSwagger Codegenproject.Requirements.Python 3.4+Usageimportnetilion_apifromnetilion_api.restimportApiExceptionconfiguration=netilion_api.Configuration()configuration.host='https://api.staging-env.iiot.endress.com/v1'# FOR BASIC AUTHconfiguration.api_key['API-Key']='YOUR_BASIC_API_KEY'configuration.username='YOUR_USERNAME'configuration.password='YOUR_PASSWORD'# !OR!# FOR OAUTH 2 PASSWORD GRANTconfiguration.auth_type=netilion_api.AuthType.OAUTH_PASSWORD_GRANTconfiguration.oauth_password_grant=netilion_api.OAuthPasswordGrant(username="YOUR_USERNAME",password="YOUR_PASSWORD",api_key="YOUR_OAUTH_API_KEY",# sometimes referred also as client idapi_secret="YOUR_OAUTH_API_SECRET",# sometimes referred also as client secretoauth_token_url="https://api.staging-env.netilion.endress.com/oauth/token")# full list of APIs see in swagger https://api.staging-env.netilion.endress.com/doc/v1/api_instance=netilion_api.AssetApi(netilion_api.ApiClient(configuration))try:# full list of requests see in swagger https://api.staging-env.netilion.endress.com/doc/v1/api_response=api_instance.get_assets()print(api_response)exceptApiExceptionase:print("Exception when calling AssetApi->get_assets:%s\n"%e)
Package: netilion-lab-tab-api
netilion-lab-tab-apiThis is a python client to acccessNetilionREST API.Swagger UI can be found atStaging APIIMPORTANT: this library is for Lab part of API!Please visit our developer portal for further instructions and information:https://developer.netilion.endress.com/This Python package is automatically generated by theSwagger Codegenproject.Requirements.Python 3.4+Usageimportnetilion_lab_tab_apifromnetilion_lab_tab_api.restimportApiExceptionconfiguration=netilion_lab_tab_api.Configuration()configuration.host='https://api.staging-env.iiot.endress.com/v1'# FOR BASIC AUTHconfiguration.api_key['API-Key']='YOUR_BASIC_API_KEY'configuration.username='YOUR_USERNAME'configuration.password='YOUR_PASSWORD'# !OR!# FOR OAUTH 2 PASSWORD GRANTconfiguration.auth_type=netilion_lab_tab_api.AuthType.OAUTH_PASSWORD_GRANTconfiguration.oauth_password_grant=netilion_lab_tab_api.OAuthPasswordGrant(username="YOUR_USERNAME",password="YOUR_PASSWORD",api_key="YOUR_OAUTH_API_KEY",# sometimes referred also as client idapi_secret="YOUR_OAUTH_API_SECRET",# sometimes referred also as client secretoauth_token_url="https://api.staging-env.netilion.endress.com/oauth/token")# create an instance of the API classapi_lab_instance_batch=netilion_lab_tab_api.BatchApi(netilion_lab_tab_api.ApiClient(configuration))try:api_response=api_lab_instance_batch.get_batches();print(api_response)exceptApiExceptionase:print("Exception:%s\n"%e)
Package: netimages
NetImages - tool for sniffing images over HTTP traffic and showing them on the console.
Designed for remote shells.Uses an 8-bit greyscale for relaying over telnet, file pipes, etc.Uses ANSI 256 color codes for relaying on a color-supported shell (e.g. Xterm)Supports either a recorded PCAP file (from Wireshark or similar), or listening to traffic on a specified interface.InstallationInstall via PyPi using python pip:$python3-mpipinstallnetimagesUsageusage: netimages [-h] [-i IFACE] [-f FILTER] [--no-colors] [pcap]NetImages - tool for sniffing images over HTTP traffic and showing them on the console. Designed for remote shellspositional arguments:pcap                  Path to a pcap fileoptional arguments:-h, --help            show this help message and exit-i IFACE, --iface IFACEInterface to capture-f FILTER, --filter FILTERBPF filter string--no-colors           No ANSI coloringsScreenshotHandling TLS (HTTPS)To capture and decrypt TLS packets, useWireshark TLS decrypytion.
Package: netin
NetIn is a python package for network inference.
It is based on the NetworkX package and provides a set of methods to study network inequalities.
The package is currently under development and will be updated regularly.Website:https://www.networkinequality.comDocumentation:https://cshvienna.github.io/NetworkInequalitiesSource:https://github.com/CSHVienna/NetworkInequalitiesBug reports:https://github.com/CSHVienna/NetworkInequalities/issuesGitHub Discussions:https://github.com/CSHVienna/NetworkInequalities/discussionsMailing list:https://groups.google.com/forum/#!forum/netin-devSimple examplesCreate an undirected network with preferential attachment and homophily.>>>fromnetinimportPAH>>>G=PAH(n=200,k=2,f_m=0.2,h_MM=0.1,h_mm=0.9,seed=42)>>>G.generate()>>>G.info()Create a directed network with preferential attachment and homophily.>>>fromnetinimportDPAH>>>G=DPAH(n=200,f_m=0.2,d=0.02,h_MM=0.1,h_mm=0.6,plo_M=2.0,plo_m=2.0,seed=42)>>>G.generate()>>>G.info()InstallInstall the latest version of NetIn:$ pip install netinInstall from source:$ git clone
$ cd NetworkInequalities
$ pip install -e .BugsPlease report any bugs that you findhere.
Or, even better, fork the repository onGitHuband create a pull request (PR). We welcome all changes, big or small, and we
will help you make the PR if you are new togit.LicenseReleased under Creative Commons by-nc-sa 4.0 (seeLICENSE):Copyright (C) 2023-2024 NetIn Developers
Fariba Karimi <karimi@csh.ac.at>
Lisette Espin-Noboa <espin@csh.ac.at>
Jan Bachmann <bachmann@csh.ac.at>
Package: netinfo
This is an abstract python library built on top of theNetinfoservice. It is preferred that users use this library when implementing integrations or plan to use Netinfo within their code. The library includes a small client to interact with the API.Quick StartInstall the library:pip install  netinfoorpython setup.py installEnsure you are running a local Netinfo service:Perform enrichmentnetinfo enrich-q74.96.94.146-tipFeaturesWrapper to call endpoints from NetinfoChangelog02-14-19Initial release
Package: netio-pdu-control
netio-pdu-controlLibrary for control and monitoring of Netio PowerPDU devices over LAN.This library has been implemented by IFAE (www.ifae.es) control software department.CLI toolYou may run the terminal client withpython -m netio_pdu_control. By default it assumes thatnetio_pdu_credentials.cfgis in the same folder or XDG's config home or directories. A different path can be specified with the argument--credentials / -c.Please run the-h / --helpargument for a description of every argument.Credentials file example[office01]
EntryPoint = http://172.16.7.225
ReadUser = read
ReadPassword = read
WriteUser = write
WritePassword = write

[workshop]
EntryPoint = http://172.16.7.226
ReadUser = read
ReadPassword = read
WriteUser = segona
WritePassword = segona

[lab]
EntryPoint = http://192.168.4.20
ReadUser = admin
ReadPassword = 1234
WriteUser = admin
WritePassword = 1234
Package: netius
Fast and readable async non-blocking network appsNetius is a Python network library that can be used for the rapid creation of asynchronous non-blocking
servers and clients. It has no dependencies, it’s cross-platform, and brings some sample netius-powered
servers out of the box, namely a production-ready WSGI server.Simplicity and performance are the main drivers of this project. The codebase adheres to very strict
code standards, and is extensively commented; and as far as performance is concerned, it aims to
be up to par with equivalent native implementations, wherePyPycan be used to
provide the extra boost to raise performance up to these standards.Installationpip install netiusUsageWSGI Serverimportnetius.serversdefapp(environ,start_response):status="200 OK"contents="Hello World"content_l=len(contents)headers=(("Content-Length",content_l),("Content-Type","text/plain"),("Connection","keep-alive"))start_response(status,headers)yieldcontentsserver=netius.servers.WSGIServer(app=app)server.serve(port=8080)MoreFor more information consult thewebsite.
Package: netizenship
NetizenshipThis is a commandline tool to find the online presence of a username in popular social media websites like Facebook, Instagram, Twitter, etc.InstallationInstall this tool via following commandsudo pip3 install netizenshipUsageOnce the tool is installed, run it by executing the commandnetizenshipand then enter the username to search forContributeThis tool is presently at infant stage. I highly appreciate improvements and suggestions.LicenseMIT LicenseCopyright (c) 2020 Rahul RajRead full licensehere
Package: netjsonconfig
Netjsonconfig is a part of theOpenWISP projectand it’s the official
configuration engine ofOpenWISP 2.netjsonconfigis a python library that convertsNetJSONDeviceConfigurationobjects into real router configurations that can be installed
on systems likeOpenWRT,LEDEorOpenWisp Firmware.Its main features are listed below for your reference:OpenWRT/LEDEsupportOpenWisp FirmwaresupportOpenVPNsupportWireGuardsupportPossibility to support more firmwares via custom backendsBased on theNetJSON RFCValidationbased onJSON-SchemaTemplates: store common configurations in templatesMultiple template inheritance: reduce repetition to the minimumFile inclusion: easy inclusion of arbitrary files in configuration packagesVariables: reference variables in the configurationCommand line utility: easy to use from shell scripts or from other programming languagesDocumentation|Change log|Support channels|Issue Tracker|License
Package: netjson-rest
netjson-restA simple flask rest API's to convert from json config to openwrt and vice versaThe code is Python 2, but Python 3 compatible.Installationpip install netjson-restFor a manual installationmkdir netjson-rest
   wget git@github.com:umeshahp/netjson-rest.git
   cd netjson-rest
   python setup.py install
   cd netjsonFlaskRest
   python flaskRestAPI.py##Usage:Invoke this API to convert from json  to openwrt byhttp://IP:6000/api/v1/netjson-config/jsontoopenwrt/data = {
    "hostname" :  "spanidea",
    "timezone" :  "IST",
    "radios" : [{
    "name" : "Spanidea",
    "protocol" : "802.11ac" ,
    "channel" : 36,
    "channel_width" : 20,
    "tx_power " : 10,
    "country" : "IN"

        }
]
,
"wireless": [
        {
            "name": "lo",
            "type": "wireless",
            "addresses": [
                {
                    "address": "127.0.0.1",
                    "mask": 8,
                    "proto": "static",
                    "family": "ipv4"
                }
            ]
        }
    ]
}request above endpoint from pythonx = request.post(data =data, url = 'http://<IP>:6000/api/v1/netjson-config/jsontoopenwrt/')##Call this to convert from  openwrt to json : http://:6000/api/v1/netjson-config/openwrttojson/Example to request from  pythonmultipart_form_data = {
    'file2': ('custom_file_name.zip', open('myfile.zip', 'rb')),
    'action': (None, 'store'),
    'path': (None, '/path1')
}

x = request.post(data = multipart_form_data , url = 'http://<IP>:6000/api/v1/netjson-config/openwrttojson/', files=multipart_form_data )
Package: netkeiba
netkeibaA reusable Django app which crawls and imports race data from netkeiba.comInstallationInstall with pippipinstallnetkeibaAdd to your existing django project# settings.py
INSTALLED_APPS = [
    ...
    'netkeiba'
]You should now be able to use netkeiba commands and models.UsageExtract and import all data from races between 2018-01-01 ~ 2019-01-01pythonmanage.pypipeline--min-date2018-01-01--max-date2019-01-01
Package: netkiller-devops
DevOps ToolsOS Software Configure ManagmentInstallpip install netkiller-devops -i https://pypi.tuna.tsinghua.edu.cn/simpleDockerroot@netkiller ~# docker run --rm -it --name=netkiller --entrypoint=sh netkiller-devops:latestPATH Variable$ cp share/profile.d/devops.sh /etc/profile.d/

or 

$ cat >> /etc/profile.d/devops.sh <<'EOF'
export PATH=/srv/devops/bin:$PATH
EOFDeploymentSoftware deployment tools.Ubuntu 编译安装$ cd /usr/local/src/
$ git clone https://github.com/netkiller/devops.git
$ cd devops
$ python3 setup.py sdist
$ python3 setup.py installCentOS 编译安装$ cd /usr/local/src/
$ git clone https://github.com/netkiller/devops.git
$ cd devops
$ python3 setup.py sdist
$ python3 setup.py install --prefix=/srv/devops

or

python36 setup.py sdist
python36 setup.py install --prefix=/srv/devopsBackupData backup tools.Database backup.OS Configuration file versioningosconf.DonationsWe accept PayPal through:https://www.paypal.me/netkillerWechat (微信) / Alipay (支付宝) 打赏:https://www.netkiller.cn/home/donations.html
Package: netkiller-logging
loggingInstall[root@localhost ~]# pip3 install netkiller-logging

[root@localhost ~]# whereis rlog 
rlog: /usr/local/bin/rlog

[root@localhost ~]# rlog 
Usage: rlog [options] filename

Options:
-h, --help            show this help message and exit
-H localhost, --host=localhost
						push log to remote host
-p 1214, --port=1214  port
--sleep=0.05          with -s, sleep  for  approximately S  seconds between
						iterations
-d, --daemon          run as daemon
-f, --full            Full text
--stdin               cat file | prog ...
-e /tmp/rlog.log, --errlog=/tmp/rlog.log
						error log
--postion             save postion of log file

Homepage: http://netkiller.github.io	Author: Neo <netkiller@msn.com>Source$ git clone https://github.com/netkiller/logging.git
$ cd logging
$ python3 setup.py sdist
$ python3 setup.py install

cp init.d/ulog /etc/init.d/
chkconfig --add ulog
chkconfig ulog onExample$ rlog
Usage: rlog [options] filename

Options:
  -h, --help            show this help message and exit
  -H localhost, --host=localhost
						push log to remote host
  -p 1214, --port=1214  port
  --sleep=0.1           with -s, sleep  for  approximately S  seconds between
						iterations
  -d, --daemon          run as daemon
  -f, --full            Full text
  --stdin               cat file | prog ...

  Homepage: http://netkiller.github.io	Author: Neo <netkiller@msn.com>Send logs$ rlog /var/log/nginx/access.log
b'192.168.6.20 - - [11/Dec/2014:15:51:24 +0800] "GET /home/about.html HTTP/1.1" 200 7802 "http://192.168.6.2/home/download.epub.html" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36"\n'
b'192.168.6.20 - - [11/Dec/2014:15:51:24 +0800] "GET /stylesheet.css HTTP/1.1" 304 0 "http://192.168.6.2/home/about.html" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36"\n'

# Send log to 192.168.2.1
$ rlog -H192.168.2.1 -p1214 /var/log/nginx/access.log	

# Full text log to 192.168.2.1
$ rlog -H192.168.2.1 -p1214 -f /var/log/nginx/access.log	

# Daemon mode
$ rlog -H192.168.2.1 -p1214 -d /var/log/nginx/access.log

# Stdin
$ cat /var/log/nginx/access.log | rlog -H 127.0.0.1 --stdinLogs collection$ collection 
Usage: collection [options] module

Options:
  -h, --help            show this help message and exit
  -p 1214, --port=1214  port
  -l /tmp/test.log, --logfile=/tmp/test.log
						log file
  --list                show module message
  -d, --daemon          run as daemon

  Homepage: http://netkiller.github.io	Author: Neo <netkiller@msn.com>

# show log from port 1214
$ collection -p 1214

# Save log to file from port 1214
$ collection -p 1214 -l /tmp/test.logAudit logAudit log tools.