A simple campfire api implementation.
Project description
A simple campfire api implementation.
Examples
Mentions notifications:
import re
# You can replace with growl.
from gi.repository import Notify
TOKEN = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
MENTIONS = re.compile('(?:marsam|all|everybody|help)', flags=re.IGNORECASE | re.UNICODE)
campfire = Campfire('lucuma', TOKEN)
Notify.init('Campfire mentions')
for msg in campfire.stream('433622'):
msg_body = msg['body']
if msg_body and re.match(MENTIONS, msg_body):
Notify.Notification.new(self.name, msg_body, 'dialog-information').show()
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
campfire-0.1.tar.gz
(2.6 kB
view details)
File details
Details for the file campfire-0.1.tar.gz
.
File metadata
- Download URL: campfire-0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67abaa1cab664a64db0360fe718f6b40df2f640a5ee2b821b1471dd23c812879 |
|
MD5 | abd3cfa5093228e029a00667f3b2c1aa |
|
BLAKE2b-256 | 049c911c5f7d05fd4edd8ca219d87ccabdcef7fb1187044f799da6f8e1331596 |