Rainbow Six Siege API interface
Project description
How to install
pip install siegeapi
Quick example
from siegeapi import Auth, Platforms
import asyncio
async def sample():
auth = Auth("UBI_EMAIL", "UBI_PASSWORD")
player = await auth.get_player(uid="7e0f63df-a39b-44c5-8de0-d39a05926e77", platform=Platforms.UPLAY)
print(f"Name: {player.name}")
print(f"Profile pic URL: {player.profile_pic_url}")
await player.load_level()
print(f"Level: {player.level}")
print(f"Alpha pack %: {player.lootbox_probability}")
await auth.close()
asyncio.get_event_loop().run_until_complete(sample())
Output
Name: CNDRD
Profile pic URL: https://ubisoft-avatars.akamaized.net/7e0f63df-a39b-44c5-8de0-d39a05926e77/default_256_256.png
Level: 256
Alpha pack %: 2050
NOTE:
player.lootbox_probabilityis 3 or 4-digits long E.g.:player.lootbox_probability = 500👉 5.00%
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-1.1.tar.gz
(20.5 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-1.1-py3-none-any.whl
(21.7 kB
view details)
File details
Details for the file siegeapi-1.1.tar.gz.
File metadata
- Download URL: siegeapi-1.1.tar.gz
- Upload date:
- Size: 20.5 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 |
c468e759da6073f2afc552f85b7a699bb32f0ec4c91ced0d0039769358ca0a09
|
|
| MD5 |
9e4c098d197246600d106fd659b6750d
|
|
| BLAKE2b-256 |
d87a233a1fec95146b984701e6eaa5aa1791eeb2f1bae9a75308ec83a73fed68
|
File details
Details for the file siegeapi-1.1-py3-none-any.whl.
File metadata
- Download URL: siegeapi-1.1-py3-none-any.whl
- Upload date:
- Size: 21.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 |
173fc1c2bcbaa2615aa5d08b49d62d2e64d233820d014b367618a836dc650912
|
|
| MD5 |
a3658e963a2b3429a37a98f52d75f618
|
|
| BLAKE2b-256 |
81963166830b14083c468679716a474ba246acac1762fccd6af3ac91844d8092
|