Saravanan666/pypi-org huggingface dataset:
Package: usa_today
USA Today Python API Wrapper============================This is a Python wrapper for [USA Today's CensusAPI](http://developer.usatoday.com/docs/read/Census).Note that usage of the USA Today Census API requires a developer key,and that usage is contingent upon agreement with USA Today's [Terms ofUse](http://developer.usatoday.com/API_Terms_of_Use).Also, note that this library is in no way associated or endorsed by [USAToday](http://www.usatoday.com/).Usage-----It's recommended that you save your USA Today Census API Key to the`usa_today_api_key.py` file.Without your API Key saved:>>> from usa_today import Census>>> Census('my_api_key').population()With your API Key saved:>>> from usa_today import Census>>> Census().population()### Methods ###* `locations` -- Returns all available ethnicity, housing, population and race information for specified area.<pre><code>>>> Census().locations()>>> Census().locations('NY')</code></pre>* `ethnicity` -- Returns an area's ethnic data. Information includes how much of the population identifies as Hispanic or non-Hispanic white, and the USA TODAY Diversity Index.<pre><code>>>> Census().ethnicity()>>> # California ethnicity by county... Census().ethnicity('CA', sumlevid=3)</code></pre>* `housing` -- Returns an area's housing data. Information includes the number of housing units, and the percentage of those that are vacant.<pre><code>>>> c = Census()>>> c.housing()>>> c.housing('TX')>>> # Lookup Texas housing by FIPS for counties... c.housing('48~', keyname='FIPS', sumlevid=3)</code></pre>* `population` -- Returns an area's population data. Information includes the total population of an area, average population per square mile, and the percent by which that population has changed since the last census.<pre><code>>>> c = Census()>>> c.population()>>> # Texas population by town level.... c.population('TX', sumlevid=6)</code></pre>* `race` -- Returns an area's racial data. Information includes the percentage of an area's population that identifies as White, Black, American Indian, Asian, native Hawaiian/Pacific Islander, or mixed race.<pre><code>>>> c = Census()>>> c.race()>>> c.race('RI')>>> # Race data for Rhode Island by county.... c.race('RI', sumlevid=3)</code></pre>Copyright---------Copyright (c) 2011 Code for America LaboratoriesSee LICENSE for details.
Package: usatt
USATTPython tools for working with the USA Table Tennis (USATT) website. As far as I am aware, there is no official API
for the USATT site. So this works purely via grabbing the HTML pages from the site and parsingSimple CLI examplesTo get the USATT ratings for a few USATT ids, using a few of the top ranked USATT ids as an example:usattratings-i116542022028331126givesUSATT#NameTournament RatingHighest Tournament RatingTournaments PlayedLeague RatingHighest League RatingLeagues Played1165420Lei Kou2790286433281628433220283Jinbao Ma276028093227232723531126Lily Zhang26002641952446248341To get a summary of all USATT ratings,usattsummary--outfileusatt.csvThis  will dump all USATT ratings to a CSV file.
Package: usau-scraper
The USAU scraper is a data collector that allows developers to easily aggregate and use team results, rosters, and schedule data from theUSAU website.OverviewUSAU (USA Ultimate) is the governing body of ultimate frisbee, and its website (which is notoriously hard to navigate) contains all of the information about high school, college, and club ultimate frisbee teams. Right now, there is no easy way to access this data. USAU scraper solves this problem by scraping the USAU website for data and therefore allowing other developers to easily use the data on the USAU site. This project will open the door to more data analytic projects concerning ultimate frisbee.Installationpip install --upgrade usau-scraperExample Usagefromusau_scraperimport*# Get a team's basic informationprint(getTeamInfo(schoolName='Columbia',teamName='Baewatch',genderDivision='Women',state='NY',competitionLevel='College',competitionDivision='Division 1',teamDesignation='B'))# Get a team's schedule for the current seasonprint(getTeamSchedule(schoolName='Columbia',teamName='Curbside'))# Get a team's roster for the current seasonprint(getTeamRoster(schoolName='Columbia',teamName='Curbside'))# Get the pool play results for a tournamentprint(getTournamentPoolPlayResults("College","Women",eventName="No Sleep Till Brooklyn",season=2023))# Get the bracket results for a tournamentprint(getTournamentBracketResults("College","Women",eventName="Centex",season=2022))# Get the winner for a tournamentprint(getTournamentWinner("College","Women",eventName="Stanford Invite",season=2023))# Get the top 20 women's college teamsprint(getCollegeRankings(genderDivision="Women"))# Get the top 20 women's club teamsprint(getClubRankings(genderDivision="Women"))Additional usage examples arein this notebook.Features (MVP)A function that, given a team name, returns basic information about them.A function that, given a team name, returns their schedule and record.A function that, given a team name, returns its roster.A function that, given a tournament name, returns the results of the tournament.Additional featuresA function that, given a college division, returns the current standings of that division.An additional plugin to ultiworld to show recent articles given a team name or college division.More features tbd!Possible ApplicationsA seeding helper that, given a list of team names, returns their records for the season and their record against top 25 teams.
Package: usb1208fs
Python wrapper of the C-driver of MCC USB1208FS data acquisition card written by Warren Jaspers.Functionality includes analog/digital input/output, analog input/output scans, counter, etc.
See Warren Jaspers’ C-library for more details.This module is mostly just a python wrapper of the original C-driver; some object-orientated
concepts and python list support were added for a more user-friendly interface.This module requires Warren Jaspers’ C drivers to be already installed (seeftp://lx10.tx.ncsu.edu/pub/Linux/drivers/USB/)
Package: usb-barcode-scanner-julz
usb_barcode_scannerSupport input from a hand-held USB scanner in python - such as this one:https://www.amazon.co.uk/gp/product/B0736NNZNV/Usage:The library is very simple to use: just import it and in case, wait for input.from usb_scanner.scanner import barcode_reader
if __name__ == '__main__':
    try:
        while True:
            upcnumber = barcode_reader()
            print(upcnumber)
    except KeyboardInterrupt:
        logging.debug('Keyboard interrupt')
    except Exception as err:
        logging.error(err)Installationpypi homepage :https://pypi.org/project/usb-barcode-scanner/github :https://github.com/julzhk/usb_barcode_scannerinstall with:pip install usb-barcode-scannerCompatibilityTested and working in Linux and Raspberry Pi, using Python 3.6, but should work with Python 2.7 too.LicenseThe software is provided "As is", without warranty of any kind, express or implied.
Please see the MIT license attached.Support & ContributionQuestions? Drop me a line :usb_barcode_scanner_support.20.learningfuture@spamgourmet.comSuggestions and improvements welcome.
Package: usb-can-analyzer
# usb_can_analyzer_py
Python library for the usb can analyzer.
========================================================The Converter class allows to read/write data from/to a USB connection with a
usb can analyzer.You can install it with pip:pip install usb_can_analyzerExemple d’usage:Read data:
>>> from usb_can_analyzer import Converter
>>> converter = Converter(“/dev/ttyUSB0”)
>>> while True:
…   data = converter.readMessage()
…     if type(data) != int:
…       print(data)
Package: usbclassifier
# USBaggingClassifier
# Overview
Bagging Classifier with Under Sampling.
This approach is good for classification imbalanced data.
You can use both of Binary or Multi-Class Classification.
Methods could use looks like sci-kit learn’s APIs.
Only use in python 3.x
# Usage
## Parameters
* base_estimator : object
Classifier looks like sklearn.XXClassifier.
Classifier must have methods [fit(X, y), predict(X)].
It is not nesessary predict_proba(X), but if it has this method,
you could select ‘soft voting’ option and get predict probability.
* n_estimators : int (default=10)
The number of base estimators.
* voting : str {‘hard’,’soft’} (default=’hard’)
hard : use majority rule voting
soft : argmax of the sums of prediction probabilities
* n_jobs : int (default=1)
number of jobs to run in parallel for fit.
If -1, equals to number of cores.
## methods
* fit(X, y)
X : pandas.DataFrame
y : pandas.Series
return : None
* predict(X)
X : pandas.DataFrame
return : predicted y : numpy.array
* predict_proba(X)
X : pandas.DataFrame
return : predicted probabilities (mean of all bagged models)# LICENSE
This software is released under the MIT License, see [LICENSE](/LICENSE)
Package: usb-construct
USB Protocol Library for Pythonusb-constructis a library that collects common data-processing code for USB tasks;
and is meant to support a variety of projects, including USB stacks, analyzers, and
other tools that work with USB data. A primary intention is to unify common code from
LUNA, FaceDancer, and ViewSB.The library is currently an early work-in-progress; this documentation will be updated
when the project is more mature.Licenseusb-construct is licensed under theBSD-3-Clause, the full text of which can be found in theLICENSEfile.
Package: usbdev
Table of Contents:AboutHow worksInstallUninstallUsageAsciicastCLICopyrightAboutUSBdev is a USB device recognition tool on Linux.How worksThe tool compares the USB devices that are connected before and after.USBdev uselinux-usb.orgrepository to get
data devices.Install$pipinstallUSBdevor$pipinstallUSBdev-<version>.tar.gzUninstall$pipuninstallUSBdevUsage$usbdevPluginUSBdevice(s)now.......DoneFound:Vendor(s)Device(s)1:KingstonTechnology(0951)DataTraveler100(1607)Usingthetimetoconnectandrecognizemultipledevices.$usbdev--time10PluginUSBdevice(s)now.......DoneFound:Vendor(s)Device(s)1:KingstonTechnology(0951)DataTraveler100(1607)2:Logitech,Inc.(046d)UnifyingReceiver(c52b)3:AlcorMicroCorp.(058f)FlashDrive(1234)AsciicastCLIUSBdevisatoolrecognitionofUSBdevicesOptionalarguments:-h,--helpdisplaythishelpandexit-v,--versionprintprogramversionandexit-t,--time[sec]waitingtimebeforepluginCopyrightCopyright © Dimitris ZlatanidisLinux is a Registered Trademark of Linus Torvalds.
Package: usb-devices
USB Devicesusb_devicesInstallationInstall this via pip (or your favourite package manager):pip install usb-devicesUsage# python3 examples/info.py
hci0 manufacturer: Realtek, product: Bluetooth 5.1 Radio, vendor_id: 0bda, product_id: a725, bus_id: 1, dev_num: 11
hci1 manufacturer: Realtek, product: Bluetooth Radio, vendor_id: 2550, product_id: 8761, bus_id: 1, dev_num: 8
hci2 manufacturer: Realtek, product: Bluetooth Radio, vendor_id: 2550, product_id: 8761, bus_id: 1, dev_num: 7
hci3 manufacturer: Realtek, product: Bluetooth Radio, vendor_id: 2550, product_id: 8761, bus_id: 1, dev_num: 4
hci4 not found
hci5 not found
hci6 not found
hci7 not found
hci8 not found
# python3 examples/reset.py
Reset of hci0 succeededContributors ✨Thanks goes to these wonderful people (emoji key):This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCopierand thebrowniebroke/pypackage-templateproject template.
Package: usb-f-ccid
ContentsRequirementsUsageUserland USB Gadget implementation of CCID/ICCD class.Implements an N-slots USB virtual IC card reader.RequirementsLinux >= 4.9 for CCID class supportpython3 (tested with 3.8 and 3.9)python dependencies listed in setup.pyUsageIn a nutshell:importf_ccidwithf_ccid.ICCDFunction(path,slot_count=1)asccid:ccid.slot_list[0].insert(card)ccid.processEventsForever()(but check out functionfs.gadget to setup configfs for you, and provide thepathargument above)This module does not provide any card implementation.The expected card API is:card.clearVolatiles()->NoneCalled when virtual power is cut to the card, which means it must flush its
volatile state.card.getATR()->bytearrayCalled when the host tells the reader to power the card. This must return the
Answer To Reset bytestring for this card. Note that the answer must be mutable:
although it will not be altered by the reader, it will be passed on to C code
which technically could mutate it.card.runAPDU(:bytearray)->bytearrayCalled when the host requests an Application Protocol Data Unit to be executed
by the card. The returned value must contain any response, followed by any
status bytes. Only entire APDUs are sent to the card (assembly is done by the
reader).
Package: usb-iss
USB-ISS Python LibraryPython library for the USB-ISS module.DocumentationUSB-ISS hardware module:https://www.robot-electronics.co.uk/htm/usb_iss_tech.htmUSB-ISS Python library (this project):https://usb-iss.readthedocs.ioFeaturesSupports all USB-ISS functions (I2C, IO, SPI, Serial)Cross-platform (Windows, Linux, MacOS, BSD)Supports Python 2.7 & 3.5+Comprehensive documentation and unit test suiteUsage Examplefromusb_issimportUsbIss,defs# Configure I2C modeiss=UsbIss()iss.open("COM3")iss.setup_i2c()# Write and read back some data# NOTE: I2C methods use 7-bit device addresses (0x00 - 0x7F)iss.i2c.write(0x62,0,[0,1,2]);data=iss.i2c.read(0x62,0,3)print(data)# [0, 1, 2]Installingpipinstallusb-issThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.Changelog2.0.1 (2021-01-21)Add serial+I2C operating modes to read_iss_mode()2.0.0 (2019-11-04)BREAKING CHANGE: Use 7-bit I2C device addresses1.0.0 (2019-10-16)BREAKING CHANGE: Remember the previous IO state in the setup_* methods (thanks SamP20)BREAKING CHANGE: Improve the serial mode APIAdd verbose logging option0.3.1 (2018-07-02)Fix Python2 serial interface0.3.0 (2018-05-28)Add SPI supportAdd Serial UART supportImprove test coverage0.2.4 (2018-05-23)Add SPI, Serial and IO setup methods0.2.3 (2018-05-22)Fix and test Travis PyPI auto-deploy0.2.0 (2018-05-21)Generate documentationAdd dummy driver option for test purposesConfigure I/O as input by defaultAdd i2c.read/write aliases for read_ad1/write_ad1Update setup_i2c to split out clk_khz and use_i2c_hardware parameters0.1.0 (2018-04-19)Initial release
Package: usbmon-tools
usbmon toolsThis repository contains a Python module and some command line tools to work
with Linuxusbmon, as
well as Windowsusbpcapcaptures.ToolsIn addition to theusbmonmodule, containing the data structures to access USB
captures, this package contains a few scripts in thetools/directory, which
can be used to manipulate usbmon captures.DevelopmentYou can see <CONTRIBUTING.md> for the details on contributing to this project.To set up a development environment, you can use the following commands:$gitclonehttps://github.com/Flameeyes/usbmon-tools
$cdusbmon-tools
$python3-mvenvvenv
$.venv/bin/activate
$pipinstall-e.[dev]# editable installation$pre-commitinstall
Package: usb-resetter
usb_resettersmall tool to reset USB controllers, hubs or devicesSo here we are, with sh*TTY built usb devices, that don't work properly.I've had numerous problems with USB devices that simply don't work unless you disconnect / reconnect them.
While I'd probably like to throw away those devices, sometimes there's no choice than the rejoice of using those devices.A couple solutions:Buy a robot hand that unplugs / plugs the device :) - Nice solution but costly... But again, very nice...Reset the USB device (works sometimes)Reset the USB hub where the device is plugged in (is generally sufficient)Reset all USB controllers (a bit broad, but works miracles on reluctant devices)Burn the device and promise to buy better hardware (also very nice solution)I've scripted solutions 2 to 4 in order to achieve what I need into a Python script.SetupGrab yourself a copy ofusb_resettervia pypi withpip install usb_resetteror download viacurl -o /usr/local/bin/usb_resetter -L https://raw.githubusercontent.com/netinvent/usb_resetter/main/usb_resetter/usb_resetter.py && chmod +x /usr/local/bin/usb_resetterUsageList all USB devicesusb_resetter -lResultFound device 1d6b:0002 at /dev/bus/usb/001/001 Manufacturer=Linux 5.14.0-70.26.1.el9_0.x86_64 xhci-hcd, Product=xHCI Host Controller
Found device 0665:5161 at /dev/bus/usb/001/002 Manufacturer=INNO TECH, Product=USB to Serial
Found device 1d6b:0003 at /dev/bus/usb/002/001 Manufacturer=Linux 5.14.0-70.26.1.el9_0.x86_64 xhci-hcd, Product=xHCI Host Controller
Found device 1199:9071 at /dev/bus/usb/002/002 Manufacturer=Sierra Wireless, Incorporated, Product=EM7455Reset a reluctant USB deviceusb_resetter -d [vendor_id]:[product_id] --reset-deviceExample:usb_resetter -d 1199:9071 --reset-deviceResult:Resetting usb device /dev/bus/usb/002/002Reset the USB hub where a device is connected inusb_resetter -d [vendor_id]:[product_id] --reset-hubExample:usb_resetter -d 1199:9071 --reset-hubResult:unbind hub /sys/bus/usb/devices/2-4
bind hub /sys/bus/usb/devices/2-4Reset the whole USB controller (usually makes reluctant devices work again)usb_resetter --reset-allResultunbind hub /sys/bus/pci/drivers/xhci_hcd/0000:00:14.0
bind hub /sys/bus/pci/drivers/xhci_hcd/0000:00:14.0Afterwards, all your USB devices should work as if they were just plugged in, since this reset also temporarily cuts power from given USB device, making it reboot.
Package: usb-scanner
USB ScannerPackage allowing to read a barcode or QR-code from USB scanner listed below.https://sps.honeywell.com/fr/fr/products/productivity/barcode-scanners/general-purpose-handheld/voyager-xp-1470g-general-duty-scannerhttps://www.zebra.com/gb/en/products/scanners/general-purpose-scanners/handheld/ls1203.htmlInstructionsInstall:pip install usb-scannerExample of use:fromusb_scannerimportReader# Initialize Reader objectr=Reader(keymap="UK")# Waiting for a barcode to be readr.read()Fix udev permissionsCreate a Udev rule for the use of USB scanners (hidraw*)$sudonano/etc/udev/rules.d/99-hidraw-permissions.rulesand add the following linesSUBSYSTEM=="usb", ATTRS{idVendor}=="05e0", ATTRS{idProduct}=="1200", MODE="666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="080c", ATTRS{idProduct}=="0300", MODE="666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0c2e", ATTRS{idProduct}=="1001", MODE="666"Finally reload the udev rules with the following command$sudoudevadmcontrol--reload-rules&&sudoudevadmtrigger
Package: usbsecurity-gui
Howusbsecurity-gui is the program for the graphical interface of USBSecurity.PrerequisitesLinuxGTKPyGObject is used with GTK. To install dependencies on Ubuntu for both Python 3 and 2sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.0QTPyQt5 is used with QT. pywebview supports both QtWebChannel (newer and preferred) and QtWebKit implementations. Use QtWebChannel, unless it is not available on your system.To install QT via pippip install pyqt5 pyqtwebengineTo install QtWebChannel on Debian-based systems (more modern, preferred)sudo apt install python3-pyqt5 python3-pyqt5.qtwebengine python3-pyqt5.qtwebchannel libqt5webkit5-devTo install QtWebKit (legacy, but available for more platforms).sudo apt install python3-pyqt5 python3-pyqt5.qtwebkit python-pyqt5 python-pyqt5.qtwebkit libqt5webkit5-devWindowsRequires > .NET 4.0To use with the latest Chromium you need WebView2 Runtime. If you plan to distribute your software, check out distribution guidelines too.MacOSpyobjcPyObjC comes presintalled with the Python bundled in macOS. For a stand-alone Python installation you have to install it separately. You can also use QT5 in macOSInstallationpip3 install usbsecurity-guiUsageIs a console program and runs like a fiend. To get it running open a terminal and run the following command:$ usbsecurity-guiHelp$ usbsecurity-gui -h | --help
Package: usbsecurity-monitor
Howusbsecurity-monitor is the program to control USB ports.Installationpip3 install usbsecurity-monitorUsageIs a console program and runs like a fiend. To get it running open a terminal and run the following command:$ usbsecurity-monitorLocalBy default the application runs in local mode blocking access to the computer's USB ports as a basic policy. You can configure device whitelists and blacklists.ClientIn administration environments it would be good to manage permissions from a server on the network. In these scenarios you can configure the application to request permissions from the server through a REST API:usbsecurity-monitor --url-apiurl_api_restLocal policies are a priorityHelp$ usbsecurity-monitor -h | --help
Package: usbsecurity-server
Howusbsecurity-server is the server program to control access to USB ports.Installationpip3 install usbsecurity-serverUsageIs a console program and runs like a fiend. To get it running open a terminal and run the following command:$ usbsecurity-serverLocalBy default the application runs in local mode using the localhost, or the ip address 127.0.0.1 and port 8888. These parameters are user configurable.ServerIn administration environments it would be good to have a single server that manages all permissions on the network.
You can configure the application to serve from any IP address and port just install it on the server machine and configure it:usbsecurity-server --hostip_address--portportYou have a single server to manage access permissions to the USB ports of the computers in your network.AdminThe application is administered through the browser by accessing the URL:http[s]://host:port/adminuser: admin; pass: usbsecurityUsers can change the password at any time.Help$ usbsecurity-server -h | --help
Package: usb_ser_mon
usb_ser_mon==============A serial monitor for USB Serial devices.usb-ser-mon.py will automatically detect your connected USB Serial device andprint the output from it.This is similar in functionality to the Arduino serial monitor, except thatusb-ser-mon.py deals with the device disconnects automtically, and will waitfor your device to reconnect.If you have more than one USB device connected, you can use the -soption to specify the serial number of the device you wish to connect to,or use the -n command to specify the device vendor.Currently, this program only works under linux.It was tested with the following devices:- Teensy 3.1- STM32F4DISCOVERY board- Prolific USB to Serial adapterInstallation============Download or checkout this repository. With a terminal opened in the project directory.Install using pip:```pip install .```If you want to edit the files in this directory and use them, install in edit mode:```pip install -e .```Usage=====Use -l to list all of the connected devices.```./usb-ser-mon.py -l````will show you the currently connected devices, for example:```USB Serial Device with vendor 'Teensyduino' serial '21973' found @/dev/ttyACM1USB Serial Device with vendor 'Prolific_Technology_Inc.' found @/dev/ttyUSB0USB Serial Device with vendor 'STMicroelectronics' serial '00000000050C' found @/dev/ttyACM0```If you want to connect with the STM device (an STM32FDISCOVERY board in this situation), then you might do:```./usb-ser-mon.py -n Teensy```and then see:```USB Serial device with vendor 'Teensyduino' serial '21973' connected @/dev/ttyACM1>>>```In the previous example the Teensy was already connected. If I unplug and replug the Teensy device then I'd see:```USB Serial device @ /dev/ttyACM1  disconnected.Waiting for USB Serial Device with vendor 'Teensy' ...USB Serial device with vendor 'Teensyduino' serial '21973' connected @/dev/ttyACM1Done executing '/src/main.py'Micro Python for Teensy 3.1Type "help()" for more information.>>>```You only need to use as many characters as are required to uniquely identify adevice, so I could use ```./usb-ser-mon.py -n STM``` to connect to theDiscovery board.Use Control-X to exit from usb-ser-mon.py.The ```mk-udev-rules-stm32.sh``` script will create the appropriate udev rulesfor the STM32F4 series processors.The ```mk-udev-rules-pyboard.sh``` script will create the appropriate udev rulesfor the MicroPython pyboard.The ```mk-udev-rules-teensy.sh``` script will create the appropriate udev rulesfor the Teensy 3.1 board.