Skip to main content
Help us improve Python packaging – donate today!

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()

Release history Release notifications

This version
History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
campfire-0.1.tar.gz (2.6 kB) Copy SHA256 hash SHA256 Source None Sep 9, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page