Skip to main content

A small example package

Project description

tga安全用ezconfig去查询tga的程序

使用方法

pip install tga-safe-oper-bsd

传入自定义参数,获取数据

from tga_safe.query import Query
import pandas as pd
from io import StringIO
q = Query(env="xx", app_id="xxxx", secret="xxxx", url="xxxxxxx")
res = q.fetch_data(sql="""select field1, field2  from xxx limit 10""")
column_names = ['field1', 'field2']
data_io = StringIO(res)
df = pd.read_csv(data_io, encoding='utf-8', header=None, names=column_names)
print(df)

环境依赖:

ezconfig-client==0.7

测试参考代码

python test.py

版本说明

版本 变更
0.1.5 从tga拉取sql数据

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tga_safe_oper_bsd-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl (32.7 kB view details)

Uploaded CPython 3.8macOS 10.15+ x86-64

tga_safe_oper_bsd-0.1.6-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (149.9 kB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

File details

Details for the file tga_safe_oper_bsd-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for tga_safe_oper_bsd-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 e60cda86ab2ceff3e63072783853d0549adbe4a96f59328ae4a00003d08c1710
MD5 380d31cc8c9867fc76b70591573fe692
BLAKE2b-256 cb6063a9def1205fbeedd6c0f4aa3185d97623d0ef969df461224c0cb9223655

See more details on using hashes here.

File details

Details for the file tga_safe_oper_bsd-0.1.6-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for tga_safe_oper_bsd-0.1.6-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6944b366261f644a6ad9074d7901c16cce004ea233203986425412f3aa08352d
MD5 01e5f54984e3ca0d57741602c2fbb596
BLAKE2b-256 3c65ae3e2322d929d7f6ea3e93a81575c9139e0f846e41ebefbc98f5883efc01

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page