Saravanan666/pypi-org huggingface dataset:
Package: adafruit-circuitpython-rsa
IntroductionRSA implementation based onSybren A. Stüvel’s python-rsapure-python
RSA implementation.DependenciesThis driver depends on:Adafruit CircuitPythonAdafruit CircuitPython Logger Modulepyasn1 Library(some functionality)CPython’srsaLibrary (some functionality)Please 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-rsaTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-rsaTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-rsaUsage ExampleExamples for this library are avaliable in the examples/ folder.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-rtttl
IntroductionThis playsRTTTLmelodies.DependenciesThis driver depends on:Adafruit CircuitPythonAdafruit CircuitPython WaveformPlease 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-rtttlTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-rtttlTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-rtttlUsage ExampleThis plays Frosty the Snowman:importboardimportadafruit_rtttladafruit_rtttl.play(board.A0,"Snowman:d=8,o=5,b=200:2g,4e.,f,4g,2c6,b,c6,4d6,4c6,4b,a,2g.,b,c6,4d6,4c6,4b,a,a,g,4c6,4e.,g,a,4g,4f,4e,4d,2c.,4c,4a,4a,4c6,4c6,4b,4a,4g,4e,4f,4a,4g,4f,2e.,4e,4d,4d,4g,4g,4b,4b,4d6,d6,b,4d6,4c6,4b,4a,4g,4p,2g")CPX Usage ExampleThis plays Frosty the Snowman on a Circuit Playground Express (we must enable onboard speaker):importboardfromdigitalioimportDigitalInOut,Directionimportadafruit_rtttlspkrenable=DigitalInOut(board.SPEAKER_ENABLE)spkrenable.direction=Direction.OUTPUTspkrenable.value=Trueadafruit_rtttl.play(board.A0,"Snowman:d=8,o=5,b=200:2g,4e.,f,4g,2c6,b,c6,4d6,4c6,4b,a,2g.,b,c6,4d6,4c6,4b,a,a,g,4c6,4e.,g,a,4g,4f,4e,4d,2c.,4c,4a,4a,4c6,4c6,4b,4a,4g,4e,4f,4a,4g,4f,2e.,4e,4d,4d,4g,4g,4b,4b,4d6,d6,b,4d6,4c6,4b,4a,4g,4p,2g")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-scd30
IntroductionHelper library for the SCD30 CO2 sensorDependenciesThis 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.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-scd30To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-scd30To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-scd30Usage Exampleimporttimeimportboardimportadafruit_scd30# SCD-30 has tempremental I2C with clock stretching, datasheet recommends# starting at 50KHzi2c=busio.I2C(board.SCL,board.SDA,frequency=50000)scd=adafruit_scd30.SCD30(i2c)whileTrue:# since the measurement interval is long (2+ seconds) we check for new data before reading# the values, to ensure current readings.ifscd.data_available:print("Data Available!")print("CO2:",scd.CO2,"PPM")print("Temperature:",scd.temperature,"degrees C")print("Humidity:",scd.relative_humidity,"%%rH")print("")print("Waiting for new data...")print("")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-scd4x
IntroductionDriver for Sensirion SCD4X CO2 sensorDependenciesThis 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.Purchase 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-scd4xTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-scd4xTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-scd4xInstalling 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_scd4xOr the following command to update an existing version:circupupdateUsage Exampleimporttimeimportboardimportadafruit_scd4xi2c=board.I2C()scd4x=adafruit_scd4x.SCD4X(i2c)print("Serial number:",[hex(i)foriinscd4x.serial_number])scd4x.start_periodic_measurement()print("Waiting for first measurement....")whileTrue:ifscd4x.data_ready:print("CO2:%dppm"%scd4x.CO2)print("Temperature:%0.1f*C"%scd4x.temperature)print("Humidity:%0.1f%%"%scd4x.relative_humidity)print()time.sleep(1)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-sd
IntroductionCircuitPython driver for SD cards. This implements the basic reading and writing
block functionality needed to mount an SD card usingstorage.VfsFat.DependenciesThis driver depends on:Adafruit CircuitPython 2.0.0+Bus DevicePlease ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloadingthe Adafruit library and driver bundle.Usage ExampleMounting a filesystem on an SD card so that its available through the normal Python
ways is easy.Below is an example for the Feather M0 Adalogger. Most of this will stay the same
across different boards with the exception of the pins for the SPI and chip
select (cs) connections.importadafruit_sdcardimportbusioimportdigitalioimportboardimportstorage# Connect to the card and mount the filesystem.spi=busio.SPI(board.SCK,board.MOSI,board.MISO)cs=digitalio.DigitalInOut(board.SD_CS)sdcard=adafruit_sdcard.SDCard(spi,cs)vfs=storage.VfsFat(sdcard)storage.mount(vfs,"/sd")# Use the filesystem as normal.withopen("/sd/test.txt","w")asf:f.write("Hello world\n")Sharing the SPI bus with other devicesImportantIf the same SPI bus is shared with other peripherals, it is important that
the SD card be initialized before accessing any other peripheral on the bus.
Failure to do so can prevent the SD card from being recognized until it is
powered off or re-inserted.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-seesaw
IntroductionCircuitPython module for use with the Adafruit ATSAMD09 seesaw.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-seesawTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-seesawTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-seesawUsage ExampleSee examples/seesaw_simpletest.py for 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-servokit
IntroductionCircuitPython helper library for the PWM/Servo FeatherWing, Shield and Pi HAT and Bonnet kits.DependenciesThis 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.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-servokitTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-servokitTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-servokitUsage Exampleimporttimefromadafruit_servokitimportServoKit# Set channels to the number of servo channels on your kit.# 8 for FeatherWing, 16 for Shield/HAT/Bonnet.kit=ServoKit(channels=8)kit.servo[0].angle=180kit.continuous_servo[1].throttle=1time.sleep(1)kit.continuous_servo[1].throttle=-1time.sleep(1)kit.servo[0].angle=0kit.continuous_servo[1].throttle=0DocumentationAPI 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-sgp30
IntroductionA CircuitPython driver for the Sensirion SGP30 gas sensor with eCO2 and TVOC output. This sensor uses I2C!Installation and 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-sgp30To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-sgp30To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-sgp30Usage NotesSeethe guidefor wiring and installation instructions.First, import the library:importbusioimportadafruit_sgp30Next, initialize the I2C bus object:importboardi2c_bus=busio.I2C(board.SCL,board.SDA,frequency=100000)Since we have the I2C bus object, we can now use it to instantiate the SGP30 object:sgp30=adafruit_sgp30.Adafruit_SGP30(i2c_bus)Reading from the SensorTo read from the sensor:eCO2,TVOC=sgp30.iaq_measure()print("eCO2 =%dppm\tTVOC =%dppb"%(eCO2,TVOC))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-sgp40
IntroductionCircuitPython library for the Adafruit SGP40 Air Quality Sensor / VOC Index Sensor BreakoutsDependenciesThis 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.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-sgp40To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-sgp40To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-sgp40Usage Exampleimporttimeimportboardimportadafruit_sgp40i2c=board.I2C()# uses board.SCL and board.SDAsgp=adafruit_sgp40.SGP40(i2c)whileTrue:print("Measurement: ",sgp.raw)print("")sleep(1)For humidity compensated raw gas and voc index readings, we’ll need a secondary sensor such as the bme280importtimeimportboardimportadafruit_sgp40importadafruit_bme280i2c=board.I2C()# uses board.SCL and board.SDAsgp=adafruit_sgp40.SGP40(i2c)bme280=adafruit_bme280.Adafruit_BME280_I2C(i2c)whileTrue:temperature=bme280.temperaturehumidity=bme280.relative_humidity# For compensated raw gas readings"""
    compensated_raw_gas = sgp.measure_raw(
        temperature=temperature, relative_humidity=humidity
    )
    print("Raw Data:", compensated_raw_gas)
    """# For Compensated voc index readingsvoc_index=sgp.measure_index(temperature=temperature,relative_humidity=humidity)print("VOC Index:",voc_index)print("")time.sleep(1)It may take several minutes for the VOC index to start changing as it calibrates the baseline readings.
The voc algorithm expects a 1 hertz sampling rate. Runmeasure_index()once per second.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-sharpmemorydisplay
IntroductionA display control library for Sharp ‘memory’ displaysDependenciesThis 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-sharpmemorydisplayTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-sharpmemorydisplayTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-sharpmemorydisplayUsage ExampleSee the examples folder for a demonstration of drawing pixels, lines and textDocumentationAPI 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-sht31d
IntroductionCircuitPython module for the SHT31-D temperature and humidity 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 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-sht31dTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-sht31dTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installadafruit-circuitpython-sht31dUsage ExampleYou must import the library to use it:importadafruit_sht31dThis driver takes an instantiated and active I2C object (from thebusioor
thebitbangiolibrary) as an argument to its constructor.  The way to create
an I2C object depends on the board you are using.importboardi2c=board.I2C()Once you have created the I2C interface object, you can use it to instantiate
the sensor object:sensor=adafruit_sht31d.SHT31D(i2c)And then you can start measuring the temperature and humidity:print(sensor.temperature)print(sensor.relative_humidity)You can instruct the sensor to periodically measure the temperature and
humidity, storing the result in its internal cache:sensor.mode=adafruit_sht31d.MODE_PERIODICYou can adjust the frequency at which the sensor periodically gathers data to:
0.5, 1, 2, 4 or 10 Hz. The following adjusts the frequency to 2 Hz:sensor.frequency=adafruit_sht31d.FREQUENCY_2The sensor is capable of storing eight results. The sensor stores these
results in an internal FILO cache. Retrieving these results is simlilar to
taking a measurement. The sensor clears its cache once the stored data is read.
The sensor always returns eight data points. The list of results is backfilled
with the maximum output values of 130.0 ºC and 100.01831417975366 % RH:print(sensor.temperature)print(sensor.relative_humidity)The sensor will continue to collect data at the set interval until it is
returned to single shot data acquisition mode:sensor.mode=adafruit_sht31d.MODE_SINGLEDocumentationAPI 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-sht4x
IntroductionPython library for Sensirion SHT4x temperature and humidity sensorsDependenciesThis 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-sht4xTo install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-sht4xTo install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-sht4xUsage Exampleimporttimeimportboardimportadafruit_sht4xi2c=board.I2C()# uses board.SCL and board.SDAsht=adafruit_sht4x.SHT4x(i2c)print("Found SHT4x with serial number",hex(sht.serial_number))sht.mode=adafruit_sht4x.Mode.NOHEAT_HIGHPRECISION# Can also set the mode to enable heater# sht.mode = adafruit_sht4x.Mode.LOWHEAT_100MSprint("Current mode is: ",adafruit_sht4x.Mode.string[sht.mode])whileTrue:temperature,relative_humidity=sht.measurementsprint("Temperature:%0.1fC"%temperature)print("Humidity:%0.1f%%"%relative_humidity)print("")time.sleep(1)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-shtc3
IntroductionA helper library for using the Senserion SHTC3 Humidity and Temperature SensorDependenciesThis 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.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-shtc3To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-shtc3To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-shtc3Usage Exampleimporttimeimportboardimportadafruit_shtc3i2c=board.I2C()# uses board.SCL and board.SDAsht=adafruit_shtc3.SHTC3(i2c)whileTrue:temperature,relative_humidity=sht.measurementsprint("Temperature:%0.1fC"%temperature)print("Humidity:%0.1f%%"%relative_humidity)print("")time.sleep(1)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-si1145
IntroductionCircuitPython helper library for the SI1145 Digital UV Index IR Visible Light SensorDependenciesThis 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.Purchase 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-si1145To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-si1145To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.envsource.env/bin/activatepip3installadafruit-circuitpython-si1145Installing 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_si1145Or the following command to update an existing version:circupupdateUsage ExampleSee example in 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-si4713
IntroductionCircuitPython module for SI4713 and SI4721 FM RDS transmitter.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-si4713To install system-wide (this may be required in some cases):sudopip3installadafruit-circuitpython-si4713To install in a virtual environment in your current project:mkdirproject-name&&cdproject-namepython3-mvenv.venvsource.venv/bin/activatepip3installadafruit-circuitpython-si4713Usage ExampleSee examples/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.