Saravanan666/pypi-org huggingface dataset:
Package: pynat
Discover external IP addresses and NAT topologies using STUN (Simple Traversal of UDP Through Network Address Translators).PyNAT followsRFC 3489, and is inspired by a similar program for
Python 2.x calledPyStun. PyNAT supports Python 2.7 and later.InstallationPyNAT requires Python 2.7 or later.From PyPIInstall PyNAT by runningpip3 install pynatfrom the command line.NoteOn some Linux systems, installation may require running pip with root permissions, or runningpip3 install pynat--user. The latter may require exporting~/.local/binto PATH.From GitHubClone or download thegit repo, navigate to the directory, and run:python3 setup.py sdist
cd dist
pip3 install pynat-<version>.tar.gzUsageTo get information about the network topology and external IP/port used, runpynat:Network type: UDP Firewall
Internal address: 127.0.0.1:54320
External address: 127.0.0.1:54320Runpynat-horpynat--helpfor more options:usage: pynat [-h] [--source_ip SOURCE_IP] [--source-port SOURCE_PORT]
             [--stun-host STUN_HOST] [--stun-port STUN_PORT]

PyNAT v0.0.0 Discover external IP addresses and NAT topologies using STUN.
Copyright (C) 2018 Ariel Antonitis. Licensed under the MIT License.

optional arguments:
  -h, --help            show this help message and exit
  --source_ip SOURCE_IP
                        The source IPv4/IPv6 address to bind to.
  --source-port SOURCE_PORT
                        The source port to bind to.
  --stun-host STUN_HOST
                        The STUN host to use for queries.
  --stun-port STUN_PORT
                        The port of the STUN host to use for queries.To use PyNAT inside a Python shell or project:from pynat import get_ip_info
topology, ext_ip, ext_port = get_ip_info()To also get information about the internal IP, if unknown:topology, ext_ip, ext_port, int_ip = get_ip_info(include_internal=True)DevelopmentPyNAT versioning functions on aMAJOR.MINOR.PATCH.[DEVELOP]model. Only stable, non development releases will be published to PyPI. Because PyNAT is still a beta project, theMAJORincrement will be 0. Minor increments represent new features. Patch increments represent problems fixed with existing features.
Package: pynata
pynataPynata is a collection of Python utilities, making development faster
by providing solutions to common, reoccurring tasks in developmentAll 3rd party dependencies are optional and have to be
installed separately where required.Installation & UsagePython 3.5.2 or greater requiredInstall latest stable buildpip install -U pynataInstall latest development build from Gitlabpip install git+https://gitlab.com/meister245/pynata.git@developmentWikiChangelog:https://gitlab.com/meister245/pynata/wikis/ChangelogBug reportFound an issue with the library? Use one of the methods below for reportingIssue tracking:https://gitlab.com/meister245/pynata/issuesEmail:incoming+meister245/pynata@incoming.gitlab.com
Package: pynat-iio
pynat-iio: N.A.T. GmbH python interfaces for SDR hardwarepynat-iio is a python abstraction module for N.A.T. hardware with IIO drivers to make them easier to use. The libIIO interface although extremely flexible can be cumbersome to use due to the amount of boilerplate code required for even simple examples, especially when interfacing with buffers. This module has custom interfaces classes for specific parts and development systems which can generally make them easier to understand and use. To get up and running with a device can be as simple as a few lines of code:importnat# Create device from specific uri addresssdr=nat.nat_amc_zynqup_sdr8(uri="ip:192.168.1.160")# Get data from transceiverdata=sdr.rx()Dependenciespyadi-iio with optional dependency for JESD debuggingInstalling from source~$ git clone https://github.com/NAT-GmbH/pynat-iio
~$ cd pynat-iio
~$ (sudo) python setup.py installInstalling from pip~$ (sudo) pip install pynat-iio
Package: pynation
PyNationGet information about a country.pynationis a command line application that helps users get quick information about a country.Sometimes, people need quick info about a country, this application provides information like Alpha-2 code, currency, states in a country et.c.INSTALLPyNation requires Python 3.7 and aboveMacOS / Linux:$python3-mpipinstallpynationWindows:> python -m pip install pynationUsing the CLI applicationThe CLI can be invoked with thepynationcommand.To get the help page:>pynation--help>pynation`countryname`>pynationinfo`countryname`>pynationshort`countryname`>pynationshort`countryname`-ab=3HackingIf you want to edit the source code:Clone the repositoryCreate a virtual environmentpython3 -m venv venv/Activate the virtual environmentFor Linuxsource venv/bin/activateFor Windows CMDcd venv/Scripts
activateUpgrade the Pip version <very important>pip install -U pipInstall the package in editable mode-e/--editablewith the "dev" extra includedpip install -e '.[dev]'This installspynationfrom the source directory and changes
will be immediately reflected. It also installs extra development tools such aspytestFeedbackIf you find a bug, pleasefile an issue.If you have feature requests, pleasefile an issueand use the appropriate labelHow to ContributePleaseraise an issuebefore making a PR, so that the issue and implementation can be discussed before you write any code.This will save you time, and increase the chances of your PR being merged without significant changes.Please make PR's on anew branch, andnoton main.Pleaseinclude testsfor any PR's that include code (unless current tests cover your code contribution).Source of dataPyNation's data is scraped from the web, and the scrapers are stored aturl.
Package: pynations
A python library to get information on countries.
The package has functions that enable you to download the datasets from geonames.org and also create sqlite db for the data.The CountryInfo class allows you to get information of any given country. You can use any common name used for getting data about the country.Free software: MIT licenseInstallationpip install pynationsYou can also install the in-development version with:pip install https://github.com/suvinks/python-pynations/archive/master.zipDocumentationhttps://python-pynations.readthedocs.io/DevelopmentTo run the all tests run:toxNote, to combine the coverage data from all the tox environments run:Windowsset PYTEST_ADDOPTS=--cov-append
toxOtherPYTEST_ADDOPTS=--cov-append toxReferencesData used in this project is downloaded fromGeonameslicensed underCreative Commons 4.0Changelog0.0.2 (2020-04-25)Corrections to solve issues with Windows 10.0.0.1 (2020-04-25)First release on PyPI.
Package: pynativeextractor
NativeExtractor module for PythonThis is official Python binding for theNativeExtractorproject.InstallationRequirementsPython >=2.7 (>3 usage is highly recommended)pipbuild-essential(gcc, make)libglib2.0,libglib2.0-dev,libpythonX-devWe recommend to use virtual environments.virtualenvmyprojectsourcemyproject/bin/activateorpython-mvenvmyprojectsourcemyproject/bin/activateInstant PyPi solutionpip install pynativeextractorManualClone the repogit clone --recurse-submodules https://github.com/SpongeData-cz/pynativeextractor.gitInstall viapiporpip3pipinstall-e./pynativeextractor/Typical usageimportosfrompynativeextractor.extractorimportBufferStream,Extractor,DEFAULT_MINERS_PATH# Construct new Extractor instanceex=Extractor()# Add fictional miner from web_entities.so with name match_url matching all URLsex.add_miner_so(os.path.join(DEFAULT_MINERS_PATH,'web_entities.so'),'match_url')text='{}'.format("https://spongedata.cz")# Make from hw stream (you can also do the stream from files - use FileStream - mmap is used internally)withBufferStream(text)asbf:# Initialize occurrences list as empty listoccurrences=[]# Set the stream to the extractorwithex.set_stream(bf):# Mine all occurrences of URLswhilenotex.eof():# Summarize occurrencesoccurrences+=ex.next()print(occurrences)# Prints [{'label': 'URL', 'value': 'https://spongedata.cz', 'pos': 0, 'len': 13, 'prob': 1.0}]
Package: pynator
pynatorPython wrapper for Emailnator and SMSNatorsimple wrapper for emailnator.com and smsnator.online services, allowing you to generate disposable email addresses and phone numbers. It provides a convenient way to interact with the emailnator.com and smsnator.online APIs using Python.FeaturesGenerate disposable email addresses/phone numbers with customizable options.Retrieve a list of messages from a disposable email address/phone number.Retrieve the content of a specific email/phone message.Installation:You can install the pynator library using pip:pipinstallpynatorUsageHere's a basic example of how to use the pynator library to generate an email address:frompynatorimportEmailNator# Initialize the EmailNator clientclient=EmailNator()# Generate a disposable email addressemail=client.generate_email()# Get a list of messages for the generated email addressmessages=client.get_messages(email)# Print the messagesformessageinmessages:print(message)print(client.get_message(email,message.message_id))# print message textAnd a basic example of how to use the pynator library to generate a phone number:frompynatorimportSMSNator# Initialize the SMSNator clientclient=SMSNator()# Generate a disposable phone numberemail=client.generate_number()# Get a list of messages for the generated phone numbermessages=client.get_messages(email)# Print the messagesformessageinmessages:print(message)print(message.message)# print message textLicenseThis library is released under the MIT License.ContributingContributions to this project are welcome! Feel free to open issues, submit pull requests, or suggest improvements.ContactIf you have any questions or need further assistance, please contact@hackirby:matrix.org
Package: pynatrace
pynatracePython CLI for DynatraceDescriptionpynatrace is a cli for the Dynatrace API
It is based onhttps://github.com/dynatrace-oss/api-client-pythonSet the following environment variables
DT_API_KEY = 'API-YOURAPIKEY'
DT_SERVER_URI = 'https://activegate.example.com:9999/e/tenant_id'Install$pipinstallpynatrace
Package: pynats2
pynats2Thread based python client for NATS messaging system.This project is a replacement for abandonedpynatsandnats-python.pynats2supports only Python 3.6+ and fully covered with typings.Go to theasyncio-natsproject, if you're looking forasyncioimplementation.Installation$pipinstallpynats2Usagefrompynats2importNATSClientwithNATSClient()asclient:client.publish("test-subject",payload=b"test-payload")ContributingTo work on thepynats2codebase, you'll want to clone the project locally and install the required dependencies via pip.$gitclonegit@github.com:yosshy/pynats2.git
$pipinstall-rrequirements.txt
$pythonsetup.pyinstallTo run tests and linters use command below:$black--check--diff.
$flake8pynats2tests
$mypy--ignore-missing-imports--follow-imports=silentpynats2testsLicensepynats2is licensed under the MIT license. See the license file for details.
Package: pynattas
PyNA-tta-SOverviewPyNA-tta-S is the pi├▒ata package designed for onboard deployment optimization on edge devices. It leverages advanced metaheuristic optimization algorithms, including Genetic Algorithm (GA), Particle Swarm Optimization (PSO), and Grey Wolf Optimizer (GWO), to efficiently determine the most effective model architecture.Key FeaturesMetaheuristic Algorithms: Incorporates GA, PSO, and GWO for robust optimization.Model Architecture Selection: Automates the selection of optimal architectures for specific onboard applications.Edge Device Compatibility: Tailored for efficient deployment on various edge devices.Performance Metrics: Evaluates architectures based on predefined or custom metrics relevant to edge computing.Customization:Allows users to define custom constraints and requirements for model architecture.
User-Friendly Interface: Easy-to-use API, facilitating integration with existing projects.Use CasesIoT Applications: Optimizing models for IoT devices with limited computing resources.Remote Sensing: Enhancing the efficiency of models deployed in remote sensing edge devices.Autonomous Vehicles: Streamlining models for real-time processing in autonomous vehicles.
Package: pynau7802
PyNAU7802Python port of theSparkFun Qwiic Scale NAU7802 Arduino LibraryInstallTo install, simply use :pip install PyNAU7802in a terminal windowHow to useThe function name and arguments are the exact same as the original library, use it'sdocumentationto get started.ExamplesMultiple examples are available in theexamples/directory.This package use smbus2 as the I2C bus. Here is a small working example :importPyNAU7802importsmbus2# Create the busbus=smbus2.SMBus(1)# Create the scale and initialize itscale=PyNAU7802.NAU7802()ifscale.begin(bus):print("Connected!\n")else:print("Can't find the scale, exiting ...\n")exit()# Calculate the zero offsetprint("Calculating the zero offset...")scale.calculateZeroOffset()print("The zero offset is :{0}\n".format(scale.getZeroOffset()))print("Put a known mass on the scale.")cal=float(input("Mass in kg? "))# Calculate the calibration factorprint("Calculating the calibration factor...")scale.calculateCalibrationFactor(cal)print("The calibration factor is :{0:0.3f}\n".format(scale.getCalibrationFactor()))input("Press [Enter] to measure a mass. ")print("Mass is{0:0.3f}kg".format(scale.getWeight()))
Package: pynaut
pynauntallows you to deeply explore and introspect arbitrary python objects.As an example, we can explore theosmodule just a bit:>>> from pynaut import Container
>>> import os
>>> obj = Container(os)
>>> len(list(obj.children))
203
>>> w = list(obj.grep_attr_names('wait'))
>>> len(w)
23
>>> [a.name for a in w]
['wait',
  'wait4',
  'wait3',
  'wait',
  'wait4',
  'wait3',
  'waitpid',
  'wait',
  'wait4',
  'wait3',
  'waitpid',
  'wait',
  'wait4',
  'wait3',
  'wait',
  'wait4',
  'wait3',
  'waitpid',
  'waitpid',
  'waitpid',
  'waitget',
  'waitget',
  'waitget']
>>> from types import ModuleType
>>> test = lambda c: isinstance(c.obj, (bool, list, ModuleType))
>>> foo = list(obj.get_attr_matches(test))
>>> len(foo)
620
>>> [a.name for a in foo][:10]
['UserDict',
  'errno',
  'path',
  'auto_magic',
  'genericpath',
  'stat',
  'os',
  'UserDict',
  'errno',
  'path']Additionally, there is support for searching an entire object tree for a (name, attribute) pair that meets an arbitrary
condition.pynautalso includes a very basic curses based interface (pynaut_curses) that lets you explore objects by
descending through the attribute tree.
Package: pynauty-nice
Package for testing isomorphism of graphs and computing their automorphism group.pynauty-nice is a pynauty fork in an effort to ease installation. Pynauty is a python wrapper around nauty, distributed under the GNU GPLv3. Nauty is an isomorphism finder, written in C, distributed under the APACHE 2.0 licence. Previously, the two would have to be dowloaded separately from their respective websites, unpacked, built and symbolically linked. Given that that in this direction the licences are compatible and allow it, I’ve decided to redistribute them together.There is no change to the underlying pynauty package, written by Peter Dobsan:pdobsan@gmail.com.I’ve put myself down as the author of pynauty-nice, despite not being the author of pynauty, please get in contact if you think that this is wrong.
Contact me atmichael@radigan.co.uk.
Package: pynav
Copyright 2009-2018 Sloft http://bitbucket.org/sloft/pynavName: pynavVersion: 1.0Summary: Python programmatic web browser to fetch data and test web sitesHome-page: http://bitbucket.org/sloft/pynav/Author: sloftLicense: LGPLDownload-URL: http://bitbucket.org/sloft/pynav/downloads/Description: Python programmatic web browser to fetch data and test web sites________________________________________________________________Features:-Post authentication-User agent support-Automatic cookie handling-HTTP Basic Authentication support-HTTPS support-Proxy support-Timeout support-Reg exp searching-Links fetching with reg exp filter-History (pages, posts and responses)-Save and load history from a file and replay navigation-Random sleep time beetween pages-Errors handling-Content type filters-Check 404 urls-Check resource datetime-Handle robots.txt_______________________________________________________________Bug reporting and features asking are welcome.Use the the bug tracker: http://bitbucket.org/sloft/pynav/issues?status=new&status=openPython version: 3.5+INSTALLATION:- With pip:pip3 install pynav- From sources:python3 setup.py install2018-10-11 Pynav 1.0* New: pynav ported to Python 3* New: Python 2.6 is no longer supported, Python 3.5 minimum is now required.* New: Add useragent.py containing an updated user agent list, update Browser to use it* New: Add Type Hints for IDE completion in Browser* New : formdumper deleted because ClientForm does not meet Python 3 requirements* New : 3 Response methods are no longer supported : Response.dump_form(), Response.dump_forms(), Response.formDumper()* Qual: Migrate Python 2.6 code to Python 3.5* Qual: Browser.check_404() renamed to Browser.is_404()* Qual: #  -*- coding=utf-8 -*- removed in all files because utf-8 is the default source encoding in python 3* Fix: Browser.download() bug when url is the root url + rename built-in name bytes in Browser._humanize_bytes()* Fix: header datetime conversion regression in Browser.check_new_resource(), Response.date and Response.last_modified* Fix: relative url bug in Browser.response.images with urllib.parse.urljoin
Package: pynavi
# navi framework
navi 框架，基于django封装，将常用逻辑抽象封装，简化rest服务开发流程enjoy it ~问题反馈：sunguangran@daixiaomi.com<br />## 安装方式
* 使用内部pypi源安装` pip install pynavi-ihttp://pypi.intra.yongqianbao.com—trusted-hostpypi.intra.yongqianbao.com `
Package: pynavigation
NavigationThis module provides units of measurement and associated functions required for
navigating.ApplicationsThere are many use-cases for this module including the original reason for
developing it - Search and Rescue. It's also useful if you are developing a GPS
application, or anything that needs to work with Latitude, Longitude, Routes
and Waypoints.UnitsThe following navigation units are provided:SpeedDistanceTimeCompassBearingCoordinate (Latitude/Longitude)WaypointLegRouteInstall$pipinstallpynavigationExamplefrompynavigation.unitsimportSpeedfrompynavigation.unitsimportDistancefrompynavigation.unitsimportSpeedDistanceTimefrompynavigation.unitsimportCompassBearingfrompynavigation.unitsimportCoordinatefrompynavigation.unitsimportWaypoint# Basic Unitsspeed=Speed(10)distance=Distance(100)sdt=SpeedDistanceTime(speed=speed,distance=distance)bearing=CompassBearing(83)# Positioning Unitslatitude=Coordinate(56,12,34,"N")longitude=Coordinate(2,54,19,"W")waypoint=Waypoint(latitude,longitude)# Routing Unitsleg=Leg(sdt,waypoint,bearing)legs=[leg]route=Route(legs)# Example methodsknots=speed.in_knotstime=sdt.timelatitude_in_decimal_format=latitude.as_decimallongitude_from_decimal=Coordinate.from_decimal(-2.76543)end_wpt=leg.end_waypointnumber_of_legs=route.number_of_legsstarting_point=route.start_waypointforleginrange(number_of_legs):current_leg=route.current_leg(leg)next_leg=route.next_leg(leg)previous_leg=route.previous_leg(leg)ContributingSee theContributing Guide
Package: pyNAVIS
pyNAVIS: an open-source cross-platform Neuromorphic Auditory VISualizerpyNAVIS is an open-source cross-platform Python module for analyzing and processing spiking information obtained from neuromorphic auditory sensors. It is primarily focused to be used with a NAS, but can work with any other cochlea sensor.InstallingpyNAVIS is distributed onPyPiand can be installed with pip:pip install pyNAVISFor more information, head over to theReadTheDocs Documentation.Getting startedNow that you have everything set up, you can create a new Python file and import the package:from pyNAVIS import *With this, you can now use all the functionalities that pyNAVIS provides. A more detailed guide with examples can be readhere.Software packageThe Python code has been documented using docstrings, which is very convenient for users that want to either use the software or develop new features and functionalities.To see all the information for the different Python modules, classes, methods and all the possible configuration options, read thepyNAVIS package section.ContributingNew functionalities or improvements to the existing project are welcome. To contribute to this project please follow these guidelines:Search previous suggestions before making a new one, as yours may be a duplicate.Fork the project.Create a branch.Commit your changes to improve the project.Push this branch to your GitHub project.Open aPull Request.Discuss, and optionally continue committing.Wait untill the project owner merges or closes the Pull Request.If it is a new feature request (e.g., a new functionality), post an issue to discuss this new feature before you start coding. If the project owner approves it, assign the issue to yourself and then do the steps above.Thank you for contributing to pyNAVIS!Cite this workAPA: Dominguez-Morales, J. P., Gutierrez-Galan, D., Rios-Navarro, A., Duran-Lopez, L., Dominguez-Morales, M., & Jimenez-Fernandez, A. (2021). pyNAVIS: An open-source cross-platform software for spike-based neuromorphic audio information processing. Neurocomputing, 449, 172-175.ISO 690: DOMINGUEZ-MORALES, Juan P., et al. pyNAVIS: An open-source cross-platform software for spike-based neuromorphic audio information processing. Neurocomputing, 2021, vol. 449, p. 172-175.MLA: Dominguez-Morales, Juan P., et al. "pyNAVIS: An open-source cross-platform software for spike-based neuromorphic audio information processing." Neurocomputing 449 (2021): 172-175.BibTeX: @article{dominguez2021pynavis,
  title={pyNAVIS: An open-source cross-platform software for spike-based neuromorphic audio information processing},
  author={Dominguez-Morales, Juan P and Gutierrez-Galan, D and Rios-Navarro, A and Duran-Lopez, L and Dominguez-Morales, M and Jimenez-Fernandez, A},
  journal={Neurocomputing},
  volume={449},
  pages={172--175},
  year={2021},
  publisher={Elsevier}
}LicenseThis project is licensed under the GPL License - see theLICENSE.md filefor details.Copyright Â© 2018 Juan P. Dominguez-Moralesjpdominguez@atc.us.es