Metadata-Version: 2.1
Name: aiotieba
Version: 3.7.1
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: protobuf <5,>=4.21.0
Requires-Dist: tomli <3,>=1.1.0 ; python_version < "3.11"
Requires-Dist: lxml <5,>=4.6.4 ; python_version == "3.10"
Requires-Dist: aiohttp <3.9,>=3.8.4 ; python_version == "3.8"
Requires-Dist: beautifulsoup4 <4.13,>=4.4.1 ; python_version == "3.8"
Requires-Dist: lxml <4.10,>=4.4.1 ; python_version == "3.8"
Requires-Dist: pycryptodome <3.19,>=3.7.1 ; python_version == "3.8"
Requires-Dist: beautifulsoup4 <5,>=4.5.2 ; python_version == "3.9"
Requires-Dist: lxml <5,>=4.6.0 ; python_version == "3.9"
Requires-Dist: beautifulsoup4 <5,>=4.7.1 ; python_version >= "3.10"
Requires-Dist: lxml <5,>=4.9.2 ; python_version >= "3.11"
Requires-Dist: pycryptodome <4,>=3.7.1 ; python_version >= "3.8"
Requires-Dist: aiohttp <4,>=3.8.4 ; python_version >= "3.9"
Provides-Extra: img
Requires-Dist: opencv-contrib-python <4.9,>=4.6.0.66 ; (sys_platform != "linux") and extra == 'img'
Requires-Dist: opencv-contrib-python-headless <4.9,>=4.6.0.66 ; (sys_platform == "linux") and extra == 'img'
Provides-Extra: speedup
Requires-Dist: aiodns <4,>=3.0.0 ; extra == 'speedup'
Requires-Dist: pysimdjson <6,>=4.0.3 ; (python_version == "3.10") and extra == 'speedup'
Requires-Dist: uvloop <0.18,>=0.16.0 ; (python_version == "3.10" and sys_platform != "win32") and extra == 'speedup'
Requires-Dist: pysimdjson <5.1,>=2.0.10 ; (python_version == "3.8") and extra == 'speedup'
Requires-Dist: uvloop <0.18,>=0.14.0 ; (python_version == "3.8" and sys_platform != "win32") and extra == 'speedup'
Requires-Dist: pysimdjson <5.1,>=2.0.10 ; (python_version == "3.8" and sys_platform == "darwin") and extra == 'speedup'
Requires-Dist: pysimdjson <5.1,>=2.1.0 ; (python_version == "3.8" and sys_platform == "linux") and extra == 'speedup'
Requires-Dist: pysimdjson <6,>=3.1.1 ; (python_version == "3.9") and extra == 'speedup'
Requires-Dist: uvloop <0.18,>=0.15.0 ; (python_version == "3.9" and sys_platform != "win32") and extra == 'speedup'
Requires-Dist: pysimdjson <6,>=3.1.1 ; (python_version == "3.9" and sys_platform == "darwin") and extra == 'speedup'
Requires-Dist: pysimdjson <6,>=3.2.0 ; (python_version == "3.9" and sys_platform == "linux") and extra == 'speedup'
Requires-Dist: pysimdjson <6,>=5.0.1 ; (python_version >= "3.11") and extra == 'speedup'
Requires-Dist: uvloop <0.18,>=0.17.0 ; (python_version >= "3.11" and 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("天堂鸡汤")
        for thread in threads[3:6]:
            print(thread)


asyncio.run(main())
```

*输出样例*

```log
{'tid': 8537603600, 'user': 'iqhaoo', 'text': '一人发一句最喜欢的游戏台词\n楼主先来\n很喜欢lol布隆说的“夜晚越黑暗，星星就越明亮”，尤其在当下这个有着诸多缺点的世界里，这句话让我感觉舒服了很多在人们已不再相信理想主义的至暗时刻，高擎炬火之人便显得更加重要，至少我会坚持我的理想'}
{'tid': 8093410706, 'user': '粉樱yyc', 'text': '大概是剪切板里的一些有意思的话\n今天看自己的剪切板快满了，稍微翻翻突然发现以前存的一些话还挺有意思，就放在这里啦\n（咦，疑似水帖啊我）'}
{'tid': 8537699088, 'user': '2003hepsee', 'text': '记录一下自己人生第一次当“老师”的经历^_^\n明天我带的孩子们就“毕业”了，第一次当老师我改变了很多也收获了很多，就想着给自己记录一下这段宝贵的经历:-)'}
```

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

## 项目特色

+ 收录[**数十个常用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定义文件合集（更新至12.35.1.0）](https://github.com/n0099/tbclient.protobuf)
