Skip to main content

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


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.1.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

athenasql-0.1.1-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file athenasql-0.1.1.tar.gz.

File metadata

  • Download URL: athenasql-0.1.1.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.9.20 Linux/6.5.0-1025-azure

File hashes

Hashes for athenasql-0.1.1.tar.gz
Algorithm Hash digest
SHA256 72df75f4fd83211339fdb04c7e2b2bf2920c841cd3798259340921a7066c6cc1
MD5 988b178c9c13f68ae9e59de491dcbc1b
BLAKE2b-256 3cb07641cc3536437aee6570ff5a938ee33b14ef90b3b04541e1408e589fdad7

See more details on using hashes here.

File details

Details for the file athenasql-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: athenasql-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.9.20 Linux/6.5.0-1025-azure

File hashes

Hashes for athenasql-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6e158f0001c3563c1047547714a48718c351f1d84a45e60aa8c1604ad28bf57a
MD5 04033cd013947f259e447d026254f3a0
BLAKE2b-256 7a7f0e6936d2166faf8add9aa76fe204bcefb549b8ea23996afa3fa1b90c83b4

See more details on using hashes here.

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