ChimuApi-0.1.5
توضیحات
API Wrapper around Chimu.moe API for both synchronous and asynchronous purposes.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | ChimuApi-0.1.5 |
| نام | ChimuApi |
| نسخه کتابخانه | 0.1.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lenforiee |
| ایمیل نویسنده | lenforiee@misumi.me |
| آدرس صفحه اصلی | https://github.com/lenforiee/ChimuApi |
| آدرس اینترنتی | https://pypi.org/project/ChimuApi/ |
| مجوز | - |
# ChimuAPI Python Wrapper
API Wrapper around Chimu.moe API for both synchronous and asynchronous purposes.
## What is it for?
I made this wrapper for Python devs so they can easly access Chimu.moe API both async and sync.
Allowing more people to use it!
## Synchronous Example
```py
import ChimuApi as chimu
def main():
api = chimu.ChimuAPI()
sets = api.get_set(1)
for mapa in sets.ChildrenBeatmaps:
print(f"{mapa.BeatmapId} [{mapa.DiffName}]")
print(sets.Creator)
def download():
api = chimu.ChimuAPI()
file_bytes = api.download_file(1, key_here, state_here)
with open("map.osz", "wb") as filea:
filea.write(file_bytes)
main()
download()
```
## Asynchronous Example
```py
import ChimuApi as chimu
import asyncio
async def main():
api = chimu.AsyncChimuAPI()
sets = await api.get_set(1)
for mapa in sets.ChildrenBeatmaps:
print(f"{mapa.BeatmapId} [{mapa.DiffName}]")
print(sets.Creator)
async def download():
api = chimu.AsyncChimuAPI()
file_bytes = await api.download_file(1, key_here, state_here)
with open("map.osz", "wb") as filea:
filea.write(file_bytes)
asyncio.run(main())
asyncio.run(download())
```
## Contribution
If you feel like you want to help/fix/change something in this package,
just create Issue or Pull Request on GitHub and I'll review it.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl ChimuApi-0.1.5:
pip install ChimuApi-0.1.5.whl
نصب پکیج tar.gz ChimuApi-0.1.5:
pip install ChimuApi-0.1.5.tar.gz