Created
February 24, 2012 22:34
-
-
Save jmatt/1904239 to your computer and use it in GitHub Desktop.
This file contains 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
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