# 主页

{% hint style="danger" %}
此文档已被废弃

[前往新的](https://xbzstudio.github.io/icodeapi/docs)
{% endhint %}

icodeapi是一个强大的、快速的、支持同步和异步的有道小图灵社区API框架。它运行在Python当中。由[xbzstudio](https://xbzstudio.github.io/)开发。

<figure><img src="/files/UiiN1tI40q6Xd2k9qOos" alt=""><figcaption><p>图标</p></figcaption></figure>

### 安装

可以使用pip安装icodeapi。

```PowerShell
pip install icodeapi
```

### 环境要求

Python版本：≥3.10\
依赖项：httpx, urllib3, aiofiles

### 查看icodeapi版本和信息

输入命令

```PowerShell
pip show icodeapi
```

### 测试

使用以下代码测试你是否成功安装了icodeapi

```python
try:
    import icodeapi
    import icodeapi.tools
    print(True)
except:
    print(False)
```

[Github仓库地址](https://github.com/xbzstudio/icodeapi)\
[PyPI官方页面](https://pypi.org/project/icodeapi/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xbz-studio.gitbook.io/icodeapi/zhu-ye.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
