Saravanan666/pypi-org huggingface dataset:
Package: adafruit-circuitpython-vl53l1x
IntroductionCircuitPython module for interacting with the VL53L1X distance sensor.DependenciesThis driver depends on:Adafruit CircuitPythonBus DevicePlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Adafruit VL53L1X Time of Flight Distance Sensor - ~30 to 4000mm - STEMMA QT / QwiicPurchase one from the Adafruit shopInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installadafruit-circuitpython-vl53l1xTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-vl53l1xTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-vl53l1xInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstalladafruit_vl53l1xOr the following command to update an existing version:circupupdateUsage ExampleSee examples/vl53l1x_simpletest.py for basic usage example.DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: adafruit-circuitpython-vl53l4cd
IntroductionCircuitPython helper library for the VL53L4CD time of flight distance sensor.DependenciesThis driver depends on:Adafruit CircuitPythonBus DevicePlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Adafruit VL53L4CD Time of Flight Distance Sensor - ~1 to 1300mm - STEMMA QT / QwiicPurchase one from the Adafruit shopInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installadafruit-circuitpython-vl53l4cdTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-vl53l4cdTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-vl53l4cdInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstallvl53l4cdOr the following command to update an existing version:circupupdateUsage ExampleSee examples/vl53l4cd_simpletest.py for basic usage example.DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: adafruit-circuitpython-vl6180x
IntroductionCircuitPython module for the VL6180X distance sensor.  See
examples/vl6180x_simpletest.py for a demo of the usage.DependenciesThis driver depends on:Adafruit CircuitPythonBus DevicePlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-vl6180xTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-vl6180xTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-vl6180xUsage ExampleSee examples/vl6180x_simpletest.py for a demo of the usage.DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: adafruit-circuitpython-vs1053
IntroductionDriver for interacting and playing media files with the VS1053 audio codec over
a SPI connection.NOTE: This is not currently working for audio playback of files.  Only sine
wave test currently works.  The problem is that pure Python code is currently
too slow to keep up with feeding data to the VS1053 fast enough.  There’s no
interrupt support so Python code has to monitor the DREQ line and provide a
small buffer of data when ready, but the overhead of the interpreter means we
can’t keep up.  Optimizing SPI to use DMA transfers could help but ultimately
an interrupt-based approach is likely what can make this work better (or C
functions built in to custom builds that monitor the DREQ line and feed a
buffer of data).DependenciesThis driver depends on:Adafruit CircuitPythonBus DevicePlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-vs1053To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-vs1053To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-vs1053Usage ExampleSee examples/sdfile_play.py.DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: adafruit-circuitpython-wave
IntroductionRead and write standard WAV-format filesDependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installadafruit-circuitpython-waveTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-waveTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installadafruit-circuitpython-waveInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstalladafruit_waveOr the following command to update an existing version:circupupdateUsage Exampleimportadafruit_wavewithadafruit_wave.open("sample.wav")asw:print(w.getsampwidth())print(w.getnchannels())print(list(memoryview(w.readframes(100)).cast("h")))DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: adafruit-circuitpython-waveform
IntroductionThis library generates simple waveforms that can be used to generate different
type of audio signals.DependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-waveformTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-waveformTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-waveformUsage ExampleThis example generates one wavelength of a 440hz sine wave when played at 16 kilosamples per second:fromadafruit_waveformimportsinewave=sine.sine_wave(16000,440)DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: adafruit-circuitpython-wii-classic
IntroductionCircuitPython library for Nintendo Wii Classic controllers.DependenciesThis driver depends on:Adafruit CircuitPythonBus DevicePlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundleor individual libraries can be installed usingcircup.Works with the Wii Nunchuck Breakout Adapter and a Wii Classic Controller.Purchase one from the Adafruit shop.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI.
To install for current user:pip3installadafruit-circuitpython-wii-classicTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-wii-classicTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installAdafruit-circuitpython-wii-classicInstalling to a Connected CircuitPython Device with CircupMake sure that you havecircupinstalled in your Python environment.
Install it with the following command if necessary:pip3installcircupWithcircupinstalled and your CircuitPython device connected use the
following command to install:circupinstalladafruit_wii_classicOr the following command to update an existing version:circupupdateUsage Exampleimporttimeimportboardimportadafruit_wii_classici2c=board.STEMMA_I2C()ctrl_pad=adafruit_wii_classic.Wii_Classic(i2c)whileTrue:left_x,left_y=ctrl_pad.joystick_lright_x,right_y=ctrl_pad.joystick_rleft_pressure=ctrl_pad.l_shoulder.LEFT_FORCEright_pressure=ctrl_pad.r_shoulder.RIGHT_FORCEprint("joystick_l ={},{}".format(left_x,left_y))print("joystick_r ={},{}".format(right_X,left_y))print("left shoulder ={}".format(left_pressure))print("right shoulder ={}".format(right_pressure))ifctrl_pad.buttons.A:print("button A")ifctrl_pad.buttons.B:print("button B")ifctrl_pad.d_pad.UP:print("d_pad Up")time.sleep(0.5)DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: adafruit-circuitpython-ws2801
IntroductionHigher level WS2801 driver that presents the LED string as a sequence.
It is the same api as theNeoPixel library.Colors are stored as tuples by default. However, you can also use int hex syntax
to set values similar to colors on the web. For example,0x800000(#800000on the web) is equivalent to(0x80, 0, 0).DependenciesThis driver depends on:Adafruit CircuitPythonBus DevicePlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-ws2801To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-ws2801To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-ws2801Usage ExampleThis example demonstrates the library drivinga strand of 25 RGB ledsby aGemma M0using the hardware SPI capable outputs.importboardimportadafruit_ws2801leds=adafruit_ws2801.WS2801(board.D2,board.D0,25)leds.fill((0x80,0,0))DocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: adafruit-circuitpython-wsgi
IntroductionCircuitPython framework for creating WSGI compatible web server applications.DependenciesThis driver depends on:Adafruit CircuitPythonPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Installing from PyPINoteThis library is not available on PyPI yet. Install documentation is included
as a standard element. Stay tuned for PyPI availability!On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-circuitpython-wsgiTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-wsgiTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-wsgiDocumentationAPI documentation for this library can be found onRead the Docs.For information on building library documentation, please check outthis guide.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.Sphinx documentationSphinx is used to build the documentation based on rST files and comments in the code. First,
install dependencies (feel free to reuse the virtual environment from above):python3-mvenv.venvsource.venv/bin/activatepipinstallSphinxsphinx-rtd-themeNow, once you have the virtual environment activated:cddocssphinx-build-E-W-bhtml._build/htmlThis will output the documentation todocs/_build/html. Open the index.html in your browser to
view them. It will also (due to -W) error out on any warning like Travis will. This is a good way to
locally verify it will pass.
Package: adafruit-extended-bus
IntroductionHelper Library for Blinka to allow creating I2C and SPI busio objects by passing in the Bus ID.
This library is not compatible with CircuitPython and is intended to only be run on Linux devices.DependenciesThis driver depends on:Adafruit PythonPlease ensure all dependencies are available on the Python filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Installing from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-extended-busTo install system-wide (this may be required in some cases):sudopip3installadafruit-extended-busTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installadafruit-extended-busUsage Examplefromadafruit_extended_busimportExtendedI2CasI2Cimportadafruit_bme280# Create library object using our Extended Bus I2C porti2c=I2C(1)# Device is /dev/i2c-1bme280=adafruit_bme280.Adafruit_BME280_I2C(i2c)print("\nTemperature:%0.1fC"%bme280.temperature)ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.DocumentationFor information on building library documentation, please check outthis guide.
Package: adafruit-fingerprint
adafruit-fingerprintThis library enables you communicate and with the r305 Fingerprint Identification Module via serial connection with upper computer.The library enables you to  to communicate with the r305 fingerprint module from upper computer (your laptop, a raspberry pi etc), rather than the arduino which it was built for by default. The module communicates via TTL, therefore, to communicate you need aUSB - TTL converterconnected to the module.It provides a class that exposes methods you can call to perform serial read/write actions with the module, these methods are implemented according to the datasheet specification, which you can download from the repohere.Installationpipinstalladafruit-fingerprintUsage exampleThere is a section on thedocs - hardware sectionwith pictures and explanations on how to setup the hardware needed for these examples to work.Visit theExamples Codessection on thedocsto view all examples.Development setupRequirementsPython3.x (x >= 6)piphardware setup. Seedocs - hardware section.Get startedpipinstall-rrequirements.txtRunning testspython-munittestdiscovertestsRelease History1.0.0Good enough for most use casesMetaThis package is heavily inspired by thefinger_sphinxproject, found during our search for a way to get the fingerprint template to upper computer, rather than have it stored in flash library. A very big kudos and acknowledgement to the owners.Faith Odonghanro –@toritsejuFO(twitter),toritsejuFO(github)Nwanozie Promise –@PNwanozie(twitter),iotstudent(github)Adegoke Joshua –@iAmCodedebugger(twitter),Ade-Joshe(github)Distributed under the MIT license. SeeLICENSEfor more information.Github RepositoryGithub Repository
Package: adafruit-io
Adafruit IO PythonA Python library and examples for use withio.adafruit.com.Compatible with Python Versions 3.4+InstallationEasy InstallationIf you havePIPinstalled (typically with apt-get install python-pip on a Debian/Ubuntu-based system) then run:pip3installadafruit-ioThis will automatically install the Adafruit IO Python client code for your Python scripts to use. You might want to examine the examples folder in this GitHub repository to see examples of usage.If the above command fails, you may first need to install prerequisites:pip3installsetuptoolspip3installwheelManual InstallationClone or download the contents of this repository. Then navigate to the folder in a terminal and run the following command:pythonsetup.pyinstallUsageDocumentation for this project isavailable on the ReadTheDocs.ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.
Package: adafruit-nrfutil
adafruit-nrfutiladafruit-nrfutilis a Python package that includes theadafruit-nrfutilcommand line utility
and thenordicsemilibrary.This package is derived from the Nordic Semiconductor ASA packagepc-nrfutil, version 0.5.3.
The code has been converted from Python 2 to Python 3.The executablenrfutilhas been renamed toadafruit-nrfutilto distinguish it from the
original executable.This tool can be used with theAdafruit nRF52 Featherto flash firmware images onto the device using the simple serial port.This library is written for Python 3.5+. It is no longer Python 2 compatible!InstallationPrerequisitesPython3pip3Run the following commands to makeadafruit-nrfutilavailable from the command line
or to development platforms like the Arduino IDE or CircuitPython:Installing from PyPIThis is recommended method, to install latest version$ pip3 install --user adafruit-nrfutilInstalling from SourceUse this method if you have issue installing with PyPi or want to modify the tool. First clone this repo and go into its folder.$ git clone https://github.com/adafruit/Adafruit_nRF52_nrfutil.git
$ cd Adafruit_nRF52_nrfutilNote: following commands usepython3, however if you are on Windows, you may need to change it topythonsince windows installation of python 3.x still uses the name python.exeTo install in user space in your home directory:$ pip3 install -r requirements.txt
$ python3 setup.py installIf you get permission errors when runningpip3 install, yourpip3is older
or is set to try to install in the system directories. In that case use the--userflag:$ pip3 install -r --user requirements.txt
$ python3 setup.py installIf you want to install in system directories (generally not recommended):$ sudo pip3 install -r requirements.txt
$ sudo python3 setup.py installCreate self-contained binaryTo generate a self-contained executable binary of the utility (Windows and MacOS), run these commands:pip3 install pyinstaller
cd Adafruit_nRF52_nrfutil
pip3 install -r requirements.txt
cd Adafruit_nRF52_nrfutil\nordicsemi
pyinstaller __main__.py --onefile --clean --name adafruit-nrfutilYou will find the .exe inAdafruit_nRF52_nrfutil\nordicsemi\dist\adafruit-nrfutil( with.exeif you are on windows).
Copy or move it elsewhere for your convenience, such as directory in your %PATH%.UsageTo get info on the usage of adafruit-nrfutil:adafruit-nrfutil --helpTo convert an nRF52 .hex file into a DFU pkg file that the serial bootloader
can make use of:adafruit-nrfutil dfu genpkg --dev-type 0x0052 --application firmware.hex dfu-package.zipTo flash a DFU pkg file over serial:adafruit-nrfutil dfu serial --package dfu-package.zip -p /dev/tty.SLAB_USBtoUART -b 115200
Package: adafruit-python-shell
IntroductionPython helper for running Shell scripts in PythonDependenciesThis driver depends on:LinuxInstalling from PyPIOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locallyfrom
PyPI. To install for current user:pip3installadafruit-python-shellTo install system-wide (this may be required in some cases):sudopip3installadafruit-python-shellTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installadafruit-python-shellContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.DocumentationFor information on building library documentation, please check outthis guide.
Package: adafruit-rplidar
IntroductionProvide an interface to the SlamTec RPLidar A1.Eventual goal is for the single module to work with both Linux (via /dev/USB0, etc) and CircuitPython (via a UART instance)Usage Exampleimport os
from math import cos, sin, pi, floor
import pygame
from adafruit_circuitpython_rplidar import RPLidar

# Set up pygame and the display
os.putenv('SDL_FBDEV', '/dev/fb1')
pygame.init()
lcd = pygame.display.set_mode((320,240))
pygame.mouse.set_visible(False)
lcd.fill((0,0,0))
pygame.display.update()

# Setup the RPLidar
PORT_NAME = '/dev/ttyUSB0'
lidar = RPLidar(None, PORT_NAME)

# used to scale data to fit on the screen
max_distance = 0

def process_data(data):
    # Do something useful with the data
    pass

scan_data = [0]*360

try:
    print(lidar.get_info())
    for scan in lidar.iter_scans():
        for (_, angle, distance) in scan:
            scan_data[min([359, floor(angle)])] = distance
        process_data(scan_data)

except KeyboardInterrupt:
    print('Stoping.')
lidar.stop()
lidar.disconnect()ContributingContributions are welcome! Please read ourCode of Conductbefore contributing to help this project stay welcoming.