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 py2

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page