SQL builder for AWS Athena, inspired by sparkSQL
Project description
athenaSQL
athenaSQL is Athena SQL query builder, inspired by sparkSQL. It borrow some sparkSQL's concept sparkSQL.
It was initially designed to eliminate the need for hard-coding SQL queries as strings within Python scripts and as an alternative to any bespoke SQL query templating. However, it offers the flexibility to be used in various ways as needed.
Quickstart
Installing athenaSQL
$ pip install athenaSQL
Usage
Using athenaSQL is stright forward. First we create a table abstraction class then building a query is just calling chain methods on top of it.
from athenaSQL import Athena
# creating athena table instance from database
table = Athena('database_name').table('table_name')
# creating athena table instance from database
query = table.select()
query.show_query()
SELECT
*
FROM "database_name"."table_name"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
athenasql-0.1.0a3.tar.gz
(20.4 kB
view hashes)
Built Distribution
Close
Hashes for athenasql-0.1.0a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 608f9594652425311eec885363957a85769c720ce12676491416b2df3e217f20 |
|
MD5 | 287bbc2488e8069555c3666393612470 |
|
BLAKE2b-256 | 7b5cb7e93ff1a922cd74f6a9114c3b04035ee42b24e9605f5cda214329d6031e |