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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: athenasql-0.1.1a1.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.1a1.tar.gz
Algorithm Hash digest
SHA256 7a488ab5bd5a9b3452bdab3b287d8f865da1eae86f8b72a9e3b8a615dec4ff89
MD5 4812eff911c11d4b083bce44c4a784a3
BLAKE2b-256 2112f41f39c75526407fb41ed75c274c832e6109c070473c342c7f70bbd28b0c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: athenasql-0.1.1a1-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.1a1-py3-none-any.whl
Algorithm Hash digest
SHA256 8f80abc0375b29180b875b51b7c1d160bbea8d01596d7d0a8374a5d3cb6fa4c7
MD5 c579afb5135f24c231bbf49efa16743b
BLAKE2b-256 bfdca5c93f033f662ca06bd0a0ce8eb1bf7beba654b39b417f9ea549ce3fd195

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