pystarburst-0.9.0


توضیحات

PyStarburst DataFrame API allows you to query and transform data in Starburst products in a data pipeline without having to download the data locally.
ویژگی مقدار
سیستم عامل -
نام فایل pystarburst-0.9.0
نام pystarburst
نسخه کتابخانه 0.9.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Starburst Data
ایمیل نویسنده info@starburstdata.com
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/pystarburst/
مجوز Apache-2.0
# PyStarburst DataFrame API PyStarburst DataFrame API allows you to query and transform data in Starburst products in a data pipeline without having to download the data locally. ## Documentation See the PyStarburst API [documentation](https://pystarburst.eng.starburstdata.net/) and the examples [repository](https://github.com/starburstdata/pystarburst-examples). ## Getting started Install pystarburst ```bash pip install pystarburst ``` ### Connect to a Starburst server The parameters are the same connect parameters as in Trino Python Client. ```python from pystarburst import Session connection_parameters = { "host": "localhost", "port": 8080, "user": "admin", "catalog": "tpch", "schema": "tiny" } session = Session.builder.configs(connection_parameters).create() ``` ### Using SQL ```python from pystarburst import Session session = Session.builder.configs({ ... }).create() session.sql("SELECT 1 as a").show() ``` ### Querying a table ```python from pystarburst import Session session = Session.builder.configs({ ... }).create() df = session.table("nation") print(df.schema) df.show() ``` ### Filtering a data frame ```python from pystarburst import Session session = Session.builder.configs({ ... }).create() df = session.table("nation") df.filter(df.col("regionkey") == 0).show() ``` ### Joining data frames ```python from pystarburst import Session session = Session.builder.configs({ ... }).create() df = session.table("nation") df.filter(df.col("regionkey") == 0).show() ``` ### Aggregation ```python from pystarburst import Session from pystarburst.functions import col session = Session.builder.configs({ ... }).create() df = session.table("nation") df.agg((col("regionkey"), "max"), (col("regionkey"), "avg")).show() ```


نیازمندی

مقدار نام
xtr pandas<3.0,>=2.2;
- pydantic<3.0.0,>=2.7.4
- python-dateutil<3.0.0,>=2.8.2
- trino<0.337.0,>=0.336.0
- urllib3<3.0.0,>=2.6.3
- zstandard<0.24.0,>=0.23.0


زبان مورد نیاز

مقدار نام
<3.14,>=3.10 Python


نحوه نصب


نصب پکیج whl pystarburst-0.9.0:

    pip install pystarburst-0.9.0.whl


نصب پکیج tar.gz pystarburst-0.9.0:

    pip install pystarburst-0.9.0.tar.gz