Battleground API 的 python 包装器
项目描述
绝地求生
Battleground API 的 python 包装器。
它由异步设备组成,可以更有效地使用模块。
使用起来并不难,但是和官方文档还是有一些区别的。
如果您有任何问题,请在 discord 或电子邮件 ( gunyu1019@yhs.kr ) 上 건유1019#0001 询问。
安装
// Windows
py -3 -m pip install pubgpy
// Linux / MacOS
python3 -m pip install pubgpy
快速示例
import pubgpy
import asyncio
token = "<PUBG TOKEN>"
async def main():
client = pubgpy.Client(token=token, platform=pubgpy.Platforms.STEAM)
player = await client.player("gunyu1128")
resp = await player.season_stats(season=pubgpy.get_season(d_season=10, platform=pubgpy.Platforms.STEAM))
print("Nickname: {}".format(player.name))
print("Assets: {}".format(resp.squad.kills))
print("Kills: {}".format(resp.squad.kills))
event = asyncio.get_event_loop()
event.run_until_complete(main())
执照
MIT 许可证
版权所有 (c) 2021 gunyu1019
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
源分布
PUBGpy-1.1.tar.gz
(19.1 kB
查看哈希)
内置分布
PUBGpy-1.1-py3-none-any.whl
(32.1 kB
查看哈希)