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:,} seconds")
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 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: 7,616,619 seconds
Level: 279
Ranked Points: 3630
Rank: Emerald 4
Max Rank Points: 3694
Max Rank: Emerald 4
Siege Inventory
If you want to see every skin, headgear, uniform and more, head over to skins.cndrd.xyz
Docs
For docs go to cndrd.github.io/siegeapi
Credits
Operator Icons from r6operators by marcopixel
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#2233)
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.0.0rc3.tar.gz
(30.4 kB
view hashes)
Built Distribution
Close
Hashes for siegeapi-6.0.0rc3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d07fa64b838bc973bebd0bbaf7f6a080b83c673e92f4a1a142187ca16b5e5253 |
|
MD5 | f228fdf99e32a11335a372e308ca164b |
|
BLAKE2b-256 | 2e006c1ef9e90d93f6d58d918cdf42ecdc046e8679cb4fbd0980deae740b52b5 |