PySnarl
PySnarl python lib, Send SNP/3.1 messages. (Snarl)
Installing
Install and update using pip:
$ pip install pysnarl
pysnarl supports Python 3 and newer
Example
use as module/lib
from pysnarl import Snarl
Snarl.send("REGISTER", 'test_app', 'TEST', icon = 'snarl.png', '127.0.0.1', 9899, verbose = True)
Snarl.send("NOTIFY", 'test_app', 'TEST', 'TEST MESSAGE', 'snarl.png', '127.0.0.1', 9899, priority = 1, verbose = True)
outputs:
[SNP/3.1 REGISTER
app-id: test_app
title: TEST
icon: snarl.png
END]
request xxx: SNP/3.1 REGISTER
app-id: test_app
title: TEST
icon: snarl.png
END
result: [SNP/3.1 SUCCESS
END]
[SNP/3.1 NOTIFY
app-id: test_app
title: TEST
text: TEST MESSAGE
icon: snarl.png
priority: 1
END]
request xxx: SNP/3.1 NOTIFY
app-id: test
title: TEST
text: TEST MESSAGE
icon: snarl.png
priority: 1
END
result: [SNP/3.1 SUCCESS
END]
or run on terminal/cmd
> snarl 127.0.0.1 9889 -a test_app -i "snarl.png" -t TEST -v -R
> snarl 127.0.0.1 9889 -a test_app -b "TEST MESSAGE" -i "snarl.png" -p 1 -t TEST -v -N
> pysnarl 127.0.0.1 9889 -a test_app -i "snarl.png" -t TEST -v -R
> pysnarl 127.0.0.1 9889 -a test_app -b "TEST MESSAGE" -i "snarl.png" -p 1 -t TEST -v -N
[SNP/3.1 NOTIFY
app-id: test_app
title: TEST
text: TEST MESSAGE
icon: snarl.png
priority: 1
END]
request xxx: SNP/3.1 NOTIFY
app-id: test_app
title: TEST
text: TEST MESSAGE
icon: snarl.png
priority: 1
END
result: [SNP/3.1 SUCCESS
END]
Tips
always register (-R) before send message
Links
- License: GPL
- Code: https://github.com/cumulus13/snarl
- Issue tracker: https://github.com/cumulus13/snarl/issues
Author
Metadata
Release files for pysnarl 0.33
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 |
|---|---|---|---|---|
| pysnarl-0.33.tar.gz | 7.9 kB | Without provenance | Details for pysnarl-0.33.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysnarl-0.33-py3-none-any.whl | Python 3 | none | any | Details for pysnarl-0.33-py3-none-any.whl |
Total release size: 17.2 kB
Release files / pysnarl-0.33.tar.gz
| Download URL | pysnarl-0.33.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dbb93a0f0531f9779255f85da75919f6128460fe3b5f498fcfbcfe51627860f0
|
|
BLAKE2b-256 checksum How to use checksums |
98267906e2ca79836b6a47af58e485067cb5cbef07fa1447bf192b977d1c08d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / pysnarl-0.33-py3-none-any.whl
| Download URL | pysnarl-0.33-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0eb93e2a380b42cbd0893752a6b9fc6b60aed7ce566a659a29b957cc26d59a71
|
|
BLAKE2b-256 checksum How to use checksums |
88cccb9dffeec0e50fcc9054811af6623c4e7ccfff4c08749f6b55b4d06c89f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for pysnarl 0.33
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.