Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 503 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 503 Bytes

pyprestowrapper

Package for making queries on Presto server

1. Install package

pip install pypresto

2. Use package

from pypresto import PrestoConnection
conn = PrestoConnection(host, user, catalog)
query = 'select * from my_table limit 1'
conn.run_query(query)

3. Usage for authenticated Presto:

from pypresto import PrestoConnection
conn = PrestoConnection(host, user, catalog, port, schema, password)
query = 'select * from my_table limit 1'
conn.run_query(query, auth=True)