Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(11)  |  Call(11)  |  Derive(0)  |  Import(0)

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/axon_only_example.py   kamaelia(Download)
while True:
    line = sys.stdin.readline().rstrip() # get rid of the newline
    reverser.put(line)
    enil = reverser.get()
    print enil

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/usecases/LikeTicker.py   kamaelia(Download)
for line in file("Ulysses", 'r+b'):
    line = line.rstrip() # kill the newlines - printing them in reverse order messes with the ticker.
    ticker1.put(line[::-1], "inbox")
    ticker2.put(line, "inbox")
time.sleep(5)
for line in file("Ulysses", 'r+b'):
    ticker3.put(line, "inbox")

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/usecases/simplehttpclient.py   kamaelia(Download)
background = schedulerThread().start()
p = LikeFile(SimpleHTTPClient())
p.put("http://google.com")
p.put("http://slashdot.org")
p.put("http://whatismyip.org")

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/usecases/simpleoggradioplayer.py   kamaelia(Download)
    filedump.write(data)
    # log the stream to disk
    playStream.put(data)
    # and play it.
 

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/usecases/simpleoggdecoder.py   kamaelia(Download)
# Play the ogg data in the background
oggdata = open(filename, "r+b").read()
playStream.put(oggdata)
while True:
    playStream.get()

src/k/a/kamaelia-HEAD/Sketches/PT/likefile/usecases/mediumtcpclient.py   kamaelia(Download)
echoClient = LikeFile(TCPClient(host = "localhost", port = PORT))
while True:
    echoClient.put(raw_input(">>> "))
    print echoClient.get()

src/k/a/kamaelia-HEAD/Sketches/PT/BouncingCatGame/likecat.py   kamaelia(Download)
for i in xrange(0, max_cats):
    time.sleep(0.5)
    catmaker.put(i)
print "cats over!"
time.sleep(5)