semvec/pypi-packages huggingface dataset:
datavita-open-python-sdk 0.0.3
DataVita Open Python SDK

# 华创证券VitaX Python 工具套件


欢迎使用华创证券开发者工具套件（SDK）。

## 环境准备

要使用VitaX Python SDK ，您需要联系华创证券金融科技部工作人员申请获取 `Access Key ID`和`Access Key Secret`。 

## SDK 获取和安装

### 使用 pip 安装(推荐)

```bash
pip install datavita-open-python-sdk # 安装华创DataVita开放Python SDK

```

## 开始调用

以下这个代码示例向您展示了调用阿里云 Python SDK 的3个主要步骤：

1. 创建 Client 实例
2. 获取所需数据
3. 发起请求并处理异常


```python
# -*- coding: utf8 -*-
from datavita.andes.andes_data import AndesData
from datavita.core.auth import Auth

# 创建 AcsClient 实例
access_key_id = "1"
access_secret = "1"
auth = Auth(access_key_id, access_secret)
ad = AndesData(auth=auth, timeout=1, max_retries=1)
df = ad.ind_data_list(ind_code='xxxx')
print(df)
```

在创建 Auth 实例时，您需要填写 2 个参数：Access Key ID 和 Access Secret。Access Key ID 和 Access Secret 申请获取；
data2tree 1.0.2
Python Generate the data tree recursively

# Tree Builder

> Input

``` python
 lst = [
     {"id": 1, "pid": 0, "name": "Tree - 1"},
     {"id": 2, "pid": 1, "name": "Tree - 1 - 1"},
     {"id": 3, "pid": 1, "name": "Tree - 1 - 2"},
     {"id": 4, "pid": 2, "name": "Tree - 1 - 1- 1"},
     {"id": 5, "pid": 0, "name": "Tree - 2"}
 ]
```

> Usage

```bash
pip install data2tree -i  https://pypi.org/simple/
```

``` python
from TreeBuilder.builder import BuildTree
tree = BuildTree(record_key="id", parent_record_key="pid").build_tree(lst)
print(tree)
```

> Notes

| Parameter         | Type   | required | Description      |
| ----------------- | ------ | -------- | ---------------- |
| record_key        | String | True     | record id        |
| parent_record_key | String | True     | parent_record id |

> Output
>

```python
[
    {
        "id": 1,
        "pid": 0,
        "name": "Tree - 1",
        "child": [
            {
                "id": 2,
                "pid": 1,
                "name": "Tree - 1 - 1",
                "child": [
                    {
                        "id": 4,
                        "pid": 2,
                        "name": "Tree - 1 - 1- 1"
                    }]
            },
            {
                "id": 3,
                "pid": 1,
                "name": "Tree - 1 - 2"
            }
        ]
    },
    {
        "id": 5,
        "pid": 0,
        "name": "Tree - 2"
    }
]
```
pylangtools 0.0.2
繁体简体转换

繁体简体字转换python包
======================

1. 功能
-------

（1）繁体转换成简体

（2）简体转换成繁体

2. 快速开始
-----------

（1）繁体转简体

::

    from pylangtools.langconv import Converter

    if __name__=="__main__":
        traditional_sentence = '陳奕迅'
        simplified_sentence = Converter('zh-hans').convert(traditional_sentence)
        print(simplified_sentence)#陈奕迅

（2）简体转繁体

::


    from pylangtools.langconv import Converter

    if __name__=="__main__":
        simplified_sentence = '陈奕迅'
        traditional_sentence = Converter('zh-hant').convert(simplified_sentence)
        print(traditional_sentence)#陳奕迅
PyTreeBuilder 0.0.1
Python Generate the data tree recursively

# Tree Builder

> Input

``` python
 lst = [
     {"id": 1, "pid": 0, "name": "Tree - 1"},
     {"id": 2, "pid": 1, "name": "Tree - 1 - 1"},
     {"id": 3, "pid": 1, "name": "Tree - 1 - 2"},
     {"id": 4, "pid": 2, "name": "Tree - 1 - 1- 1"},
     {"id": 5, "pid": 0, "name": "Tree - 2"}
 ]
```

> Usage

``` python
tree = BuildTree(record_key="id", parent_record_key="pid").build_tree(lst)
print(tree)
```

> Notes

| Parameter         | Type   | required | Description      |
| ----------------- | ------ | -------- | ---------------- |
| record_key        | String | True     | record id        |
| parent_record_key | String | True     | parent_record id |

> Output
>

```python
[
    {
        "id": 1,
        "pid": 0,
        "name": "Tree - 1",
        "child": [
            {
                "id": 2,
                "pid": 1,
                "name": "Tree - 1 - 1",
                "child": [
                    {
                        "id": 4,
                        "pid": 2,
                        "name": "Tree - 1 - 1- 1"
                    }]
            },
            {
                "id": 3,
                "pid": 1,
                "name": "Tree - 1 - 2"
            }
        ]
    },
    {
        "id": 5,
        "pid": 0,
        "name": "Tree - 2"
    }
]
```