AWS Athena client
Project description
Pallas makes querying AWS Athena easy.
It is especially valuable for analyses in Jupyter Notebook, but it is designed to be generic and usable in any application.
Main features:
Friendly interface to AWS Athena.
Performance – Large results are downloaded directly from S3, which is much faster than using Athena API.
Pandas integration - Results can be converted to Pandas DataFrame with correct data types mapped automatically.
Local caching – Query results can be cached locally, so no data have to be downloaded when a Jupyter notebook is restarted.
Remote caching – Query IDs can be cached in S3, so team mates can reproduce results without incurring additional costs.
Fixes malformed results returned by Athena to DCL (for example DESCRIBE) queries.
Optional white space normalization for better caching.
Kills queries on KeyboardInterrupt.
import pallas
athena = pallas.environ_setup()
df = athena.execute("SELECT 'Hello world!").to_df()
Pallas is hosted at GitHub and it can be installed from PyPI.
Documentation
Documentation in the docs/ directory can be read online at Read the Docs.
License
Copyright 2020 Akamai Technologies, Inc Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Contributing
By submitting a contribution (the “Contribution”) to this project, and for good and valuable consideration, the receipt and sufficiency of which are hereby acknowledged, you (the “Assignor”) irrevocably convey, transfer, and assign the Contribution to the owner of the repository (the “Assignee”), and the Assignee hereby accepts, all of your right, title, and interest in and to the Contribution along with all associated copyrights, copyright registrations, and/or applications for registration and all issuances, extensions and renewals thereof (collectively, the “Assigned Copyrights”). You also assign all of your rights of any kind whatsoever accruing under the Assigned Copyrights provided by applicable law of any jurisdiction, by international treaties and conventions and otherwise throughout the world.
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
Built Distribution
File details
Details for the file pallas-0.5.tar.gz
.
File metadata
- Download URL: pallas-0.5.tar.gz
- Upload date:
- Size: 39.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cea2c850c530d1beb308bba007a32a58bc8c63400aa2d8488e78a28eeaed820f |
|
MD5 | 52a5c3876fcd26c410cc08045ba465a9 |
|
BLAKE2b-256 | c2f65a3652c7c6a3bce91c4136fc2d4eba0d4e96b8d3bbc3ade26da86964585a |
File details
Details for the file pallas-0.5-py3-none-any.whl
.
File metadata
- Download URL: pallas-0.5-py3-none-any.whl
- Upload date:
- Size: 38.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b28b5d51693df0c8afe117920d545f5ba8584abec547b7f209e9e79bba563ac |
|
MD5 | 086c48696a55414e3c4cbb8f41b7192f |
|
BLAKE2b-256 | ed673c2054ad2114f1863e59a31b4c983e6532eaa4af5cb64432d344c7e56051 |