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: 7225456
Level: 271
Alpha pack %: 17.0
XP: 117793
Total XP: 16218793
XP to level up: 8707
Docs
For docs visit the GitHub Wiki
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-4.1.4.tar.gz
(28.0 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-4.1.4-py3-none-any.whl
(35.1 kB
view details)
File details
Details for the file siegeapi-4.1.4.tar.gz.
File metadata
- Download URL: siegeapi-4.1.4.tar.gz
- Upload date:
- Size: 28.0 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 |
ef3db5d87bfa2a0a9c88e228e66ec0dcf00d6ab76b66ab9e9cff40ea66fa114f
|
|
| MD5 |
051efe5b772a389ca2f1e8116f5d91f0
|
|
| BLAKE2b-256 |
5630ce00869d85f34ae7b9a1b62342c47acfb63d6c1da7575c88f551552b10bb
|
File details
Details for the file siegeapi-4.1.4-py3-none-any.whl.
File metadata
- Download URL: siegeapi-4.1.4-py3-none-any.whl
- Upload date:
- Size: 35.1 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 |
8a833d8abe0e3553fa230d2f61d79b4d6eedcdf0c0297ed9efa8280c2347673c
|
|
| MD5 |
19a5a95f747732e58f251f128de3f068
|
|
| BLAKE2b-256 |
a13a02843fdbe15d0dee2c4d1044aac3e55f830f8df53598af969f00e8849dc8
|