Apex-legends api async wrapper
Project description
Introduction
Apexpy it's an asynchronous api wrapper for Apex-legend written for python 3.6+
Showcase
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())
Output
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}]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
apexlegendspy-0.0.2.tar.gz
(4.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apexlegendspy-0.0.2.tar.gz.
File metadata
- Download URL: apexlegendspy-0.0.2.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a7accbb04c89d98f69f271bd32913c8c0b92e4ecb535184f74f4b30b5754922
|
|
| MD5 |
c6a9b212a8ad853b9a2a40145f77e4c0
|
|
| BLAKE2b-256 |
bf4cbdfeb811c2d4db8ce7337217a140ff3605e343ef1990ee46acba14a4d41d
|
File details
Details for the file apexlegendspy-0.0.2-py3-none-any.whl.
File metadata
- Download URL: apexlegendspy-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
053649fc7450ae29527a507047a007be050ff143120c5782251e1a62a611a0ab
|
|
| MD5 |
fdf81937de83b02a6397f48ad69c81f8
|
|
| BLAKE2b-256 |
716df559c7371dade110b6b02913e27fb0b7472cadfb3f4432914df5c0ca62bd
|