summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2012-01-31examples: fix rpc examples. __init__ method was wrongly named "__init" ↵Thomas Hansen
causing proxy and handler class to not be initialized.
2012-01-02Merge pull request #132 from rhcarvalho/masterLance Stout
Fix a typo in several files.
2012-01-02Fix a typo in several files.Rodolfo Carvalho
This fixes several instances of "intial" for "initial".
2011-12-31Merge pull request #131 from rhcarvalho/masterLance Stout
Small changes to the examples
2011-12-31Remove unused import.Rodolfo Carvalho
I forgot about this one before!
2011-12-31Ask interactively for missing command line arguments.Rodolfo Carvalho
Instead of complaining that the arguments were not given, ask interactively for input. This example was the only one to behave differently from the others.
2011-12-31Remove unused imports in the examples.Rodolfo Carvalho
2011-12-31Add missing import.Rodolfo Carvalho
2011-12-30Merge pull request #130 from rhcarvalho/masterLance Stout
Some small fixes
2011-12-30Update examples to use the block'' argument instead of the deprecated ↵Rodolfo Carvalho
threaded''.
2011-12-30Replace pydns with dnspython in the comments of the examples.Rodolfo Carvalho
2011-11-19Tidy up logging calls.Lance Stout
2011-11-20This change stops sleekxmpp from spending huge amounts of time unnecessarily ↵Vijay Pandurangan
computing logging data that may never be used. This is a HUGE performance improvement; in some of my test runs, unnecessary string creation was accounting for > 60% of all CPU time. Note that using % in a string will _always_ perform the sting substitutions, because the strings are constructed before the function is called. So log.debug('%s' % expensiveoperation()) will take about the same CPU time whether or not the logging level is DEBUG or INFO. if you use , no substitutions are performed unless the string is actually logged
2011-11-18Remove the config_component example in favor of echo_component.sleek-1.0-RC31.0-RC3Lance Stout
The roster portion of the example is too outdated.
2011-11-17Add echo component example.Lance Stout
2011-08-23Remove extra debugging code that made it into a commit.sleek-1.0-RC11.0-RC1Lance Stout
2011-08-18Update examples to work with Python3 (raw_input vs input)Lance Stout
2011-08-18fixed manual address definitionNathan Fritz
2011-08-18Add an example for dumping the roster to the command line.Lance Stout
2011-08-17Add guide for sending a message and then disconnecting.Lance Stout
2011-08-13More documentation!Lance Stout
Finished the echo bot quickstart. Added placeholders for other guides we need.
2011-08-13Update XEP-0050 to use new IQ exceptions.Lance Stout
IqError is now caught and forwarded to the command error handler referenced in the session. Errors are now caught and processed by the session's error handler whether or not the results Iq stanza includes the <command> substanza. Added the option for blocking command calls. The blocking option is set during start_command with block=True. Subsequent command flow methods use session['block'] to determine their blocking behaviour. If you use blocking commands, then you will need to wrap your command calls in a try/except block for IqTimeout exceptions.
2011-08-10Merge branch 'develop' of github.com:fritzy/SleekXMPP into developNathan Fritz
2011-08-10added send_client exampleNathan Fritz
2011-07-27Add support for HTTP Proxy connections.Lance Stout
2011-03-24Left too much unlrelated code in example.Lance Stout
2011-03-24Added new XEP-0050 implementation.Lance Stout
Backward incompatibility alert! Please see examples/adhoc_provider.py for how to use the new plugin implementation, or the test examples in the files tests/test_stream_xep_0050.py and tests/test_stanza_xep_0050.py. Major changes: - May now have zero-step commands. Useful if a command is intended to be a dynamic status report that doesn't require any user input. - May use payloads other than data forms, such as a completely custom stanza type. - May include multiple payload items, such as multiple data forms, or a form and a custom stanza type. - Includes a command user API for calling adhoc commands on remote agents and managing the workflow. - Added support for note elements. Todo: - Add prev action support. You may use register_plugin('old_0050') to continue using the previous XEP-0050 implementation.
2011-03-23Tidy up the examples.Lance Stout
2011-02-11Updated XEP-0199 plugin.Lance Stout
Now has docs and uses the new plugin format.
2011-02-10added option to return false on ping error, added ping exampleNathan Fritz
2011-01-13Added examples.Dann Martens
2010-12-16Updated echo_client example to mention SSL options.Lance Stout
2010-12-16Added the disco browser as an example.Lance Stout
2010-11-17Made echo client print help message.Lance Stout
If the jid and password are not supplied, the options list will be displayed instead of hanging trying to connect to a nonexistant server.
2010-11-17Added a basic example for using MUC.Lance Stout
2010-09-01Fixed linespacing and whitespace issues in examples to make them PEP8 compliant.Lance Stout
2010-09-01Updated the client and component examples.Lance Stout
The component example now actually uses a config.xml file for its connection information, and to initialize a roster.
2010-09-01Move the examples to a top-level examples directory.Lance Stout