Rainbow Six Siege API interface
Reason this release was yanked:
did a fucky wucky
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 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.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,910,265 seconds
Level: 285
Ranked Points: 1000
Rank: Unranked
Max Rank Points: 1000
Max Rank: Unranked
XP: 56,362
Total XP: 17,973,862
XP to level up: 77,138
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)
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
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 siegeapi-6.2.0.tar.gz.
File metadata
- Download URL: siegeapi-6.2.0.tar.gz
- Upload date:
- Size: 30.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d57e3967a09e2ef9d788f8bdd91038db755ba16963d95e1727c4e6a8eac311b
|
|
| MD5 |
232294f048c2009e891828057c081b99
|
|
| BLAKE2b-256 |
6690e0c4c8474618e6332ab786d8ae050abe764dccb3b42958255572a7239bf0
|
File details
Details for the file siegeapi-6.2.0-py3-none-any.whl.
File metadata
- Download URL: siegeapi-6.2.0-py3-none-any.whl
- Upload date:
- Size: 33.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
603b509b7eb3c08eed8f5061a130e43248e678504cbd9ab4ffef0af122b57696
|
|
| MD5 |
68861a14aa6c5aa4a05bc735dfeff6bf
|
|
| BLAKE2b-256 |
d5bfacee41647f0272df9f59d30f4536d71ae9f4952d2613fe913747c3b24404
|