Created
September 20, 2011 17:54
-
-
Save mgwilliams/1229789 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from twisted.application.internet import TCPClient | |
from telephus.protocol import ManagedCassandraClientFactory | |
from telephus.client import CassandraClient | |
class Service(TCPClient): | |
def __init__(self, keyspace=None, host="localhost", port=9160, delegate=None): | |
f = ManagedCassandraClientFactory(keyspace) | |
delegate.set_client(CassandraClient(f)) | |
TCPClient.__init__(self, host, port, f) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment