Saravanan666/pypi-org huggingface dataset:
Package: adafruit-circuitpython-portalbase
IntroductionBase Library for the Portal-style libraries. This library only contains base classes and is not
intended to be run on its own.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-portalbaseTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-portalbaseTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-portalbaseDocumentationAPI 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-progressbar
IntroductionDynamic progress bar widget for CircuitPython displaysDependenciesThis 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-progressbarTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-progressbarTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-progressbarUsage ExampleAn for this library is within the examples directory.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-pybadger
IntroductionBadge-focused CircuitPython helper library for PyBadge, PyBadge LC, PyGamer, CLUE, and Mag Tag.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-pybadgerTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-pybadgerTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-pybadgerUsage Examplefromadafruit_pybadgerimportpybadgerpybadger.show_badge(name_string="Blinka",hello_scale=2,my_name_is_scale=2,name_scale=3)whileTrue:pybadger.auto_dim_display(delay=10)ifpybadger.button.a:pybadger.show_business_card(image_name="Blinka.bmp",name_string="Blinka",name_scale=2,email_string_one="blinka@",email_string_two="adafruit.com")elifpybadger.button.b:pybadger.show_qr_code(data="https://circuitpython.org")elifpybadger.button.start:pybadger.show_badge(name_string="Blinka",hello_scale=2,my_name_is_scale=2,name_scale=3)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-pycamera
IntroductionLibrary for the Adafruit PyCameraDependenciesThis 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.Installing from PyPIThis package is available on PyPI so that it can be installed by Thonny. It is
not useful to install this package from PyPI on a Windows, Mac, or Linux
computer.Installing 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_pycameraOr the following command to update an existing version:circupupdateUsage ExampleDocumentationAPI 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-PYOA
IntroductionA CircuitPython ‘Choose Your Own Adventure’ framework for PyPortal.DependenciesThis driver depends on:Adafruit CircuitPython <https://github.com/adafruit/circuitpython>Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Usage Exampleimportadafruit_sdcardimportstoragefromadafruit_pyoaimportPYOA_Graphicsimportboardimportdigitaliotry:sdcard=adafruit_sdcard.SDCard(board.SPI(),digitalio.DigitalInOut(board.SD_CS))vfs=storage.VfsFat(sdcard)storage.mount(vfs,"/sd")print("SD card found")# no biggieexceptOSError:print("No SD card found")# no biggiegfx=PYOA_Graphics()gfx.load_game("/cyoa")current_card=0# start with first cardwhileTrue:print("Current card:",current_card)current_card=gfx.display_card(current_card)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-pypixelbuf
IntroductionPure python implementation of _pixelbuf for smaller boards.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-pypixelbufTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-pypixelbufTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installadafruit-circuitpython-pypixelbufUsage ExampleThis example tests that pypixelbuf works.classTestBuf(adafruit_pypixelbuf.PixelBuf):called=Falsedefshow(self):self.called=Truebuffer=TestBuf(20,bytearray(20*3),"RGB",1.0,auto_write=True)buffer[0]=(1,2,3)DocumentationAPI documentation for this library can be found onRead the Docs.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-circuitpython-pyportal
IntroductionCircuitPython driver for Adafruit PyPortal.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.Usage ExampleSee examples/pyportal_simpletest.pyDocumentationAPI 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-qualia
IntroductionPortal Style Library for the Adafruit Qualia ESP32-S3DependenciesThis 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.Adafruit Qualia ESP32-S3 for TTL RGB-666 DisplaysPurchase 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-qualiaTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-qualiaTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.env/bin/activatepip3installadafruit-circuitpython-qualiaInstalling 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_qualiaOr the following command to update an existing version:circupupdateUsage Examplefromadafruit_qualiaimportQualiafromadafruit_qualia.graphicsimportDisplays# Set a data source URLTEXT_URL="http://wifitest.adafruit.com/testwifi/index.html"# Create the PyPortal objectqualia=Qualia(Displays.SQUARE34,url=TEXT_URL)# Go get that dataprint("Fetching text from",TEXT_URL)data=qualia.fetch()# Print out what we gotprint("-"*40)print(data)print("-"*40)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-ra8875
IntroductionThis is a full featured CircuitPython Library for the RA8875 that included all of the hardware
accelerated drawing functions as the original Arduino library. A lot of the functionality has
been streamlined with a focus on ease of use that is still flexible enough to make full use of
the hardware. For instace, Graphics and Text mode switching is now automatic and handled in the
background.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-ra8875To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-ra8875To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-ra8875Usage ExampleSee examples/ra8875_simpletest.py and examples/ra8875_bmptest.py for examples of the module’s usage. When
running the bmptest, be sure to upload the blinka.bmp image to the root folder as well.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-radial-controller
IntroductionHID Radial Controller device helper libraryDependenciesThis 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-radial-controllerTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-radial-controllerTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-radial-controllerInstalling 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_radial_controllerOr the following command to update an existing version:circupupdateDocumentationAPI 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-requests
IntroductionA requests-like library for HTTP commands.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-requestsTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-requestsTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-requestsUsage ExampleUsage examples are within theexamplessubfolder of this library.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-rfm69
IntroductionCircuitPython RFM69 packet radio module.  This supports basic RadioHead-compatible sending and
receiving of packets with RFM69 series radios (433/915Mhz).WarningThis is NOT for LoRa radios!NoteThis is a ‘best effort’ at receiving data using pure Python code–there is not interrupt
support so you might lose packets if they’re sent too quickly for the board to process them.
You will have the most luck using this in simple low bandwidth scenarios like sending and
receiving a 60 byte packet at a time–don’t try to receive many kilobytes of data at a time!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-rfm69To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-rfm69To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-rfm69Usage ExampleSee examples/rfm69_simpletest.py for a simple demo of the usage.
Note: the default baudrate for the SPI is 2000000 (2MHz).
The maximum setting is 10Mhz but
transmission errors have been observed expecially when using breakout boards.
For breakout boards or other configurations where the boards are separated,
it may be necessary to reduce the baudrate for reliable data transmission.
The baud rate may be specified as an keyword parameter when initializing the board.
To set it to 1000000 use :# Initialze RFM radiorfm9x=adafruit_rfm9x.RFM9x(spi,CS,RESET,RADIO_FREQ_MHZ,baudrate=1000000)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-rfm9x
IntroductionCircuitPython module for the RFM95/6/7/8 LoRa 433/915mhz radio modules.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-rfm9xTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-rfm9xTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-rfm9xUsage ExampleInitialization of the RFM radio requires specifying a frequency appropriate to
your radio hardware (i.e. 868-915 or 433 MHz) and specifying the pins used in your
wiring from the controller board to the radio module.This example code matches the wiring used in theLoRa and LoRaWAN Radio for Raspberry Piproject:importdigitalioimportboardimportbusioimportadafruit_rfm9xRADIO_FREQ_MHZ=915.0CS=digitalio.DigitalInOut(board.CE1)RESET=digitalio.DigitalInOut(board.D25)spi=busio.SPI(board.SCK,MOSI=board.MOSI,MISO=board.MISO)rfm9x=adafruit_rfm9x.RFM9x(spi,CS,RESET,RADIO_FREQ_MHZ)Note: the default baudrate for the SPI is 50000000 (5MHz). The maximum setting is 10Mhz but
transmission errors have been observed expecially when using breakout boards.
For breakout boards or other configurations where the boards are separated, it may be necessary to reduce
the baudrate for reliable data transmission.
The baud rate may be specified as an keyword parameter when initializing the board.
To set it to 1000000 use :# Initialze RFM radio with a more conservative baudraterfm9x=adafruit_rfm9x.RFM9x(spi,CS,RESET,RADIO_FREQ_MHZ,baudrate=1000000)Optional controls exist to alter the signal bandwidth, coding rate, and spreading factor
settings used by the radio to achieve better performance in different environments.
By default, settings compatible with RadioHead Bw125Cr45Sf128 mode are used, which can
be altered in the following manner (continued from the above example):# Apply new modem config settings to the radio to improve its effective rangerfm9x.signal_bandwidth=62500rfm9x.coding_rate=6rfm9x.spreading_factor=8rfm9x.enable_crc=TrueSee examples/rfm9x_simpletest.py for an expanded 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-rgbled
CircuitPython_RGBLEDCircuitPython driver for RGB LEDs. Works with native microcontroller pins,Adafruit Blinka, or thePCA9685 PWM driver.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-rgbledTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-rgbledTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-rgbledUsage ExampleInitialize a common-cathode RGB LED with three PWM-capable pins.importboardimportadafruit_rgbled# Pin the Red LED is connected toRED_LED=board.D5# Pin the Green LED is connected toGREEN_LED=board.D6# Pin the Blue LED is connected toBLUE_LED=board.D7# Create a RGB LED objectled=adafruit_rgbled.RGBLED(RED_LED,BLUE_LED,GREEN_LED)Initialize a common-anode RGB LED with three PWM-capable pinsimportboardimportadafruit_rgbled# Pin the Red LED is connected toRED_LED=board.D5# Pin the Green LED is connected toGREEN_LED=board.D6# Pin the Blue LED is connected toBLUE_LED=board.D7# Create a RGB LED objectled=adafruit_rgbled.RGBLED(RED_LED,BLUE_LED,GREEN_LED,invert_pwm=True)Set the RGB LED’s color to a RGB Tuple (Red, Green, Blue).led.color=(255,0,0)Set the RGB LED’s color to a 24-bit integer (in hex syntax), 0x100000.led.color=0x100000Setting a common-anode RGB LED using a ContextManager:importboardimportadafruit_rgbledwithadafruit_rgbled.RGBLED(board.D5,board.D6,board.D7,invert_pwm=True)asrgb_led:rgb_led.color=(0,255,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-rockblock
IntroductionCircuitPython driver for Rock Seven RockBLOCK Iridium satellite modemDependenciesThis 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-rockblockTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-rockblockTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-rockblockUsage Exampleimportboardimportbusio# more laterDocumentationAPI 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-rplidar
IntroductionDependenciesInstall with PyPy:pip install Adafruit_CircuitPython_RPLIDARThis driver depends on:Adafruit CircuitPythonBus DeviceRegisterPlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Usage Exampleimportosfrommathimportfloorfromadafruit_rplidarimportRPLidar# Setup the RPLidarPORT_NAME='/dev/ttyUSB0'lidar=RPLidar(None,PORT_NAME,timeout=3)# used to scale data to fit on the screenmax_distance=0defprocess_data(data):print(data)scan_data=[0]*360try:#    print(lidar.get_info())forscaninlidar.iter_scans():for(_,angle,distance)inscan:scan_data[min([359,floor(angle)])]=distanceprocess_data(scan_data)exceptKeyboardInterrupt:print('Stopping.')lidar.stop()lidar.disconnect()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.