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.0a12.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

athenasql-0.1.0a12-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file athenasql-0.1.0a12.tar.gz.

File metadata

  • Download URL: athenasql-0.1.0a12.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.7 Darwin/21.6.0

File hashes

Hashes for athenasql-0.1.0a12.tar.gz
Algorithm Hash digest
SHA256 e68905597d77463c4f078dccf79c4c89bab95daec4e64007592a03c1c93f6479
MD5 787c7270e81802e9b1a1c8ccdd62efbf
BLAKE2b-256 b43a596eeb9ef6406c01723f14dde0845032c4db0e1e06a6c0e0ba8690a4d478

See more details on using hashes here.

File details

Details for the file athenasql-0.1.0a12-py3-none-any.whl.

File metadata

  • Download URL: athenasql-0.1.0a12-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.7 Darwin/21.6.0

File hashes

Hashes for athenasql-0.1.0a12-py3-none-any.whl
Algorithm Hash digest
SHA256 7703d6741cf4ec4812850174fb580e11a5b6ab2d43b4b1d19ff4b9fb23a137fb
MD5 853dcbfa5c48074f5f9990c9234708cb
BLAKE2b-256 79b95a1ceaa90f089d74967041af299100dc185689011126a460849397b7040e

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