gsheets-db-api:Google Spreasheets的Python DB-API和SQLAlchemy方言

时间:2021-01-30 22:08:01
【文件属性】:
文件名称:gsheets-db-api:Google Spreasheets的Python DB-API和SQLAlchemy方言
文件大小:38KB
文件格式:ZIP
更新时间:2021-01-30 22:08:01
python api google sql spreadsheet 适用于Google Spreadsheets的Python DB API 2.0 该模块允许您使用SQL查询Google Spreadsheets。 以为例: 一个 乙 1个 国家 碳纳米管 2 BR 1个 3 BR 3 4 在 5 这是使用Python API的简单查询: from gsheetsdb import connect conn = connect () result = conn . execute ( """ SELECT country , SUM(cnt) FROM "https://docs.google.com/spreadsheets/d/1_rN3lm0R_bU3NemO0s9pbFkY5LQPcuy1pscv8ZXPtg8/" GROUP BY country """ , headers = 1 ) for row in result : print ( row ) 这将打印: Row(country='BR', sum_cnt=4.0)
【文件预览】:
gsheets-db-api-master
----setup.py(4KB)
----.gitignore(1KB)
----requirements.txt(806B)
----Makefile(176B)
----.travis.yml(289B)
----MANIFEST.in(34B)
----LICENSE(1KB)
----CHANGELOG.md(1KB)
----setup.cfg(90B)
----README.md(5KB)
----tests()
--------test_query.py(11KB)
--------test_convert.py(3KB)
--------__init__.py(0B)
--------test_dialect.py(10KB)
--------context.py(887B)
--------test_processing.py(8KB)
--------test_translation.py(5KB)
--------test_db.py(9KB)
--------test_utils.py(4KB)
--------test_console.py(4KB)
--------test_url.py(2KB)
----.coveragerc(187B)
----gsheetsdb()
--------convert.py(1KB)
--------console.py(3KB)
--------__init__.py(650B)
--------__version__.py(23B)
--------types.py(332B)
--------db.py(6KB)
--------processors.py(10KB)
--------url.py(2KB)
--------formatting.py(7KB)
--------utils.py(2KB)
--------dialect.py(6KB)
--------translator.py(3KB)
--------sqlite.py(2KB)
--------auth.py(820B)
--------query.py(5KB)
--------exceptions.py(589B)

网友评论