Skip to main content

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数据

Metadata

Release files for tga-safe-oper-bsd 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for tga-safe-oper-bsd 0.1.6
File Interpreter ABI Platform Actions
tga_safe_oper_bsd-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.15+ x86-64 Details for tga_safe_oper_bsd-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl
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 CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.5+ x86-64, Linux glibc 2.17+ x86-64 Details 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

Total release size: 182.6 kB

Release files / tga_safe_oper_bsd-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl

Download URL tga_safe_oper_bsd-0.1.6-cp38-cp38-macosx_10_15_x86_64.whl
Size 32.7 kB
Tags CPython 3.8 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
e60cda86ab2ceff3e63072783853d0549adbe4a96f59328ae4a00003d08c1710
BLAKE2b-256 checksum
How to use checksums
cb6063a9def1205fbeedd6c0f4aa3185d97623d0ef969df461224c0cb9223655
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.6

Release files / 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

Download URL 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
Size 149.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Linux glibc 2.5+ x86-64
SHA-256 checksum
How to use checksums
6944b366261f644a6ad9074d7901c16cce004ea233203986425412f3aa08352d
BLAKE2b-256 checksum
How to use checksums
3c65ae3e2322d929d7f6ea3e93a81575c9139e0f846e41ebefbc98f5883efc01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17

Security for tga-safe-oper-bsd 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page