presto-python-client:Presto 的 Python DB-API 客户端

时间:2021-05-30 05:42:54
【文件属性】:
文件名称:presto-python-client:Presto 的 Python DB-API 客户端
文件大小:40KB
文件格式:ZIP
更新时间:2021-05-30 05:42:54
Python 介绍 这个包提供了一个客户端接口来查询分布式 SQL 引擎。 它支持 Python 2.7、3.5、3.6、3.7 和 pypy。 安装 $ pip install presto-python-client 快速开始 使用DBAPI接口查询Presto: import prestodb conn = prestodb . dbapi . connect ( host = 'localhost' , port = 8080 , user = 'the-user' , catalog = 'the-catalog' , schema = 'the-schema' , ) cur = conn . cursor () cur . execute ( 'SELECT * FROM system.runtime.nodes' ) rows = cur .
【文件预览】:
presto-python-client-master
----setup.py(3KB)
----Dockerfile(1KB)
----integration_tests()
--------test_dbapi.py(6KB)
--------fixtures.py(7KB)
----tests_integration(39B)
----etc()
--------config.properties(150B)
--------jvm.config(104B)
--------node.properties(70B)
--------catalog()
----help(15B)
----.travis.yml(218B)
----run(51B)
----CONTRIBUTING.md(611B)
----CODE_OF_CONDUCT.md(241B)
----LICENSE(11KB)
----setup.cfg(22B)
----README.md(5KB)
----prestodb()
--------dbapi.py(10KB)
--------__init__.py(808B)
--------client.py(20KB)
--------constants.py(2KB)
--------transaction.py(3KB)
--------logging.py(874B)
--------redirect.py(2KB)
--------auth.py(4KB)
--------exceptions.py(5KB)
----tests()
--------test_http.py(1KB)
--------test_client.py(19KB)
--------test_exceptions.py(2KB)
----tests_unit(28B)
----tox.ini(131B)

网友评论