## What is IRKit?
That is kind of a learning remote control system which has HTTP API interface.
Details is http://getirkit.com/
## install
```bash
$ pip install irkit
```
## Command Usage
```
usage: irkit [-h] {local,internet} ...
IRKit CLI Client for Python. v0.0.1 See also http://getirkit.com/#IRKit-
Device-API
positional arguments:
{local,internet} sub-command help
local api for locals.
internet api for internets.
optional arguments:
-h, --help show this help message and exit
```
Local API:
```
usage: irkit local [-h] [--host] [-k] [-r] [--save signal-name] [-l]
[-s signal-info] [-v]
optional arguments:
-h, --help show this help message and exit
--host show irkit host
-k, --keys get a client token.
-r, --retrieve retrieve a signal
--save signal-name you should appoint a name. save retrieved signal to
~/.config/irkit-py/signal.json with name
-l, --list list of stored signals
-s signal-info, --send signal-info
send a signal. that excepted as json response or
raw_data or key name of store
-v, --verbose put verbose logs
```
Internet API:
```
usage: irkit internet [-h] [-r] [-s signal-info] [--save signal-name]
[-c CLIENT_KEY] [-d DEVICE_ID] [-v]
optional arguments:
-h, --help show this help message and exit
-r, --retrieve retrieve a signal
-s signal-info, --send signal-info
send a signal. that excepted as json response or
raw_data or key name of store
--save signal-name you should appoint a name. save retrieved signal to
~/.config/irkit-py/signal.json with name
-c CLIENT_KEY, --client-key CLIENT_KEY
client key
-d DEVICE_ID, --device-id DEVICE_ID
device id
-v, --verbose put verbose logs
```
### Example
copy and paste style
```bash
## you must send signal to IRKit before
$ irkit local --retrieve
{"freq": 38, "data": [... ...], "format": "raw"}
## copy and paste the json
$ irkit local --send '{"freq": 38, "data": [... ...], "format": "raw"}'
```
store with key
```bash
$ irkit local --retrieve --save toggle-room-light
{"freq": 38, "data": [... ...], "format": "raw"}
$ cat ~/.config/irkit-py/signal.json
{"freq": 38, "data": [... ...], "format": "raw"}
$ irkit local --send movie-room-toggle
```
#### Internet API
Then you want to send internet API, you need to appoint device_id or client_key or both.
```bash
## retrieve needs client key
$ irkit internet --retrieve --client-key YOUR_CLIENT_KEY
## send needs client key and device id
$ irkit internet --send '{"freq": 38, "data": [... ...], "format": "raw"}' \
-c 0A9B3FFB240444A2BA70A9835BFE4F89 \
--device-id 6B08F5EA443E4983864908B4AFF897AA
```
This tool haven't follow client-key and device-key smart integration (it can only get {*see --key option*}).
It'll be implemented next version (and I welcome to your contlibute!).
## as Library
You can also use as api.
Document is now writing... but `main.py` will help you to understand API interfaces.
## Support Versions
- 2.7
- 3.6 (might unstable)
## Bug report or request or something
GitHub issue is opend ;)
https://github.com/hachibeeDI/IRKit/issues
Metadata
Release files for irkit 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| irkit-0.0.5.tar.gz | 22.8 kB | Without provenance | Details for irkit-0.0.5.tar.gz |
Release files / irkit-0.0.5.tar.gz
| Download URL | irkit-0.0.5.tar.gz |
|---|---|
| Size | 22.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b9aa29117c835dc445a37a4671b6aab9e432210fe9c24a6a2e18890f7eebdd1
|
|
BLAKE2b-256 checksum How to use checksums |
321ae5a1bf47c143a8eb981608a651a4b4eaeff85b777c177405480a9e1535e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for irkit 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.