You are here: Home / LBN / Up2date / Core Linux / BastionLinux 36 / python3-pinotdb-5.1.0-1.lbn36.noarch

python3-pinotdb-5.1.0-1.lbn36.noarch

Package Attributes
RPM  python3-pinotdb-5.1.0-1.lbn36.noarch.rpm Architecture  noarch Size  115542 Created  2024/07/11 00:13:09 UTC
Package Specification
Summary Python DB-API and SQLAlchemy dialect for Pinot.
Group Unspecified
License ZPL
Home Page https://pypi.org/project/pinotdb
Description

Python DB-API and SQLAlchemy dialect for Pinot This module allows accessing Pinot via its SQL API. Current supported Pinot version: 1.1.0. Usage Using the DB API to query Pinot Broker directly: from pinotdb import connect

conn = connect(host=localhost, port=8000, path=/query/sql, scheme=http) curs = conn.cursor() curs.execute(""" SELECT place, CAST(REGEXP_EXTRACT(place, '(.*),, 1) AS FLOAT) AS lat,       CAST(REGEXP_EXTRACT(place, ,(.*)', 1) AS FLOAT) AS lon FROM places LIMIT 10 """) for row in curs: print(row)

For HTTPS: from pinotdb import connect

conn = connect(host=localhost, port=443, path=/query/sql, scheme=https) curs = conn.cursor() curs.execute(""" SELECT place, CAST(REGEXP_EXTRACT(place, '(.*),, 1) AS FLOAT) AS lat,       CAST(REGEXP_EXTRACT(place, ,(.*)', 1) AS FLOAT) AS lon FROM places LIMIT 10 ""

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
rpmlib(FileDigests)  
Provides
python-pinotdb
python3-pinotdb
python3.10-pinotdb
python3.10dist(pinotdb)
python3dist(pinotdb)
Obsoletes
python-pinotdb

Document Actions