rpi-radio-alarm library
Project description
rpi-radio-alarm
Package to simplify the communication to a instance of the rpi-radio-alarm
Usage
pip install rpi-radio-alarm
Objects
This package includes two classes.
ApiHelper
This class can handle commands and arguments and send them to the rpi-radio-alarm and return the response
This is done in the do_command(cmd, args)
, cmd
has to be one of constants.COMMANDS
and args
is a dictionary with the appropiate values.
RpiArgumentParser
The RpiArgumentParser
parses string input to correct arguments for the ApiHelper.
ResponseParser
This class defines for the ApiHelper
how to parse the response from the rpi-radio-alarm.
Example Usages
rpi-radio-alarm-discordbot-python
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file rpi-radio-alarm-0.3.5.tar.gz
.
File metadata
- Download URL: rpi-radio-alarm-0.3.5.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c8e3b59219b68092a34f017774d163380ca94fa2b0a6601e01a5b04405e72fb |
|
MD5 | 03a8d8e89c4ccb70baf0b638e3e515a0 |
|
BLAKE2b-256 | e645c9dd1270d52d917487a7f58b3ea26a21feb2b8d5a24aeda210d5157d2d03 |