summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* use py3 urllib import in doc and examplesSergey Shepelev2020-12-134-8/+8
| | | | https://github.com/eventlet/eventlet/issues/668
* Drop support for Python2.6 and python-epoll packageSergey Shepelev2018-05-192-4/+0
|
* external dependencies for six, monotonic, dnspythonnat-goodspeed2018-05-101-1/+1
|
* websocket: update example for BlobSergey Shepelev2016-11-051-5/+10
| | | | https://github.com/eventlet/eventlet/issues/351
* hubs: drop Twisted supportSergey Shepelev2014-10-297-248/+0
|
* Reformat with autopep8Jakub Stasiak2014-10-116-7/+17
|
* PEP-8 fixesSergey Shepelev2014-08-2715-38/+61
|
* python3 compat fixesVictor Sergeyev2014-03-281-7/+9
| | | | https://github.com/eventlet/eventlet/pull/59
* python3 compat: print() function syntaxSergey Shepelev2013-12-0320-66/+70
|
* python3 compat: 2to3: `except E as e:` syntaxDavanum Srinivas2013-12-034-4/+4
| | | | | | | First step to Python 3 compatibility "2to3 -w -f except ." See [1] [1] http://docs.python.org/2/library/2to3.html#fixers
* examples: webcrawler: urls tuple->list + more style fixesSergey Shepelev2013-01-041-8/+9
|
* use a tuple of URLs that do not 404Thomas Grainger2013-01-031-9/+12
|
* Refactoring example to use a bit clearer code flow.Ryan Williams2011-06-081-6/+11
|
* Initial implementation of hubless zeromq support using ZMQ_FD and ZMQ_EVENTS.Zed Shaw2011-04-081-0/+31
|
* Fixes #70. Thanks for the patch, I assume this is the same anonymous as ↵Ryan Williams2010-12-151-3/+2
| | | | before, cheers.
* Refactored the green version of zmq to use a factory function for ContextBen Ford2010-10-121-2/+1
|
* Changed around the sockets in the bridge for claritly, tidied up the main ↵Ben Ford2010-09-302-17/+23
| | | | code and added some module docs
* Added a distributed chat example that has many chat servers forwarding chat ↵Ben Ford2010-09-292-0/+142
| | | | messages over a zmq device
* Changed existing websocket examples to take a portBen Ford2010-09-292-3/+5
|
* Merge latest changesBen Ford2010-09-201-0/+2
|\
| * Support for SSL websockets, which also happens to improve our SSL support in ↵Ryan Williams2010-09-161-0/+2
| | | | | | | | WSGI generally. Fixes #62.
* | First stab at zeromq support. This consists of:Ben Ford2010-09-201-0/+64
|/ | | | | | | | | | | | | | | | | | | A new hub: This closely mirrors the poll hub with some of the internal logic changed to reflect zmq's flags. A green module for zmq: This subclasses Context and Socket to ensure calls are non blocking. A (very sparse) beginings of a test module. An example: A melding of the pyzmq chat example and the eventlet telnet chat example. TODO zmq_poll chokes if the sockets passed to it come from different contexts. As context is the entry point to everything else then it would make sense to include a check in here that each thread has only one context instance. By context being the entry point I mean: ctx = zmq.Context() socket = ctx.socket(zmq.<type-of-socket>) This call to socket is repeated for each socket you want and ctx must be the same one for each thread. Tests. I'd like to get to the point f having all zmq socket pairs tested - and perhaps a nice benchmark suite too.
* Added websocket multi-user chat example for Luca Zago's question.Ryan Williams2010-08-132-0/+68
|
* Incorporated Holger's fix for Chrome 5Ryan Williams2010-07-282-2/+2
|
* Added cleaner recursive web crawler example.Ryan Williams2010-06-211-0/+49
|
* Tweaked the implementation of Timeout so that passing True as the exception ↵Ryan Williams2010-06-191-3/+3
| | | | class is the same as passing None, because it seemed inconsistent that one boolean value would have special nice behavior and the other would cause weird exceptions.
* Added documentation for websocket module and switched to using decorators in ↵Ryan Williams2010-05-221-2/+3
| | | | the examples.
* Moved WebSocketWSGI class into eventlet.websocket and added a fewtests to ↵Ryan Williams2010-05-061-110/+7
| | | | bring it back up to 100%. Refactored the example to reference eventlet.websocket.
* Updated chat server example to be resilient against broken pipes. Also used ↵Ryan Williams2010-03-311-7/+15
| | | | a set instead of a list and parameterized the port.
* Corrected get_errno import to make websocket example work again (boo me for ↵Ryan Williams2010-03-212-3/+4
| | | | using an internal API). Added note about which browser it works with.
* Actually include forwarder example.Ryan Williams2010-03-161-1/+3
|
* run on stackless pypy 1.2 http://pypy.org/download.html#stackless-versionDonovan Preston2010-03-121-0/+1
|
* Recursive crawler example added.Ryan Williams2010-03-011-0/+51
|
* MergeRyan Williams2010-02-281-0/+24
|\
| * Added port forwarder example.Ryan Williams2010-02-281-0/+24
| |
* | New eventlet.common module to create version-neutral layer. For now only ↵amajorek2010-02-281-2/+3
|/ | | | | | get_errno added there. All usage of e[0] replaced with either get_errno(e) or e.args[0] if intnetion was not to extract errno, but first argument
* MergeRyan Williams2010-02-215-26/+6
|\
| * Used convenience functions in examples.Ryan Williams2010-02-215-26/+6
|/
* Shifted documentation to refer to eventlet-module versions of those functions.Ryan Williams2010-02-191-2/+1
|
* Added dispatch pattern that shows how to use GreenPiles. Feedparser ↵Ryan Williams2010-02-192-0/+66
| | | | examples in the examples dir.
* Modified echoserver example to not use separate readers/writers.Ryan Williams2010-02-121-5/+5
|
* Use None as the flag value because the empty string is a legit message.Ryan Williams2010-02-111-2/+2
|
* Updated websocket example, made it a little more bulletproof; now it's ↵Ryan Williams2010-02-111-35/+45
| | | | almost like tissue paper at stopping bullets. :)
* Expanded websocket example, added graphing page which looks rad in Chrome.Ryan Williams2010-02-112-12/+87
|
* Added websocket example, small changes to wsgi to support it.Ryan Williams2010-02-101-0/+104
|
* Pulled examples into docs proper, for better linkage on the Web.Ryan Williams2010-01-252-51/+32
|
* Cleaned up examples by moving twisted examples into their own subdirectory.Ryan Williams2010-01-257-0/+1
|
* Default size parameter for greenpoolsRyan Williams2010-01-173-5/+3
|
* Deprecated connect_tcp, refactored the example a little bit.Ryan Williams2010-01-171-15/+9
|
* Added docs on max_http_version which mention its purpose of killing ↵Ryan Williams2010-01-101-5/+7
| | | | keepalives, improved wsgi docs with the example code.