PyAirpal
Python Client/SDK for Airpal
Synopsis
PyAirPal: Python Client/SDK to allow headless queries and response retrieval for Airpal.
Code Example
View the included example.py
Motivation
Airpal (http://airbnb.io/airpal/) is a great WebUI/Front end for PrestoDB (https://prestodb.io/)
One really nice thing Airpal does is create a method of User Access Control/logging/etc to the PrestoDB interface.
Native PrestoDB clients will likely be more efficient, but this stack allows organizations to provide batch/scripting access to the PrestoDB Via Airpal, while maintaining the nice UAC/etc that Airpal provides.
Requirements
- Working Airpal server
- Python modules:
- Requests - http://docs.python-requests.org/en/master/
- SSEClient - https://pypi.python.org/pypi/sseclient
- Pandas (for example script only) - http://pandas.pydata.org/
License
MIT
Version
| Version | Changes |
|---|---|
| 1.1.3 | Update yield_csv() to allow for raw requests response. |
| 1.1.2 | Fix issue #1, update logging to best practice, Handling exception while loading next_event() to json #4 |
| 1.1.1 | Python3 support, Remove PANDAS dependency, fix issue #1 |
| 1.0.2 | Fix for missing requirements in PIP support |
| 1.0.1 | PIP support |
| 1.0.0 | Initial Release |
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyairpal-1.1.3.tar.gz
(5.8 kB
view details)
File details
Details for the file pyairpal-1.1.3.tar.gz.
File metadata
- Download URL: pyairpal-1.1.3.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
caa4d8c08af2f37003317b9849c7ea2d84243623675cab5c874ee9c9c63fd63f
|
|
| MD5 |
d19e2d6f633fbf0e6dbba82133066033
|
|
| BLAKE2b-256 |
ba82fc5956ed2d35280061ff49e697917a332150c572680c013d250dfeb27b19
|