Skip to content
This repository was archived by the owner on May 5, 2022. It is now read-only.

Commit 4e5cf93

Browse files
committed
chores: update README and setup.py
Signed-off-by: Đặng Minh Dũng <[email protected]>
1 parent e60901a commit 4e5cf93

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

README.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
1-
sqlalchemy_trino
1+
sqlalchemy-trino
22
================
3+
_[Trino](https://trino.io/) (f.k.a PrestoSQL) dialect for SQLAlchemy._
4+
5+
The primary purpose of this is provide a dialect for Trino that can be used with [Apache Superset](https://superset.apache.org/).
6+
But other use-cases should works as well.
7+
8+
## Installation
9+
The driver can either be installed through PyPi or from the source code.
10+
### Through Python Package Index
11+
```bash
12+
pip install sqlalchemy-trino
13+
```
14+
15+
### Latest from Source Code
16+
```bash
17+
pip install git+https://github.com/dungdm93/sqlalchemy-trino
18+
```
19+
20+
## Usage
21+
To connect from SQLAlchemy to Trino, use connection string (URL) following this pattern:
22+
```
23+
trino://<username>:<password>@<host>:<port>/catalog/[schema]
24+
```

setup.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import setuptools
2+
3+
with open("README.md", "r", encoding="utf-8") as fh:
4+
long_description = fh.read()
5+
6+
setuptools.setup(
7+
name="sqlalchemy-trino",
8+
version="0.1.0",
9+
author="Dũng Đặng Minh",
10+
author_email="[email protected]",
11+
description="Trino dialect for SQLAlchemy",
12+
long_description=long_description,
13+
long_description_content_type="text/markdown",
14+
url="https://github.com/dungdm93/sqlalchemy-trino",
15+
keywords=["sqlalchemy", "trino"],
16+
packages=["sqlalchemy_trino"],
17+
license="Apache 2.0",
18+
platforms=["any"],
19+
classifiers=[
20+
"Intended Audience :: Developers",
21+
"License :: OSI Approved :: Apache Software License",
22+
"Operating System :: OS Independent",
23+
"Programming Language :: Python",
24+
"Programming Language :: Python :: 3",
25+
"Programming Language :: Python :: 3.7",
26+
"Programming Language :: Python :: 3.8",
27+
"Programming Language :: Python :: 3.9",
28+
"Programming Language :: Python :: Implementation :: CPython",
29+
"Programming Language :: Python :: Implementation :: PyPy",
30+
"Topic :: Database",
31+
"Topic :: Database :: Front-Ends",
32+
],
33+
python_requires='>=3.7',
34+
install_requires=[
35+
"sqlalchemy~=1.3",
36+
"trino~=0.305",
37+
],
38+
entry_points={
39+
"sqlalchemy.dialects": [
40+
"trino = sqlalchemy_trino.dialect:TrinoDialect",
41+
]
42+
},
43+
)

0 commit comments

Comments
 (0)