Some exemple of code using python twisted
Python HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
basic_twisted_http_server.py
httpclient.py
locator.py
locator_inline.py
positionserver.py
simpleproxy.py
snake.html
snake.py
testdefer.py
wsclient.py
wsserver.py

README.md

python_twisted_examples

Some example of code using python twisted This examples was the support of a meetup presentation: http://www.meetup.com/Groupe-dutilisateurs-Python-Grenoble/events/220731341/

Defered

  • testdefer.py basic example of defer and usage in the inlineCallback

HTTP:

  • httpclient.py example
  • locator.py IP locator example using defer
  • locator_inline.py IP locator example using inlineCallback
  • basic_http_server.py a simple http server equivaltent to SimpleHTTPServer but more robust

Simple position sharing:

  • positionserver.py position sharing server using LineReceiver prototcol
  • snake.py simple game using positionserver to share snake position
  • wsserver.py position sharing server using Websocket (need Autobahn package) coupled with a classical http server
  • wsclient.py position sharing game using web socket
  • snake.html browser version of the game

Proxy Server:

  • simpleproxy.py Basic Proxy server easy to extend to serve your needs