athenaSql


NameathenaSql JSON
Version 0.1.0a13 PyPI version JSON
download
home_pagehttps://github.com/nabilseid/athenaSQL
SummarySQL builder for AWS Athena, inspired by sparkSQL
upload_time2024-02-27 18:38:21
maintainer
docs_urlNone
authorNabil Seid
requires_python>=3.7,<4.0
licenseMIT
keywords packaging athena sql athenasql
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # athenaSQL

<!-- start intro -->

athenaSQL is Athena SQL query builder, inspired by sparkSQL. It borrow some sparkSQL's concept [sparkSQL](https://spark.apache.org/docs/preview/api/python/_modules/index.html).

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.

<!-- end intro -->

## Quickstart

<!-- start quickstart -->

### Installing athenaSQL

```bash
$ pip install athenaSQL
```

### Usage

<!-- start 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.

```python
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"
```

<!-- end usage -->

<!-- end quickstart -->

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nabilseid/athenaSQL",
    "name": "athenaSql",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "packaging,athena,sql,athenaSQL",
    "author": "Nabil Seid",
    "author_email": "nabeelseid@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9b/0d/037ee86de66e613162183b0fcc25c78b0b7fda5d941490b311b6977a3dd4/athenasql-0.1.0a13.tar.gz",
    "platform": null,
    "description": "# athenaSQL\n\n<!-- start intro -->\n\nathenaSQL is Athena SQL query builder, inspired by sparkSQL. It borrow some sparkSQL's concept [sparkSQL](https://spark.apache.org/docs/preview/api/python/_modules/index.html).\n\nIt 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.\n\n<!-- end intro -->\n\n## Quickstart\n\n<!-- start quickstart -->\n\n### Installing athenaSQL\n\n```bash\n$ pip install athenaSQL\n```\n\n### Usage\n\n<!-- start usage -->\n\nUsing athenaSQL is stright forward. First we create a table abstraction class then building a query is just calling chain methods on top of it.\n\n```python\nfrom athenaSQL import Athena\n\n# creating athena table instance from database\ntable = Athena('database_name').table('table_name')\n\n# creating athena table instance from database\nquery = table.select()\n\nquery.show_query()\n```\n\n```\nSELECT\n    *\nFROM \"database_name\".\"table_name\"\n```\n\n<!-- end usage -->\n\n<!-- end quickstart -->\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "SQL builder for AWS Athena, inspired by sparkSQL",
    "version": "0.1.0a13",
    "project_urls": {
        "Documentation": "https://github.com/nabilseid/athenaSQL/docs",
        "Homepage": "https://github.com/nabilseid/athenaSQL",
        "Repository": "https://github.com/nabilseid/athenaSQL"
    },
    "split_keywords": [
        "packaging",
        "athena",
        "sql",
        "athenasql"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1a80fa0cd4e71ecccefeea0b26cb33ce3e5b68f7726ee9513c2fcf96ce2a21d",
                "md5": "0f92f143015beecddd762e1a25d61602",
                "sha256": "e2a1bc8d091adea8bdddbc6a82ddf4326c61ecfd7cf8c8a2d39ee7562f5c9033"
            },
            "downloads": -1,
            "filename": "athenasql-0.1.0a13-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0f92f143015beecddd762e1a25d61602",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 30356,
            "upload_time": "2024-02-27T18:38:19",
            "upload_time_iso_8601": "2024-02-27T18:38:19.825613Z",
            "url": "https://files.pythonhosted.org/packages/a1/a8/0fa0cd4e71ecccefeea0b26cb33ce3e5b68f7726ee9513c2fcf96ce2a21d/athenasql-0.1.0a13-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9b0d037ee86de66e613162183b0fcc25c78b0b7fda5d941490b311b6977a3dd4",
                "md5": "d8c9976e025430be248dc917f8beac75",
                "sha256": "64b152b1b0ee8ee19ff8a8566d71109d5cf6b9d015a26cece751b03ff876c782"
            },
            "downloads": -1,
            "filename": "athenasql-0.1.0a13.tar.gz",
            "has_sig": false,
            "md5_digest": "d8c9976e025430be248dc917f8beac75",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 20322,
            "upload_time": "2024-02-27T18:38:21",
            "upload_time_iso_8601": "2024-02-27T18:38:21.832160Z",
            "url": "https://files.pythonhosted.org/packages/9b/0d/037ee86de66e613162183b0fcc25c78b0b7fda5d941490b311b6977a3dd4/athenasql-0.1.0a13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-27 18:38:21",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "nabilseid",
    "github_project": "athenaSQL",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "athenasql"
}
        
Elapsed time: 0.20169s