yantu


Nameyantu JSON
Version 1.2 PyPI version JSON
download
home_pagehttps://gitee.com/Sea-Depth/yantu-tools-test
SummaryYantu tools for python
upload_time2023-09-12 12:31:14
maintainer
docs_urlNone
authoryantu-tech
requires_python>=3.8
licenseMIT License
keywords python yantu 中文 人工智能
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Yantu-Tools For Python
Yantu-Tools-Python是言图科技提供的以Python语言编写的应用程序库,以实现对Yantu API便捷访问。它包括一个用于初始化的API资源的预定义类集,可以方便地访问Yantu API,以高效地使用言图私域知识库、言图文档问答等功能。

## 安装
pip安装
```
pip install --upgrade yantu-tools-python
```
或使用以下命令从源代码安装:
```
python setup.py install
```
## 主要功能
* 简单高效,用户只需配置专属密钥即可使用yantu API
* 高度定制化和数据安全的私域知识库
* 言图智能业务机器人
* 基于私域知识库的文档问答

## 用法
该库需要使用您帐户的密钥进行配置,该密钥可在[言图科技官方网站](http://www.yantu-tech.com/)上找到。  
### 资源初始化
```python
import yantu

yt_object = yantu.YantuObject("您的密钥")
```
### 私域知识库
```python
# 获取私域知识库中的文档列表
yt_object.get_doc_list()

# 上传文档到私域知识库
yt_object.upload_doc("您的文档路径")

# 删除私域知识库中文档
yt_object.delete_doc("您的文档名称")
```

### 

            

Raw data

            {
    "_id": null,
    "home_page": "https://gitee.com/Sea-Depth/yantu-tools-test",
    "name": "yantu",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "python,yantu,\u4e2d\u6587,\u4eba\u5de5\u667a\u80fd",
    "author": "yantu-tech",
    "author_email": "GuoHuai Wu <wu466687121@qq.com>",
    "download_url": "https://files.pythonhosted.org/packages/7b/98/f0a661bce361da9bf279fb29e0893dec13a30dd0c15ed8a75b50a52ba975/yantu-1.2.tar.gz",
    "platform": null,
    "description": "# Yantu-Tools For Python\r\nYantu-Tools-Python\u662f\u8a00\u56fe\u79d1\u6280\u63d0\u4f9b\u7684\u4ee5Python\u8bed\u8a00\u7f16\u5199\u7684\u5e94\u7528\u7a0b\u5e8f\u5e93\uff0c\u4ee5\u5b9e\u73b0\u5bf9Yantu API\u4fbf\u6377\u8bbf\u95ee\u3002\u5b83\u5305\u62ec\u4e00\u4e2a\u7528\u4e8e\u521d\u59cb\u5316\u7684API\u8d44\u6e90\u7684\u9884\u5b9a\u4e49\u7c7b\u96c6\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbf\u95eeYantu API\uff0c\u4ee5\u9ad8\u6548\u5730\u4f7f\u7528\u8a00\u56fe\u79c1\u57df\u77e5\u8bc6\u5e93\u3001\u8a00\u56fe\u6587\u6863\u95ee\u7b54\u7b49\u529f\u80fd\u3002\r\n\r\n## \u5b89\u88c5\r\npip\u5b89\u88c5\r\n```\r\npip install --upgrade yantu-tools-python\r\n```\r\n\u6216\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4ece\u6e90\u4ee3\u7801\u5b89\u88c5\uff1a\r\n```\r\npython setup.py install\r\n```\r\n## \u4e3b\u8981\u529f\u80fd\r\n* \u7b80\u5355\u9ad8\u6548\uff0c\u7528\u6237\u53ea\u9700\u914d\u7f6e\u4e13\u5c5e\u5bc6\u94a5\u5373\u53ef\u4f7f\u7528yantu API\r\n* \u9ad8\u5ea6\u5b9a\u5236\u5316\u548c\u6570\u636e\u5b89\u5168\u7684\u79c1\u57df\u77e5\u8bc6\u5e93\r\n* \u8a00\u56fe\u667a\u80fd\u4e1a\u52a1\u673a\u5668\u4eba\r\n* \u57fa\u4e8e\u79c1\u57df\u77e5\u8bc6\u5e93\u7684\u6587\u6863\u95ee\u7b54\r\n\r\n## \u7528\u6cd5\r\n\u8be5\u5e93\u9700\u8981\u4f7f\u7528\u60a8\u5e10\u6237\u7684\u5bc6\u94a5\u8fdb\u884c\u914d\u7f6e\uff0c\u8be5\u5bc6\u94a5\u53ef\u5728[\u8a00\u56fe\u79d1\u6280\u5b98\u65b9\u7f51\u7ad9](http://www.yantu-tech.com/)\u4e0a\u627e\u5230\u3002  \r\n### \u8d44\u6e90\u521d\u59cb\u5316\r\n```python\r\nimport yantu\r\n\r\nyt_object = yantu.YantuObject(\"\u60a8\u7684\u5bc6\u94a5\")\r\n```\r\n### \u79c1\u57df\u77e5\u8bc6\u5e93\r\n```python\r\n# \u83b7\u53d6\u79c1\u57df\u77e5\u8bc6\u5e93\u4e2d\u7684\u6587\u6863\u5217\u8868\r\nyt_object.get_doc_list()\r\n\r\n# \u4e0a\u4f20\u6587\u6863\u5230\u79c1\u57df\u77e5\u8bc6\u5e93\r\nyt_object.upload_doc(\"\u60a8\u7684\u6587\u6863\u8def\u5f84\")\r\n\r\n# \u5220\u9664\u79c1\u57df\u77e5\u8bc6\u5e93\u4e2d\u6587\u6863\r\nyt_object.delete_doc(\"\u60a8\u7684\u6587\u6863\u540d\u79f0\")\r\n```\r\n\r\n### \r\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Yantu tools for python",
    "version": "1.2",
    "project_urls": {
        "Homepage": "https://gitee.com/Sea-Depth/yantu-tools-test"
    },
    "split_keywords": [
        "python",
        "yantu",
        "\u4e2d\u6587",
        "\u4eba\u5de5\u667a\u80fd"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b859b34ac8e2938981af5c30aa871583ccb67233158f173f79967534073fe5b1",
                "md5": "8c4adb2198b4d2df64c4f18ce7a451d1",
                "sha256": "5552799e4b0c9b835ab624a87d14dfff3f4afb6fb20cba980a20aa2d603b6a68"
            },
            "downloads": -1,
            "filename": "yantu-1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8c4adb2198b4d2df64c4f18ce7a451d1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3358,
            "upload_time": "2023-09-12T12:31:13",
            "upload_time_iso_8601": "2023-09-12T12:31:13.398728Z",
            "url": "https://files.pythonhosted.org/packages/b8/59/b34ac8e2938981af5c30aa871583ccb67233158f173f79967534073fe5b1/yantu-1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7b98f0a661bce361da9bf279fb29e0893dec13a30dd0c15ed8a75b50a52ba975",
                "md5": "412000b1b163591ad8aff3eed51a3e17",
                "sha256": "af3b1b4fe34e6451393f123f13bb4f137150084a2161aeb798aaf07195cc9265"
            },
            "downloads": -1,
            "filename": "yantu-1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "412000b1b163591ad8aff3eed51a3e17",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 9798,
            "upload_time": "2023-09-12T12:31:14",
            "upload_time_iso_8601": "2023-09-12T12:31:14.996334Z",
            "url": "https://files.pythonhosted.org/packages/7b/98/f0a661bce361da9bf279fb29e0893dec13a30dd0c15ed8a75b50a52ba975/yantu-1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-12 12:31:14",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "yantu"
}
        
Elapsed time: 0.29669s