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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: athenasql-0.1.0a9.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.0a9.tar.gz
Algorithm Hash digest
SHA256 d4a31937a1b65f2d97f475207736034888229724fb8a4cd1939a5c045282c16f
MD5 a1f068bdf22cc9d54b2d31f2f8adc0a5
BLAKE2b-256 cf59c21e3a4af40be0d9d81df9113af87d27b5e4b6455afa8e90b48004413be0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: athenasql-0.1.0a9-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.0a9-py3-none-any.whl
Algorithm Hash digest
SHA256 2880b438f8a97290b44f0aa718e3eda6d0b893398f00a8a3e6544c5a9478d75a
MD5 66c4e2f39c8f81630578c747d13ff91d
BLAKE2b-256 d0be26f385a727e70fe27511ad2f6e40623edba63439a6c109248e580453f0f3

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