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(UBISOFT_EMAIL, UBISOFT_PASSW)
player = await auth.get_player(name="CNDRD")
print(f"Name: {player.name}")
print(f"Profile pic URL: {player.profile_pic_url}")
await player.load_persona()
print(f"Streamer nickname: {player.persona.nickname}")
print(f"Nickname enabled: {player.persona.enabled}")
await player.load_playtime()
print(f"Total Time Played: {player.total_time_played:,} seconds / {player.total_time_played_hours:,} hours")
print(f"Level: {player.level}")
await player.load_ranked_v2()
print(f"Ranked Points: {player.ranked_profile.rank_points}")
print(f"Rank: {player.ranked_profile.rank}")
print(f"Max Rank Points: {player.ranked_profile.max_rank_points}")
print(f"Max Rank: {player.ranked_profile.max_rank}")
await player.load_progress()
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.run(sample())
Output
Name: CNDRD
Profile pic URL: https://ubisoft-avatars.akamaized.net/7e0f63df-a39b-44c5-8de0-d39a05926e77/default_256_256.png
Streamer nickname: d1kCheeze
Nickname enabled: True
Total Time Played: 9,795,281 seconds / 2,720 hours
Level: 317
Ranked Points: 4400
Rank: Diamond 1
Max Rank Points: 4432
Max Rank: Diamond 1
XP: 136,139
Total XP: 22,573,639
XP to level up: 13,361
Docs
For docs go to cndrd.github.io/siegeapi
Credits
Operator Icons from r6operators by marcopixel & sourced by me straight from the game files
Built (and re-built) on top of what billy-yoyo started
Problems
If you experience any problems, reach out to me, or submit a PR
You can reach out here on GitHub or on Discord (cndrd)
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-6.3.4.tar.gz
(33.9 kB
view details)
Built Distribution
siegeapi-6.3.4-py3-none-any.whl
(36.6 kB
view details)
File details
Details for the file siegeapi-6.3.4.tar.gz
.
File metadata
- Download URL: siegeapi-6.3.4.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2393d1e2fbf2c980399f74f4e330fde7afe9abdf2698d181d92cd1f9e2b8e907 |
|
MD5 | fd6a30a5adc968d2be6e9bc42b7a775a |
|
BLAKE2b-256 | 288a2f6c0805a2b88860ed00e8c303e027aaabaa52046ba3fac375f0bf7c5340 |
File details
Details for the file siegeapi-6.3.4-py3-none-any.whl
.
File metadata
- Download URL: siegeapi-6.3.4-py3-none-any.whl
- Upload date:
- Size: 36.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86d28079aa14f4e3babaa61c6f90230a987f2d43c35d9e0755bfe250564af31e |
|
MD5 | 3ffd14fd57deaffc749d3372cc91460f |
|
BLAKE2b-256 | 08345e41d6c974271aaab28a90d22bb4631c6a8a363d3cf2b87a797f108ef500 |