Metadata-Version: 2.1
Name: aiotieba
Version: 3.4.3
Summary: Asynchronous I/O Client for Baidu Tieba
Author-email: Starry-OvO <starry.qvq@gmail.com>
Project-URL: Repository, https://github.com/Starry-OvO/aiotieba/
Project-URL: Documentation, https://aiotieba.cc/
Keywords: baidu,tieba
Classifier: Development Status :: 4 - Beta
Classifier: Framework :: AsyncIO
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Internet :: WWW/HTTP :: Session
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp (<4,>=3.8.4)
Requires-Dist: beautifulsoup4 (<5,>=4.0.0)
Requires-Dist: lxml (<5,>=4.0.0)
Requires-Dist: protobuf (<5,>=4.12.0)
Requires-Dist: pycryptodome (<4,>=3.0.0)
Requires-Dist: tomli (<3,>=2.0.0) ; python_version < "3.11"
Provides-Extra: img
Requires-Dist: opencv-contrib-python-headless (<4.8,>=4.6.0.66) ; (sys_platform != "win32") and extra == 'img'
Requires-Dist: opencv-contrib-python (<4.8,>=4.6.0.66) ; (sys_platform == "win32") and extra == 'img'
Provides-Extra: speedup
Requires-Dist: aiodns (<4,>=3.0.0) ; extra == 'speedup'
Requires-Dist: pysimdjson (<5.1,>=5.0.0) ; extra == 'speedup'
Requires-Dist: uvloop (<0.18,>=0.5.3) ; (sys_platform != "win32") and extra == 'speedup'

<p align="center">
<a href="https://socialify.git.ci">
    <img src="https://user-images.githubusercontent.com/48282276/217530379-1348f7c5-7056-48f4-8c64-1c74caf5497c.svg">
</a>
</p>

<div align="center">
<p>
<a href="https://github.com/Starry-OvO/aiotieba/actions">
    <img src="https://img.shields.io/github/actions/workflow/status/Starry-OvO/aiotieba/CI.yml?branch=develop&label=CI&logo=github&style=flat-square" alt="GitHub Workflow Status">
</a>
<a href="https://pypi.org/project/aiotieba">
    <img src="https://img.shields.io/pypi/v/aiotieba?color=g&style=flat-square" alt="PyPI - Version">
</a>
<a href="https://pypi.org/project/aiotieba">
    <img src="https://img.shields.io/pypi/pyversions/aiotieba?style=flat-square" alt="PyPI - Python Version">
</a>
</p>
</div>

---

## 安装

```shell
pip install aiotieba
```

## 尝试一下

```python
import asyncio

import aiotieba


async def main():
    async with aiotieba.Client() as client:
        threads = await client.get_threads("天堂鸡汤")
        print(threads[3:5])


asyncio.run(main())
```

*输出样例*

```log
[{'tid': 8256346027, 'pid': 146825511891, 'user': '煞南波万', 'text': '如题，好奇大家会存什么样的图图✧◔.̮◔'}, {'tid':: 8255392021, 'pid': 146820360992, 'user': 'Yfy1357oy', 'text': '有没有一些治愈的音乐推荐呢？\n如题，范围很广阔，鼓舞人心的、轻快的、浪漫的，有词的、无词的，中文的、外文的，都可以。希望大家能从音乐中找到生活的力量'}]
```

继续阅读[**入门教程**](https://aiotieba.cc/tutorial/start)

## 项目特色

+ 收录[**72个常用API**](https://github.com/Starry-OvO/aiotieba/tree/develop/aiotieba/api)
+ 类型注解全覆盖，方法注释全覆盖，类属性注释全覆盖，内部命名统一
+ 请求参数支持protobuf序列化
+ 支持websocket接口
+ 高一致性的密码学实现

## 友情链接

+ [TiebaManager（吧务管理器 有用户界面）](https://github.com/dog194/TiebaManager)
+ [TiebaLite（第三方安卓客户端）](https://github.com/HuanCheng65/TiebaLite/tree/4.0-dev)
+ [基于aiotieba的高弹性吧务审查框架](https://github.com/Starry-OvO/aiotieba-reviewer)
+ [贴吧protobuf定义文件合集](https://github.com/n0099/tbclient.protobuf)
