コード例 #1
0
def start_handler(error):
    output.send('out', {'body': "Hello world!"})
コード例 #2
0
def message_handler(word):
    if word not in counts:
        counts[word] = 0
    counts[word] += 1
    output.send('out', (word, counts[word]))
コード例 #3
0
ファイル: word_counter.py プロジェクト: kuujo/vertigo-python
def message_handler(word):
    if word not in counts:
        counts[word] = 0
    counts[word] += 1
    output.send('out', (word, counts[word]))