This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
Alfredo - Born to serve!
************************


Alfredo is a simple, extensible gtalk bot. It's capable of doing any kind of tasks, implemented as separated commands.

Here is a typical session: ::

you: inv some text
alfredo: called inv some text -> txet emos


Implementing a new command
**************************

Commands are implemented as Plugins (more at plugnplay <https: github.com="" daltonmatos="" plugnplay="">). Just create a new class:

from alfredo import Plugin, ICommand

class SomeCommand(Plugin):
implements = [ICommand]

def help(self):
return ('short help', 'long help')

def name(self):
return 'mycommand'

def match_name(self, command):
return 'mycommand' == command

def run(self, user, *args)
# process some logic
return result


In this case we create a new command named 'mycommand'. If we send this message to alfredo:

mycommand p1 p2 p3


the ``run()`` method would be called like this: ``run('user@domain.com', 'p1', 'p2', 'p3')``. This method must return a string, that will be sent back to the original user.


How to use it
*************

To start talking to a running instance of alfredo just add ``alfredo@daltonmatos.com`` to your gtalk conacts list and you are done!

Or try out your own commands from the example code.


Dependencies
************

Alfredo's core components only needs:

* plugnplay - https://github.com/daltonmatos/plugnplay
* xmpppy - http://xmpppy.sourceforge.net/

The included commands needs:

* BeautifulSoup - http://www.crummy.com/software/BeautifulSoup/
* requests - https://github.com/kennethreitz/requests
* simplejson - http://code.google.com/p/simplejson/

You can even run the requirements file to get up your environment::

pip install -r requirements.txt

--

Dalton barreto

daltonmatos@gmail.com
Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
alfredo-0.2.tar.gz (6.7 kB) Copy SHA256 Checksum SHA256 Source Jul 6, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting