Saravanan666/pypi-org huggingface dataset:
Package: rpi-networking
rpi-networkingControl wifi, hotspot and hostname of Raspberry PiRequirmentsPython3.10+InstallationUsing pip:pip3installrpi-networkingUsing poetrypoetryaddrpi-networkingPrepare systemAutomaticallyVia curlsh-c"$(curl-fsSLhttps://raw.githubusercontent.com/MarkParker5/rpi-networking/master/setup.sh)"Or via wgetsh-c"$(wgethttps://raw.githubusercontent.com/MarkParker5/rpi-networking/master/setup.sh-O-)"ManuallyDependenciessudoaptupdate;\sudoaptupgrade-y;\sudoaptinstalldnsmasqhostapddhcpd-yGive permissions to edit configuration files (optional)Give user permission to edit configuration files so python doesn't have to be run as root (sudo)files=("/etc/dnsmasq.conf""/etc/hosts""/etc/default/hostapd""/etc/hostapd/hostapd.conf""/etc/network/interfaces""/etc/network/interfaces.d""/etc/wpa_supplicant/wpa_supplicant.conf")forfilein"${files[@]}";dosudochown"$USER""$file"sudochmod644"$file"done;DocsConfigurationThere are functions for initial configuration setup.# rpi_networking.configuraiondefwrite_interfaces():defwrite_default_hostapd():defwrite_hostapd_conf():defwrite_dnsmasq_conf():defwrite_wpa_supplicant(country:str="GB"):defwrite_hosts():defwrite_all():# calls all functions aboveIn most cases you only need to callwrite_all()once to setup all configuration files.Hostname# rpi_networking.hostnamedefset_hostname(hostname:str):defrestart_interfaces():# apply new hostname without rebootHotspot# rpi_networking.hotspotdefis_hotspot_up()->bool:defstart_hotspot()->bool:defstop_hotspot()->bool:Theboolreturn value isTrueif function finished without errors (exit code 0), elseFalseStatus# rpi_networking.statusdefis_wlan_connected()->bool:defis_eth_connected()->bool:defis_wlan_global_connected()->bool:# 'global' means internet accessdefis_eth_global_connected()->bool:defis_wps_running()->bool:WiFi# rpi_networking.wificountry:str='GB'# country code for wpa_supplicantclassInterfaceBusyException(Exception):passclassCell:ssid:strquality:floatfrequency:strencrypted:boolclassNetwork:ssid:strpsk:strid_str:str# Functionsdefread_networks()->list[Network]:defwrite_networks(networks:list[Network]):defadd_network(ssid:str,psk:str):defreconnect()->bool:# connect to the best available networkdefscan()->Generator[Cell,None,None]:defstart_wps()->bool:
Package: rpio-client
Python client library forrpio-server.Installationpipinstallrpio-clientAPIAll API in one example:importasynciofromrpio_clientimport*@asyncio.coroutinedefmain(loop):client=RpioClient(loop)# create clientyield fromclient.connect()# connect to serverpin=client.get_pin(13)# get pin 13 instanceyield frompin.set_mode(Mode.input)# set input modeyield frompin.set_pull(Pull.down)# set pulling to groundprint(yield frompin.read())# print state on pin 13# blinkingpin=client.get_pin(10)pin.set_mode(Mode.output)for_inrange(10):yield frompin.toggle()yield fromasyncio.sleep(1)yield fromclient.close()# close connectionloop=asyncio.get_event_loop()loop.run_until_complete(main(loop))
Package: rpios-tools
rpi-os-toolsTools to work with raspberry pi osinstallInstall from pypi withpip install rpios-toolsusageraspios image downloadingTo download operating system images you can use the installed command line
toolrpios-dland specify--versionand--releaseTo get information on the available versions and releases you can userpios-dloptions like below:$ rpios-dl --list-os-versions
Listing raspios versions available:
        raspios_arm64
        raspios_armhf
        raspios_full_armhf
        raspios_lite_arm64
        raspios_lite_armhf
$ rpios-dl --list-version-releases --version raspios_armhf
Listing {args.version} releases:
        raspios_armhf-2021-05-28
        raspios_armhf-2021-03-25
        raspios_armhf-2021-01-12
        raspios_armhf-2020-12-04
        raspios_armhf-2020-08-24
        raspios_armhf-2020-05-28By default the images will download to an application storage directory
you'll see printed out when the command runs$ rpios-dl --version raspios_lite_armhf --release raspios_lite_armhf-2021-05-28
Downloading raspios:
        version: raspios_lite_armhf
        release: raspios_lite_armhf-2021-05-28
        url: https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-05-28/2021-05-07-raspios-buster-armhf-lite.zip
        path: /Users/michaelsobczak/.local/share/rpi-os-tools/images/2021-05-07-raspios-buster-armhf-lite.zip
 |██████----------------------------------------------------------------------------------------------| 6.4%
Package: rpip
rpip - Recursively install python requirements from multiple directories using pipInstall via pip (pip install rpip).Usage:usage: rpip [-h] [-i [INCLUDE_DIRS [INCLUDE_DIRS ...]]] [-x [EXCLUDE_DIRS [EXCLUDE_DIRS ...]]] [--ignore-versions] [-v]
               [-o OUTPUT_FILE] [--dry-run] [-f [FILENAME [FILENAME ...]]] [--pip-path PIP_PATH]
               [root_path]

Recursive pip install of requirements files.

positional arguments:
  root_path             Root path to start searching for requirements files.

optional arguments:
  -h, --help            show this help message and exit
  -i [INCLUDE_DIRS [INCLUDE_DIRS ...]], --include-dirs [INCLUDE_DIRS [INCLUDE_DIRS ...]]
                        Pattern for directories to include.
  -x [EXCLUDE_DIRS [EXCLUDE_DIRS ...]], --exclude-dirs [EXCLUDE_DIRS [EXCLUDE_DIRS ...]]
                        Pattern for directories to exclude.
  --ignore-versions     Ignore version specification in requirements files.
  -v, --verbose         Print status messages.
  -o OUTPUT_FILE, --output-file OUTPUT_FILE
                        If specified, write the list of packages to this file instead of installing.
  --dry-run             Print what would be installed, but don't install anything.
  -f [FILENAME [FILENAME ...]], --filename [FILENAME [FILENAME ...]]
                        Pattern to match for requirements files. Defaults to "requirements.txt".
  --pip-path PIP_PATH   Specify the path to the pip executable.
Package: rpipe
rpipeA little python remote pipe server and client.Installpip install rpipeUsageBefore anything else, you should set your pipe server URL and default channel (the default channel can be any string)RPIPE_PASSWORD="my password"# Only need to set when saving configrpipe--url<url>-c<channel>--password-env--save_configIf no password is desired, use--no-password; though data will be uploaded without encryption if this is done.Sendingecho"abc"|rpipeReceivingrpipe# Read the datarpipe-cfoo# Read data from the channel "foo"rpipe--peek# Read the data but do not remove it from the serverAdditional options can be found viarpipe --helpWeb VersionWhile discouraged and lacking support for encryption, users can forgo usage of therpipeclient and connect directly to anrpipewith simpleGET/POSTrequests. Visit the server's URL/helpfor more details.Custom URL or channelBoth sending and receiving support the command line options-c/--channeland-u/--urlto use a different channel or URL than is saved.ServerStart the server via:rpipe_server<port>[--host<host>][--debug]
Package: rpipins
Raspberry Pi GPIO PinoutA beautiful GPIO pinout and pin function guide for the Raspberry Pi with live pin config, drive and level monitoring.Usageusage: rpipins [--...] [--all] or {i2c,spi} [--find <text>]
       --pins          - show physical pin numbers
       --all or {i2c,spi} - pick list of interfaces to show
       --hide-gpio     - hide GPIO pins
       --debug         - show GPIO status
       --light         - melt your eyeballs
       --find "<text>" - highlight pins matching <text>
                         supports regex if you"re feeling sassy!

eg:    rpipins i2c                    - show GPIO and I2C labels
       rpipins                        - basic GPIO pinout
       rpipins --all --find "I2C1"    - highlight any "I2C1" labels
       rpipins --all --find "SPI* SCLK" - highlight any SPI clock pinsInstallingJust runpython3 -m pip install rpipinsAcknowledgementsThis project was inspired by GPIO Zero's command-line pinout -https://github.com/gpiozero/gpiozeroChangelog1.0.0Initial Release
Package: rpi-piusv
AboutThe RPI USV+ is a wide input range power supply expansion board for the Raspberry Pi.Distributor:https://www.reichelt.de/raspberry-pi-usv-rpi-usv-p169883.htmlResourcesManufacturersCW2 GmbH & Co. KGRitter Elektronik GmbHHanza Holding ABArticleshttps://www.raspberry-pi-geek.de/ausgaben/rpg/2014/05/das-usv-modul-pi-usv-fuer-den-raspberry-pi-im-test/https://www.raspberry-pi-geek.com/Archive/2014/07/Testing-a-Pi-UPS-modulehttps://www.heise.de/ct/ausgabe/2015-22-Test-Unterbrechungsfreie-Stromversorgungen-fuer-den-Raspberry-Pi-2826344.htmlhttps://www.raspberry-pi-geek.de/ausgaben/rpg/2016/01/strom-aus-der-konserve-die-ueberarbeitete-pi-usv-von-cw2/https://www.nikolaus-lueneburg.de/2016/08/raspberry-pi-usv/https://www.facebook.com/CW2.PiUSV/https://blog.krannich.de/piusv-piups-unterbrechungsfreie-stromversorgung/https://wiki.fhem.de/wiki/Unterbrechungsfreie_Spannungsversorgung_%22PIUSV%2B%22_direkt_ansteuernhttps://forum-raspberrypi.de/forum/thread/29737-pi-usv-monitoring-script/https://forum-raspberrypi.de/forum/thread/42466-ritter-usv-und-firmware-mangelhaft-bis-untauglich/Documentshttp://download.insaneware.de/0006.pdfhttps://cdn-reichelt.de/documents/datenblatt/A300/RASPBERRY_USV_DOKU_DE_042016_3B.pdfhttps://cdn-reichelt.de/documents/datenblatt/A300/RASPBERRY_USV_ANSCHLUSSBELEGUNG_DE_032016.pdfhttps://forum-raspberrypi.de/attachment/12396-pi-uvs-i2c-abfrage-pdf/Implementationshttps://github.com/pklaus/python-piusvplushttps://github.com/schneuwlym/pyusvhttps://github.com/pipp37/pypiusv2https://github.com/dehapama/piupsmonitor-raspberrypiAlternativeshttp://www.uugear.com/product/zero2go-omini-wide-input-range-multi-channel-power-supply-for-raspberry-pi/
Package: rpi-power-meter-mqtt
Copyright (c) 2015 David ÜbelackerPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.Description: Power Meter Logger for Raspberry Pi=============================Reads the led impulses of a power meter via light sensor, calculate the current power consumption and sends it to a mqtt broker.Installation:-------------------pip install rpi-power-meter-mqttConfiguration:-------------------Needs a json configuration file as follows (don't forget to change ip's and credentials ;-)):.. code:: json{"mqtt_client_id": "power_meter","mqtt_host": "192.168.0.210","mqtt_port": "1883","sources": [{"gpio": "4","topic": "halti/david/power_consumption"},{"gpio": "17","topic": "halti/stweg/power_consumption"}]}Start:-------------------rpi-power-meter-mqtt config.jsonPlatform: UNKNOWN
Package: rpi-radio-alarm
rpi-radio-alarmPackage to simplify the communication to a instance of therpi-radio-alarmUsagepip install rpi-radio-alarmObjectsThis package includes two classes.ApiHelperThis class can handle commands and arguments and send them to therpi-radio-alarmand return the responseThis is done in thedo_command(cmd, args),cmdhas to be one ofconstants.COMMANDSandargsis a dictionary with the appropiate values.RpiArgumentParserTheRpiArgumentParserparses string input to correct arguments for the ApiHelper.ResponseParserThis class defines for theApiHelperhow to parse the response from therpi-radio-alarm.Example Usagesrpi-radio-alarm-discordbot-pythonrpi-radio-alarm-telegrambotLicenseLGPLv3
Package: rpi-remote
Rpi Remote clientInstallationPrerequisitessudo apt install build-essential libffi-dev gcc pkg-config python3-dev python3-pip libssl-dev cargo opensslInstall rust:https://www.rust-lang.org/tools/installInstall packagepython3 -m pip install --upgrade rpi-remote --userCreate serviceecho "[Unit]
Description=rpi_remote service
After=multi-user.target
Conflicts=getty@tty1.service
[Service]
User=${USER}
Type=simple
Environment="LC_ALL=C.UTF-8"
Environment="LANG=C.UTF-8"
ExecStart=${HOME}/.local/bin/rpi-remote
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target" | sudo tee /etc/systemd/system/rpi-remote.servicesudo systemctl daemon-reload
sudo systemctl enable rpi-remote.service
sudo systemctl start rpi-remote.serviceEdit configConfig file path:~/.config/rpi_remote/config.iniCheck logsjournalctl -fu rpi-remote
Package: rpi-rf
IntroductionPython module for sending and receiving 433/315MHz LPD/SRD signals with generic low-cost GPIO RF modules on a Raspberry Pi.Protocol and base logic ported ported fromrc-switch.Supported hardwareMost generic 433/315MHz capable modules (cost: ~2€) connected via GPIO to a Raspberry Pi.CompatibilityGeneric RF outlets and most 433/315MHz switches (cost: ~15€/3pcs).Chipsets:SC5262 / SC5272HX2262 / HX2272PT2262 / PT2272EV1527 / RT1527 / FP1527 / HS1527For a full list of compatible devices and chipsets see therc-switch WikiDependenciesRPi.GPIOInstallationOn your Raspberry Pi, install therpi_rfmodule via pip.Python 3:# apt-get install python3-pip
# pip3 install rpi-rfWiring diagram (example)Raspberry Pi 1/2(B+):RPI GPIO HEADER
              ____________
             |        ____|__
             |       |    |  |
             |     01|  . x  |02
             |       |  . x__|________       RX
             |       |  . x__|______  |   ________
             |       |  . .  |      | |  |        |
   TX        |   ____|__x .  |      | |__|VCC     |
 _______     |  |  __|__x .  |      |    |        |
|       |    |  | |  |  x____|______|____|DATA    |
|    GND|____|__| |  |  . .  |      |    |        |
|       |    |    |  |  . .  |      |    |DATA    |
|    VCC|____|    |  |  . .  |      |    |        |
|       |         |  |  . .  |      |____|GND     |
|   DATA|_________|  |  . .  |           |________|
|_______|            |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                   39|  . .  |40
                     |_______|

TX:
   GND > PIN 09 (GND)
   VCC > PIN 02 (5V)
  DATA > PIN 11 (GPIO17)

RX:
   VCC > PIN 04 (5V)
  DATA > PIN 13 (GPIO27)
   GND > PIN 06 (GND)UsageSeescripts(rpi-rf_send,rpi-rf_receive) which are also shipped as cmdline tools.Open SourceThe code is licensed under theBSD LicenceThe project source code is hosted onGitHubPlease useGitHub issuesto submit bugs and report issues
Package: rpi-rf-gpiod
IntroductionPython module for sending and receiving 433/315MHz LPD/SRD signals with generic low-cost GPIO RF modules on a Raspberry Pi.Protocol and base logic ported ported fromrc-switch. Thelibgiod-pythonlibrary is required to access the GPIO pins. Therefore, the GPIO character device is used instead of the old GPIO sysfs interface.Supported hardwareMost generic 433/315MHz capable modules (cost: ~2€) connected via GPIO to a Raspberry Pi.CompatibilityGeneric RF outlets and most 433/315MHz switches (cost: ~15€/3pcs).Chipsets:SC5262 / SC5272HX2262 / HX2272PT2262 / PT2272EV1527 / RT1527 / FP1527 / HS1527For a full list of compatible devices and chipsets see therc-switch WikiDependencieslibgiod-python(available through most package managers aspython3-libgpiod)InstallationOn your Raspberry Pi, install therpi_rf-gpiodmodule via pip.Debian/Ubuntu:# apt-get install python3-pip python3-libgpiodFedora/CentOS:# dnf install python3-pip python3-libgpiodWithpipinstalled:# pip3 install rpi-rf-gpiodWiring diagram (example)Raspberry Pi 1/2(B+):RPI GPIO HEADER
              ____________
             |        ____|__
             |       |    |  |
             |     01|  . x  |02
             |       |  . x__|________       RX
             |       |  . x__|______  |   ________
             |       |  . .  |      | |  |        |
   TX        |   ____|__x .  |      | |__|VCC     |
 _______     |  |  __|__x .  |      |    |        |
|       |    |  | |  |  x____|______|____|DATA    |
|    GND|____|__| |  |  . .  |      |    |        |
|       |    |    |  |  . .  |      |    |DATA    |
|    VCC|____|    |  |  . .  |      |    |        |
|       |         |  |  . .  |      |____|GND     |
|   DATA|_________|  |  . .  |           |________|
|_______|            |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                     |  . .  |
                   39|  . .  |40
                     |_______|

TX:
   GND > PIN 09 (GND)
   VCC > PIN 02 (5V)
  DATA > PIN 11 (GPIO17)

RX:
   VCC > PIN 04 (5V)
  DATA > PIN 13 (GPIO27)
   GND > PIN 06 (GND)UsageSeescripts(rpi-rf_send,rpi-rf_receive) which are also shipped as cmdline tools.Open SourceThe code is licensed under theBSD LicenceThe project is forked from the GPIO sysfs interface implementation ofmilaqThe project source code is hosted onGitHubPlease useGitHub issuesto submit bugs and report issues
Package: rpi-rfm69
RFM69 Radio interface for the Raspberry PiThis package provides a Python wrapper of theLowPowerLabs RFM69 libraryand is largely based on the work ofEric Tromblywho ported the library from C.The package expects to be installed on a Raspberry Pi and depends on theRPI.GPIOandspidevlibraries. In addition you need to have an RFM69 radio module directly attached to the Pi.For details on how to connect such a module and further information regarding the API check out thedocumentation.Changelog0.6.0Added support for ATC mode (thanks @MxMarx)Reduced some hang (thanks @MxMarx)Extended registers retrieved to include High Power PA settings (thanks @tomtastic)0.5.1Added support for radios without reset pins0.5.0Added set_frequency_in_Hz and get_frequency_in_Hz0.4.0Made the Radio class threadsafe, and added threadsafe methods for accessing packetsAdded testing for the threadsafe methodsAdded pylinting and made some cosmetic changes to get a good pylint scoreAdded coverage testing via coveralls.io, and instructions for doing so0.3.0Added support for sendListenModeBurstMade tests more configurableRemoved Python 2 from tests since it's EOLAdded instructions on how to build for PyPi
Package: rpi-rfsniffer
rpi-rfsnifferAllows you to record RF signals and play them back on a Rapsberry Pi.Nowadays, many remotes are sending over cheap RF transmitters. Especially
alot of the home automation devices usually communicate over these RF links.InstallationThrough pip:$>sudo pip install rpi-rfsnifferLatest development version (in linux):$>git clone https://github.com/jderehag/rpi-rfsniffer.git
$>cd rpi-rfsniffer
$>sudo python setyp.py install
$>UsageBy default it assumes you have attached the transmitter on pin 11 and the
recevier on pin 13:# To record signal
$>rfsniffer record remotename.button1
  Press remotename.button1
  Recorded 64 bit transitions
$>

# To transmit/send that signal (twice)
$>rfsniffer play remotename.button1 remotename.button1
$>

# To dump all the recorded signals
$>rfsniffer dump
  remotename.button1
$>Hardware guideTODOSignal analysisTODO
Package: rpi-rotary-encoder
Rotary EncoderA rotary encoder package for the Raspberry pi that "just works".Tested with aKY-040 Rotary Encoderon a Raspberry pi 3 B+InstallationInstall via pip:pip install rpi-rotary-encoderExampleimportrotary_encodercounter=0defincrement():globalcountercounter+=1print(counter)defdecrement():globalcountercounter-=1print(counter)defpress():print("PRESS")defrelease():print("RELEASE")withrotary_encoder.connect(clk_pin=20,# requireddt_pin=21,# requiredsw_pin=26,# optionalon_clockwise_turn=increment,# optionalon_counter_clockwise_turn=decrement,# optionalon_button_down=press,# optionalon_button_up=release,# optional):input("press enter to quit\n")Advanced UsageWhen callingconnectyou can pass in an optionalcallback_handlingargument. This controls how the callbacks are executed. The options are:CallbackHandling.GLOBAL_WORKER_THREAD: The default. Callbacks are called in a global worker thread. This means all callbacks across all rotary encoders are called in the same thread. This ensures that all callbacks are executed sequentially. This is the least likely to cause problems with race conditions.CallbackHandling.LOCAL_WORKER_THREAD: Similar to the above, except that each individual rotary encoders callbacks are executed on a different thread. This means that sequential execution of the callbacks of one encoder is still guaranteed, but not across several encoders. The responsiveness of the individual encoders may be slightly improved.CallbackHandling.SPAWN_THREAD: Spawn a new thread for every callback. The execution of your callbacks is no longer sequential, and you will have to make sure that your callbacks are thread safe.CallbackHandling.GPIO_INTERUPT_THREAD:  Not recommended. Similar in behavior toCallbackHandling.SPAWN_THREADexcept that the threads are spawned by the underlying C extension library.Similar Projects:Thepigpio-encoderis a similar library based on pigpio.
Package: rpisensors
This Python module is a collection of classes to enable Raspberry PI sensors support. Module also contains core classes to be used for interaction with I2C devices and also 16-bit EEPROM modules.Supported sensors and measurements:Bosch BMP180: temperature (Celsius degrees), pressure (Pa)ST VL6180X: distance (mm), ambient light (lux)Dependenciessmbus-cffiSeehttps://github.com/bivab/smbus-cffi/blob/master/README.rstfor install instructions.Installation1. pip install from PyPipip install rpisensors2. pip install from gitpip install git+https://github.com/altosz/rpisensors.git3. Clone the repository and run setup.pygit clone https://github.com/altosz/rpisensors.git
python setup.py installUsageIf you have a sensor connected to Raspberry PI 3 (on I2C bus 1), you may runpython -m rpisensors.bmp180
python -m rpisensors.proximityThe output will show the results of measurement.
If you have sensors connected to I2C bus 0, you may test the sensor from python console:>>> from rpisensors import BMP180
>>> sensor = BMP180(0)
>>> print sensor.read_temperature()Bug ReportingTo submit a bugreport use the GitHub bugtracker for the project:https://github.com/altosz/rpisensors/issuesDevelopmentYou may use I2CDevice class as a base for I2C devices. Or Eeprom16 for devices using 16-bit eeprom.AuthorsAlexei Tishin (altos.z@gmail.com)CopyrightThis program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of the License.See LICENSE for full license text.