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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: athenasql-0.1.0a11.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.0a11.tar.gz
Algorithm Hash digest
SHA256 e36293dc0032e1624f78d3f98272c4425d7ec94029eb037c03580e2709abe652
MD5 55076f80ab6ee707f49933aaf712eab3
BLAKE2b-256 b3b787637da59f5727ad7dea77ec1b93a7d2eb4302bc814bc11b15f934a126ea

See more details on using hashes here.

File details

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

File metadata

  • Download URL: athenasql-0.1.0a11-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.0a11-py3-none-any.whl
Algorithm Hash digest
SHA256 7e40cb504618065b782260c0bbef08070e119a7b412ff86fb681734bb39c6616
MD5 0e758ec38a9dfd9bb49b815d69df20a5
BLAKE2b-256 cfe412ac86dfdda4279ded97a9e8273ed354ddd709e3d87ff3554f5503ac063d

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