Metadata-Version: 2.1
Name: tga-safe-oper-bsd
Version: 0.1.6
Summary: A small example package
Home-page: UNKNOWN
Author: yuanxiao
Author-email: yuan6785@163.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.0
Description-Content-Type: text/markdown
Requires-Dist: ezconfig-client==0.7

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

## 使用方法

```text
pip install tga-safe-oper-bsd
```

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

```python
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)
```



环境依赖：

```text
ezconfig-client==0.7
```

**测试参考代码**

python test.py

## 版本说明

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



