Skip to content

Instantly share code, notes, and snippets.

@jmatt
Created February 24, 2012 22:34
Show Gist options
  • Save jmatt/1904239 to your computer and use it in GitHub Desktop.
Save jmatt/1904239 to your computer and use it in GitHub Desktop.
import sys
import pprint
from urlparse import urlparse
from thrift.transport import TTransport
from thrift.transport import TSocket
from thrift.transport import THttpClient
from thrift.protocol import TBinaryProtocol
import Snowflake
from ttypes import *
host = 'localhost'
port = 7610
socket = TSocket.TSocket(host, port)
transport = TTransport.TFramedTransport(socket)
protocol = TBinaryProtocol.TBinaryProtocol(transport)
client = Snowflake.Client(protocol)
transport.open()
client.get_timestamp()
client.get_id("test")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment