跳转到主要内容

Apex-legends api异步包装器

项目描述

简介

Codacy Badge LICENSE DOCS PyPI - Python Version

Apexpy是针对Python 3.6+编写的Apex-legends异步API包装器。

展示

import asyncio
from apexpy import ApexApi


async def main():

    player = ApexApi(key='SecretApiKey')
    await player.search('DiegosaursTTV', 'pc')

    for legend in player.legends:
        print(f'{legend.name} -> {legend.stats}')

    print(player.stats)

asyncio.run(main())

输出

Wraith -> [{'Kills': 4329.0, 'rank': 658}, {'KillsPerMatch': 8.78, 'rank': 117}, {'DamagePerMatch': 1696.19, 'rank': 128}, {'Damage': 836222.0, 'rank': 926}, {'MatchesPlayed': 493.0, 'rank': 866}]
Mirage -> [{'Kills': 10324.0, 'rank': 1}, {'Damage': 2062356.0, 'rank': 1}, {'Headshots': 6869.0, 'rank': 4}, {'CarePackageKills': 89.0, 'rank': 2}]
Lifeline -> [{'Kills': 14.0, 'rank': None}]
Bloodhound -> [{'Kills': 139.0, 'rank': 32243}]
Caustic -> [{'Kills': 41.0, 'rank': 7054}]
Gibraltar -> [{'Kills': 102.0, 'rank': 1915}]
Bangalore -> [{'Kills': 384.0, 'rank': 27236}, {'Damage': 78092.0, 'rank': 23243}]
Pathfinder -> [{'Kills': 37.0, 'rank': 27638}, {'Specific2': 17665.0, 'rank': 12108}]
[{'Level': 392.0, 'rank': None}, {'Kills': 15370.0, 'rank': 1}, {'KillsPerMatch': 31.18, 'rank': None}, {'DamagePerMatch': 6037.87, 'rank': None}, {'Damage': 2976670.0, 'rank': 1}, {'MatchesPlayed': 493.0, 'rank': None}, {'CarePackageKills': 89.0, 'rank': None}]

项目详情


下载文件

为您的平台下载文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分布

apexlegendspy-0.0.2.tar.gz (4.5 kB 查看哈希值)

上传时间:

构建分布

apexlegendspy-0.0.2-py3-none-any.whl (6.6 kB 查看哈希值)

上传时间: Python 3

支持者

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面