Saravanan666/pypi-org huggingface dataset:
Package: pynet-annek
pynetA cli tool for interacting with network switchesSynopsispynet is a cli tool for running adhoc commands and getting version information and configurations
from network devices. It stores devices in a sqlite database. It can then query those devices and
store some basic information about devices in the database.pynet supports csv import of devices to the database. If you have a bunch of network devices that
are configured via ssh and you need to retrieve version information from all of those devices, pynet
can help you accomplish that task.pynet is a basic tool created to perform some necessary tasks quickly. It is not complete by any
stretch of the imagination. The user should be willing to look at the source code and possibly
use the cli to sqlite to massage the db if necessary.
Package: pynetatmo
# PyNetatmo [![Build Status](https://travis-ci.org/fabiocody/PyNetatmo.svg?branch=master)](https://travis-ci.org/fabiocody/PyNetatmo)
Netatmo SmartHome API wrapper written in PythonThis project is still under active development.## Credits
I would like to thank [Alessandro Nichelini](https://github.com/Alenichel) for writing theSecurityclass.
Package: pyNetatmoHue
pyNetatmoHueThis repository contains the module 'pyNetatmoHue.py' (Python code) that allows you to continuously automatically adjust the colours of your Hue lights according to the measured PPM levels by your Netatmo weather station.This is usefull when you want to easily monitor the PPM level in your room so you known when you need to ventilate your room (additionally).You can speficy a Netatmo Station and Module to measure the PPM level, a Hue light that will colour as the PPM level changes and a motion sensor (optional) that check if anybody is present in the room, if not, that light will not change colour.Target AudienceThis repository is intended for (Python) Developers who would like to use this code, or ideally, would like to contribute.InstallationInstall via PIP with:sudo pip install pyNetatmoHueUse in Python like this:import pyNetatmoHue as pNH

NH2 = pNH.NetatmoHue(
    _CLIENT_ID     = "xx",
    _CLIENT_SECRET = "xxx",
    _USERNAME      = "xx.xx@gmail.com",
    _PASSWORD      = "xx%xx*",
    scope="read_station read_camera access_camera write_camera " \
                                 "read_presence access_presence write_presence read_thermostat write_thermostat",
    _BASE_URL = "https://api.netatmo.com/",
    _IP = '192.168.2.7',
    _SETTINGS = {
    "portaal" : {"station": "_ (Keuken)", "module" : "Portaal", "light":[8], "sensor":16 },
    "werkkamer" : {"station" : "_ (Pepijn)", "module" : "Werkkamer", "light":[6], "sensor":160 },
    "keuken" : {"station" : "_ (Keuken)", "light":[3,4] }
       }
)

NH2.start()API CredentialsNetatmo API credentials can be created viahttps://dev.netatmo.com/apps/. Register an APP to get a ClientID and Client Secret.ConfigurationWhen you intitiate a class instance a number of parameter values are required. The following paramters are required to obtain the CO2 levels:_CLIENT_ID_CLIENT_SECRET_USERNAME_PASSWORDscope_BASE_URLYou also need to specify the IP adress of your HUE bridge. This is done using the parameter_IP. You can find you IP adres by using your HUE app and going to 'Settings' -> 'Hue Bridges' -> 'Information Icon'.SettingsThe settings parameter consists of a nested dictionary with the rooms that each have a station or optionally also a module to retrevieve the CO2 level. The light(s) that need to be coloured in that room are specified (in a list). Finally, optionally, you can specify a motion sensor that checks for presence in the room.To obtain the light and sensor identifiers, I recommend the app 'all 4 hue'. In this app you can select a light or sensor and then choose 'show internal identifier'
Package: pynetbox
PynetboxPython API client library forNetBox.Note:Version 6.7 and later of the library only supports NetBox 3.3 and above.InstallationTo install runpip install pynetbox.Alternatively, you can clone the repo and runpython setup.py install.Quick StartThe full pynetbox API is documented onRead the Docs, but the following should be enough to get started using it.To begin, import pynetbox and instantiate the API.import pynetbox
nb = pynetbox.api(
    'http://localhost:8000',
    token='d6f4e314a5b5fefd164995169f28ae32d987704f'
)The first argument the .api() method takes is the NetBox URL. There are a handful of named arguments you can provide, but in most cases none are required to simply pull data. In order to write, thetokenargument should to be provided.QueriesThe pynetbox API is setup so that NetBox's apps are attributes of the.api()object, and in turn those apps have attribute representing each endpoint. Each endpoint has a handful of methods available to carry out actions on the endpoint. For example, in order to query all the objects in thedevicesendpoint you would do the following:>>> devices = nb.dcim.devices.all()
>>> for device in devices:
...     print(device.name)
...
test1-leaf1
test1-leaf2
test1-leaf3
>>>Note that the all() and filter() methods are generators and return an object that can be iterated over only once.  If you are going to be iterating over it repeatedly you need to either call the all() method again, or encapsulate the results in alistobject like this:>>> devices = list(nb.dcim.devices.all())Threadingpynetbox supports multithreaded calls for.filter()and.all()queries. It ishighly recommendedyou haveMAX_PAGE_SIZEin your Netbox install set to anythingexcept0orNone. The default value of1000is usually a good value to use. To enable threading, addthreading=Trueparameter to the.api:nb=pynetbox.api('http://localhost:8000',threading=True,)Alternative LibraryNote:For those interested in a different approach, there is an alternative Python API client library available for NetBox callednetbox-python. This library provides a thin Python wrapper over the NetBox API.netbox-pythonoffers a minimalistic interface to interact with NetBox's API. While it may not provide all the features available in pynetbox, it offers a lightweight and straightforward option for interfacing with NetBox.To explore further details and access the documentation, please visit thenetbox-python.
Package: pynetcat
Python based netcat utilityA really simple tool for CTFs, just import and run with no fuss.Installpip install --upgrade pynetcatExamplesImport as modulefrom pynetcat import pynetcat
nc = pynetcat()
host = 'example.host'
port = 9999
nc.connect(host,port)
print(nc.receive(8192).decode())
nc.sendLine(b"Message Here")Run as netcat CLI tool for windowspython -m pynetcat
Package: pynetcf
pynetcfBasic python classes that map to netCDF files on disk written according to theClimate and Forecast metadata conventionsThis is a first draft which has a lot of room for improvements, this is especially true for the time series based representations.CitationIf you use the software in a publication then please cite it using the Zenodo DOI.
Be aware that this badge links to the latest package version.Please select your specific version athttps://doi.org/10.5281/zenodo.846767to get the DOI of that version.
You should normally always use the DOI for the specific version of your record in citations.
This is to ensure that other researchers can access the exact research artefact you used for reproducibility.You can find additional information regarding DOI versioning athttp://help.zenodo.org/#versioningInstallationThis package should be installable through pip:pip install pynetcfContributeWe are happy if you want to contribute. Please raise an issue explaining what
is missing or if you find a bug. We will also gladly accept pull requests
against our master branch for new features or bug fixes.Development setupFor Development we also recommend acondaenvironment. You can create one
including test dependencies and debugger by runningconda env create-fenvironment.yml. This will create a newpynetcfenvironment which you can activate by usingsource activate pynetcf.GuidelinesIf you want to contribute please follow these steps:Fork the pynetcf repository to your accountmake a new feature branch from the pynetcf master branchAdd your featurePlease include tests for your contributions in one of the test directories.
We use py.test so a simple function called test_my_feature is enoughsubmit a pull request to our master branchNoteThis project has been set up using PyScaffold 4.2.3. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: pynetconsole
pynetconsoleNetConsole (also known as RIOLog) is an insecure protocol used in the FIRST
Robotics Competition to view the output of Robot programs.Version 2.x only works with RoboRIOs that are imaged for 2018 or beyond. If you
need to talk to a robot imaged prior to 2018, use pynetconsole 1.x instead.This implementation requires Python 3, and should work on Windows, Linux, and
OSX.InstallationYou can easily install this package via pip:pip install pynetconsoleUsageOn Windows, you can run netconsole like so:py -3 -m netconsoleOn OSX/Linux, you can run netconsole like so:netconsoleSupportPlease file any bugs you may find on ourgithub issues tracker.AuthorsThis implementation of the netconsole listener is derived from the RIOLog
code created by the GradleRIO project.
Package: pynetdicom2
pynetdicom2pynetdicom2 is a pure python package implementing the DICOM network protocol.
This library is a fork/rewrite of the original pynetdicom that can be found herehttp://pynetdicom.googlecode.com. Library is not backwards compatible with
original pynetdicom.Library is build on top of pydicom, which is used for reading/writing DICOM
datasets. Pynetdicom2 provides implementation for commonly used DICOM services
such as Storage, Query/Retrieve, Verification, etc.DICOM is a standard (http://medical.nema.org) for communicating medical images
and related information such as reports and radiotherapy objects.RoadmapDocumentation should really be improved (proper tutorial, some examples)Better test suit (some necessary unit tests and integration tests are
missing)Stability and performance improvements. In its current state library performs
‘good enough’, but certainly there is still room for improvement.
Package: pynetem
pynetemPyNetem is a tool that allow the user to limit the bandwidth or simulate weak network.
It does so by using iproute's tc command, but greatly simplifies its operation.
And provide apis if you need in your work.Installationpip install pynetemHow to Use It?In command mode, typepynetem -h, you will see help information, parameters in this tool is same as 'tc/netem'.If the host cannot download package from PyPI, you can use PyNetem (>=0.1.2) in your PC (no mater Windows or Linux) with the following parameters in addition:--hostThehostIP,whichyouwillsendcommandto
--usrnameTheusernameofhost
--passwordThepasswordofhostYou can also use original command oftc/netem.
For more information abouttc/netem, you can click here:netemIt is recommended to use web mode, when you have several hosts to control, or you want to build a web page for easier usage.Run in web mode:pynetem --web, default port is 8899, you can specify by yourselfpynetem --web --port=9090There are 8 APIs:[GET] /pynetem/help                                     -- Get demo post data and simple description
[GET] /pynetem/listInterfaces                           -- Get interfaces name of host
[GET] /pynetem/getRules?eth=<interface name>            -- Get qdisc rules by interface
[GET/DELETE] /pynetem/clear?eth=<interface name>        -- Clear all rules
[POST] /pynetem/setRules?eth=<interface name>           -- Set tc qdisc rule

[POST] /pynetem/brctl/addbr                             -- Set bridge, the bridge name is pynetem_bridge by defaut
[GET/DELETE] /pynetem/brctl/delbr                       -- Delete pynetem_bridge
[POST] /pynetem/brctl/addif                             -- Add interface(s) to pynetem_bridgePost Body, if you set parameterNoneor'', the parameter will be ignored.Format for the options is the same astc-netem's andtc-tbf's.[POST] /pynetem/setRules?eth=<interface name>{"delay":"100ms 10ms 25%","distribution":"normal","reorder":"25% 50%","loss":"0.3% 25%","duplicate":"1%","corrupt":"0.1%",# Bitrate control using Netem"netem_rate":"256kbit","netem_limit":3000,# Bitrate control using TBF"rate":"256kbit","buffer":1600,"limit":3000,"dst":"10.10.10.0/24"}netem_rateandrateare mutually exclusive.buffer,limit, anddstcan only be used ifrateis set.[POST] /pynetem/brctl/addbrstpis "on" by default.{"interfaces":["eth0","eth1"],"stp":"on"}[POST] /pynetem/brctl/addif{"interfaces":["eth2"]}ATTENTION!When you pressctrl + cto stop the web server,ALL qdisc rules in all interfaces AND the pynetem_bridgewill be cleared automatically.
Package: pynetest
Pyne Testing FrameworkPyne is a BDD style testing framework for Python. It's styled after frameworks for other languages like Mocha, Jasmine, Spectrum, and Rspec.An example pyne test:@pynedefsome_file():@describe("when two numbers are added together")def_():@before_eachdef_(self):self.calculator=Calculator()@it("returns the sum")def_(self):expect(self.calculator.calculate("22 + 11")).to_be(33)You can see more examples in theexamples folderRunning testsRun a filepythonsome_test.pyRun all testsTo run all the tests in a directory, you can use the cli:./pyne/cli.pyRun only some testsYou can focus on a single test by using@fitinstead of@itOr a single describe block by using@fdescribeinstead of@describeUsing Test DoublesSpyingIn order to spy on an instances methods:frompyne.expectationsimportexpectfrompyne.pyne_test_collectorimportbefore_each,describe,itfrompyne.test_doubles.spyimportstubfromsome_moduleimportSomeClass@describe("SomeClass")def_():@before_eachdef_(self):self.class_instance=SomeClass()stub(self.class_instance,self.class_instance.some_method)@it("gets called with something")def_(self):self.class_instance.some_method("something")expect(self.class_instance.some_method).was_called_with("something")If you need the method to still return something, you scan specify what it returns:@before_eachdef_(self):self.class_instance=SomeClass()stub(self.class_instance,self.class_instance.some_method)self.class_instance.some_method.returns("some value")Contribution / DevelopmentFor instructions on how to contribute to Pyne, readCONTRIBUTING.md
Package: pynetester
network tester for python概述pynetester模块是使用Python编写纠删码支持模块。工程主页:https://github.com/zoumingzhe/pynetester下载地址:https://pypi.python.org/pypi/pynetester法律许可: MITlicense, (C) 2021ZouMingzhe<zoumingzhe@qq.com>安装通过pip命令安装pynetester模块：pip install pynetester如果已经安装pynetester模块，可以通过pip命令更新：pip install--upgradepynetester更多安装信息请查阅安装文档。文档API（应用程序接口）文档、用法和例程可查阅documentation目录下的文档。.rst后缀文件可以在任何文本编辑器中查看或者使用Sphinx转换成HTML或PDF格式例程例程存放在工程文件的examples目录下。测试单元测试存放在工程文件的test目录下。支持本项目由ZouMingzhe<zoumingzhe@qq.com> 创建并维护。为了完善pynetester模块的功能，欢迎您贡献代码至:https://github.com/zoumingzhe/pynetester语言简体中文English
Package: pynetfilter_conntrack
libnetfilter_conntrack is a library to manage Linux firewall NetFilter.
pynetfilter_conntrack is a Python binding of this library.  The binding is the
file pynetfilter_conntrack.py and you have also a clone of conntrack program:
conntrack.py.conntrack.pyconntrack.py is a clone of conntrack C program. Features:List connections ;Export connections to XML document ;Delete connection.For all commands, you can filter connections with:source/destination address from original/reply destination ;layer 3 and 4 protocols ;source/destination port from original/reply destination (protocols tcp,
udp and sctp).InstallationRun this command as root:./setup.py installOr using sudo program:sudo python setup.py installDependenciesLinux kernel: 2.6.14+http://www.kernel.org/libnetfilter_conntrack 0.0.75+ (May 2007)http://www.netfilter.org/projects/libnetfilter_conntrack/Python 2.3+http://www.python.org/IPy 0.50+http://software.inl.fr/trac/trac.cgi/wiki/IPyDebian package: python-ipyctypes 1.0+ (only for Python < 2.5)http://starship.python.net/crew/theller/ctypes/Debian package: python-ctypesChangeLogRelease 0.5 (2008-09-29)New classes for EXPECT manipulation, Expect and ExpectEntryRemove Conntrack.destroy_conntrack(), replaced by ConntrackEntry.destroy()ConntrackEntry IP (v4 and v6) attributes are now IPy.IP objectsRemove hashtuple attribute from ConntrackEntryBUGFIX: Don’t convert endian (ntohl) when reading entry.status valueWrite cnetfilter_conntrack: Python binding of the
libnetfilter_conntrack library written in CRelease 0.4.2 (2007-10-16)Fix ConntrackEntry._getAttr() for Python 2.3Release 0.4.1Fix ConntrackEntry.hashtuple for layer3 different than IPv4 and IPV6Use correct bitmask with ntohs() in ConntrackEntry._getAttr()Release 0.4Rewrite from scratch for new libnetfilter_conntrackRelease 0.3.1Add debian/ subdirectory for Debian and Ubuntu packagingRelease 0.3Compliance with ‘pickle’Minor enhancements in APIRelease 0.2Python 2.3 compliantUse ElementTree (or cElementTree) to generate XML outputnfct_address: add getIP(), returns a IPy.IP() objectFix minor bugs in ConntrackTable.filter()setup.py: add requires (used by setuptools)
Package: pynetgear
pyNetgearpyNetgear provides an easy to use Python API to control your Netgear router. It uses the SOAP-api on modern Netgear routers to communicate. It is built by reverse engineering the requests made by theNETGEAR Genie app.pyNetgear works with Python 2 and 3.If you are connected to the network of the Netgear router, a host is optional.
If you are connected via a wired connection to the Netgear router, a password is optional.
The username defaults to admin.
The port defaults to 5000.
The ssl defaults to false.
You can specify url and it will take precedence on host/port/ssl parameters.
This allows the use of HTTPS,https://orbilogin.comfor example.It currently supports the following operations:loginLogs in to the router. Will return True or False to indicate success.get_attached_devicesReturns a list of named tuples describing the device signal, ip, name, mac, type, link_rate and allow_or_block.get_attached_devices_2Returns a list of named tuples describing the device signal, ip, name, mac, type, link_rate, allow_or_block, device_type, device_model, ssid and conn_ap_mac.This call is slower and probably heavier on the router load.get_traffic_meterReturn a dict containing the traffic meter information from the router (if enabled in the webinterface).allow_block_deviceAllows user to block/unblock devices from accessing router by specifying mac_addr and new device_status (Block/Allow)Note:In order to use this function, Remote Managementmustbe enabled in the router's admin settings.InstallationYou can install PyNetgear from PyPi usingpip3 install pynetgear(usepipif you're still using Python 2).UsageTo test run from the console:$ python -m pynetgear [<pass>] [<host>] [<user>] [<port>] [<ssl>]To use within your Python scripts:frompynetgearimportNetgearnetgear=Netgear(password=mypassword)foriinnetgear.get_attached_devices():printiSupported routersIt has been tested with the Netgear R6300 router and the Netgear WNDR4500 router. According to the NETGEAR Genie app description, the following routers should work:Netgear OrbiNetgear R7800Netgear R7500v2 (Port 80)Netgear R7000Netgear R6900Netgear R6300Netgear R6250Netgear R6200Netgear R6100Netgear N300 - Model: C3000 (Port 80)Netgear Centria (WNDR4700, WND4720)Netgear WNDR4500Netgear WNDR4300Netgear WNDR4000Netgear WNDR3800Netgear WNDR3700v3Netgear WNDR3700v2Netgear WNDR3400v2Netgear WNR3500Lv2Netgear WNR2200Netgear WNR2000v3Netgear WNR2000v4 (Port 80)Netgear WNR1500Netgear WNR1000v2Netgear WNR1000v3Netgear WNDRMACNetgear WNR612v2
Package: pynetlify
Python library and simple command line client to interact with Netlify REST API. Tested with Python versions 2.7, 3.5, 3.6, 3.7.Requires Netlify account with an active authentication token. Visithttps://www.netlify.com/docs/cli/#authenticationfor more information.InstallPyNetlify is available to install from PyPI:pip install pynetlifyUse as a command line clientConfigure by setting your personal Netlify authentication token to pynetlify.ini file at current working directory. Example pynetlify.ini:[netlify]
auth-token = <personal-authentication-token>Create a new sitepython-mpynetlifycreate_siteDeploy folder to a sitepython-mpynetlifydeploy_folder--site-id<site-id><folder-to-deploy>List sitespython-mpynetlifylist_sitesDelete sitepython-mpynetlifydelete_site<site-id>Print command line helppython-mpynetlify--helpPrint help for specific subcommandpython-mpynetlify<subcommand>--helpUse as a Python libraryImport and create APIRequest object.frompynetlifyimportpynetlifyapi_request=pynetlify.APIRequest('auth_token')Create site.newly_created_site=api_request.create_site({'name':'newly-created-site'})See pynetlify.py source for more.
Package: pynetlinux
# pynetlinux: Linux network configuration library for PythonThis library contains Python bindings to ioctl calls### FeaturesifconfigList interfacesBringing interfaces up and downSetting and getting the IP address and netmaskSetting and getting link modeEthernet flow controlRetrieve interface statistics (bytes/packets tx/rx, etc)brctlCreate and destroy bridgesAdd/remove interfaces to bridgesSet forwarding delaytapCreate and destroy tapsFile object APIrouteGet default gateway / interface### ContributorsRoman LisagorSam RobertsAnoop KarollilRichard Feng
Package: pynetlogo
pynetlogoAn interface to accessNetLogofrom
Python. The interface offers methods for executing commands and returning
values from reporters. It can be used with the NetLogo graphical user
interface, or without (i.e., in headless mode). pynetlogo is compatible with
NetLogo 6.1 and newer and supports NetLogo extensions.Documentation:http://pynetlogo.readthedocs.io/en/latest/Requirements:JPype,NumPy,SciPy,pandasInstallation:Available with the pip package
manager:pip install pynetlogoSeethe installation instructionsfor more detailsCitationIf you use this library for any academic work, please cite
Jaxa-Rozen & Kwakkel (2018) PyNetLogo: Linking NetLogo with Python, Journal of
Artificial Societies and Social Simulation, 21 (2) 4http://jasss.soc.surrey.ac.uk/21/2/4.html, DOI: 10.18564/jasss.3668ReleasesThe release process has been updated starting at the 0.5 release. To create a new release, follow the following steps:Go toReleasesin the GitHub UI and press theDraft a new releasebuttonSet the upcoming tag in theChoose a tagandRelease title(i.e.0.6) fieldsTherelease.ymlCI workflow should now automatically create and upload the package to PyPI. Check if this happened onPyPI.org.Finally, open a new PR in which the version number inema_workbench/init.pyis updated towards the next release (i.e."2.4.0-dev").
Package: pynetstim
pynetstimpynetstim is a python module that aims to create an integrated framework for brain network stimulation, stimulation targeting and engagement, visualization, and stimulation individualization using multimodal imaging.Dependenciespython>=3.5ScipyNilearnNibabelPysurferPandasNipypeMNEMayaviInstallPlease make sure you have installed all the dependencies listed above. pynetstim can ben installed by running the following command:` pip install-U--userpynetstim `