campfire-0.1
توضیحات
A simple campfire api implementation.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | campfire-0.1 |
| نام | campfire |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Mario Rodas |
| ایمیل نویسنده | rodasmario2@gmail.com |
| آدرس صفحه اصلی | https://github.com/marsam/campfire |
| آدرس اینترنتی | https://pypi.org/project/campfire/ |
| مجوز | MIT License |
Campfire
========
A simple `campfire api <https://github.com/37signals/campfire-api>`_ implementation.
Examples
--------
Mentions notifications:
.. code:: python
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()
نحوه نصب
نصب پکیج whl campfire-0.1:
pip install campfire-0.1.whl
نصب پکیج tar.gz campfire-0.1:
pip install campfire-0.1.tar.gz