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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: athenasql-0.1.0a10.tar.gz
  • Upload date:
  • Size: 20.4 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.0a10.tar.gz
Algorithm Hash digest
SHA256 3be20f404e2e41432dd5ea3231d7123b6b29ed6af992a0ddfd870fd1743206d1
MD5 01fb00d3252dc47d67a5d13ef1199d4c
BLAKE2b-256 e11994cb8690a3219634823e2a826d0131e15fb1f2c475cf19f84f9272483026

See more details on using hashes here.

File details

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

File metadata

  • Download URL: athenasql-0.1.0a10-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.0a10-py3-none-any.whl
Algorithm Hash digest
SHA256 58211b93e4d75d8487969ee8c2c850bd7b396b3c01a4752c109821aa47eaa2b2
MD5 57fe7e1a45240ac6dadb480cde9c318b
BLAKE2b-256 19078174df9270ded64122dab2c062ab5dd4cbb3a317a2590d55968d540af884

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