cbmc.py-0.0.4
توضیحات
An unofficial 麥塊匿名發文平台 API wrapper.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | cbmc.py-0.0.4 |
| نام | cbmc.py |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ItsRqtl |
| ایمیل نویسنده | itsrql@gmail.com |
| آدرس صفحه اصلی | https://github.com/ItsRqtl/cbmc.py |
| آدرس اینترنتی | https://pypi.org/project/cbmc.py/ |
| مجوز | MIT |
# cbmc.py
<!-- Add a badge here -->
[](https://pypi.org/project/cbmc.py/)
[](https://www.codefactor.io/repository/github/itsrqtl/cbmc.py)


[](https://pypi.org/project/cbmc.py/)
[](https://pypi.org/project/cbmc.py/)
[](https://pypi.org/project/cbmc.py/)
Unofficial 麥塊匿名發文平台 API Wrapper for Python
## Installation
```sh
pip install cbmc.py
```
## Usage
```py
# Import the library
from cbmc import AsyncCbmc, SyncCbmc
api = SyncCbmc()
# Obtain post with post id, raise cbmc.NotFound if not found
api.get_post(1)
# List recent posts, maximum 300 posts.
api.get_posts()
# Directly call the method also works
# Creating an instance is not required, but it is recommended for future updates.
# (some planned new features will require that)
SyncCbmc.get_post(1)
# Also available in async
async def main():
await AsyncCbmc.get_post(1)
await AsyncCbmc.get_posts()
```
## Documentation
* [Documentation](docs/DOCS.md)
* [Changelog](CHANGELOG.md)
## Credits
* 麥塊匿名發文平台 API Documents: [CBMC API Docs](https://api.cbmc.club/docs/)
* Inspired by [HansHans135](https://github.com/hanshans135)'s [cbmc](https://github.com/HansHans135/cbmc) library.
## License
This project is licensed under `MIT License`. See the [LICENSE](LICENSE) for more details.
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | aiohttp |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl cbmc.py-0.0.4:
pip install cbmc.py-0.0.4.whl
نصب پکیج tar.gz cbmc.py-0.0.4:
pip install cbmc.py-0.0.4.tar.gz