Rainbow Six Siege API interface
Project description
How to install
pip install siegeapi
Quick example
from siegeapi import Auth
import asyncio
async def sample():
auth = Auth("UBI_EMAIL", "UBI_PASSWORD")
player = await auth.get_player(uid="7e0f63df-a39b-44c5-8de0-d39a05926e77")
print(f"Name: {player.name}")
print(f"Profile pic URL: {player.profile_pic_url}")
await player.load_playtime()
print(f"Total Time Played: {player.total_time_played}")
await player.load_progress()
print(f"Level: {player.level}")
print(f"Alpha pack %: {player.alpha_pack}")
print(f"XP: {player.xp}")
print(f"Total XP: {player.total_xp}")
print(f"XP to level up: {player.xp_to_level_up}")
await auth.close()
asyncio.get_event_loop().run_until_complete(sample())
# Or `asyncio.run(sample())`
Output
Name: CNDRD
Profile pic URL: https://ubisoft-avatars.akamaized.net/7e0f63df-a39b-44c5-8de0-d39a05926e77/default_256_256.png
Total Time Played: 6723492
Level: 261
Alpha pack %: 30.5
XP: 12318
Total XP: 14875818
XP to level up: 109182
Docs
For docs visit WIKI
Type hints
Everything is type hinted to the best of my abilities
If there's something missing or wrong, let me know or submit a PR
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
siegeapi-2.0.3.tar.gz
(26.4 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
siegeapi-2.0.3-py3-none-any.whl
(34.7 kB
view details)
File details
Details for the file siegeapi-2.0.3.tar.gz.
File metadata
- Download URL: siegeapi-2.0.3.tar.gz
- Upload date:
- Size: 26.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d86cba94dbb2584160fa5bc855ad18f80bd23eb9d2a2be27cadf21ada57afbbc
|
|
| MD5 |
be9da9c03cf56541ac41cf8c339843db
|
|
| BLAKE2b-256 |
a20d860403b04864a1d7c3382ebd5d3b233485aa6af79939a582ac042faa8d0c
|
File details
Details for the file siegeapi-2.0.3-py3-none-any.whl.
File metadata
- Download URL: siegeapi-2.0.3-py3-none-any.whl
- Upload date:
- Size: 34.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01023f3a672c52c9ffcca48bf9fa1332dd7de0af4017abeaca620814d0ef6b55
|
|
| MD5 |
42f829fc0589be78588e6d6bd5c52221
|
|
| BLAKE2b-256 |
354b09f55923b74d47748b48460610eaf05c2bbd3b1460cba06f8765f0945988
|