summaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2012-07-20Add example for retrieving avatars.Lance Stout
2012-06-23Add notes to echo_client.py example on working with Facebook and MSN.Lance Stout
2012-06-19Add example for dealing with GTalk custom domain certificates.Lance Stout
2012-06-19Add examples for using IBB.Lance Stout
2012-05-16Spell thirdparty correctly.Lance Stout
2012-05-14Remove extra connection info so that examples run without modification.Lance Stout
GTalk users may still need to change the connect() call if dnspython is not installed, as usual.
2012-05-14Add more documentation to the custom stanza examples.Lance Stout
2012-05-14Added custom_stanza exampleErick Pérez Castellanos
2012-05-06Update other examples to use threaded mode for handlers that call disconnect()Lance Stout
2012-05-06Update send_client.py to call disconnect() from a threaded handler.Lance Stout
2012-03-20Merge remote-tracking branch 'hansent/master' into developLance Stout
2012-03-19Fix error in the registration example.Lance Stout
The now=True parameter was not being passed to allow the registration submission to be submitted while the send queue is paused.
2012-03-18Add example for using user location.Lance Stout
Uses http://freegeoip.com to get an approximate location based on the machine's IP address.
2012-03-16Add pubsub examples.Lance Stout
Run pubsub commands via pubsub_client, and watch events as they come in with pubsub_events.
2012-03-10Add support for XEP-0118.Lance Stout
See examples/user_tune.py for a demonstration using the currently playing song in iTunes.
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-24Fix a few typos.Lance Stout
2012-01-23Revert the X-GOOGLE-TOKEN mech to not perform HTTP requests.Lance Stout
Added new example for how to retrieve a Google token, following the best case, non-browser, workflow. Other thirdparty auth mechs (Facebook, MSN) follow a similar pattern of using an access token.
2012-01-19Add basic start for a client side XEP-0077 plugin.Lance Stout
2012-01-18Fix merge errors and bot example.Lance Stout
2012-01-18Merge branch 'docs' into developLance Stout
Conflicts: docs/_static/haiku.css docs/_static/header.png docs/conf.py docs/getting_started/muc.rst docs/index.rst examples/muc.py
2012-01-05Apply Te-Je's MUC guide patch.Lance Stout
2012-01-05Update doc settings to new theme, add examples, use 1.0Lance Stout
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