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()
await player.load_alpha_pack()
print(f"Level: {player.level}")
print(f"Alpha pack %: {player.alpha_pack}")
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
Level: 256
Level: 3250
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-2.0.0rc0.tar.gz
(26.1 kB
view hashes)
Built Distribution
Close
Hashes for siegeapi-2.0.0rc0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c83e41507209fe90d8f068d3248261e1e7a7dc34a7bdab19960e62e249f736 |
|
MD5 | 820497e73b61dcd60bd3149ec35e5041 |
|
BLAKE2b-256 | def94488703a4f3c2213a9862f66aa0969fdb66dccca46c070cb0ff39acd6ce2 |