Skip to main content

Python wrapper for running queries on Presto server

Project description

# 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pypresto-1.0.4.tar.gz (4.4 kB view hashes)

Uploaded Source

Built Distribution

pypresto-1.0.4-py2-none-any.whl (3.8 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page