Skip to main content

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: 6723492
Level: 261
Alpha pack %: 30.5
XP: 12318
Total XP: 14875818
XP to level up: 109182

Docs

For docs visit WIKI

Operator Icons

From r6operators by marcopixel

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


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.6.tar.gz (26.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

siegeapi-2.0.6-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file siegeapi-2.0.6.tar.gz.

File metadata

  • Download URL: siegeapi-2.0.6.tar.gz
  • Upload date:
  • Size: 26.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

Hashes for siegeapi-2.0.6.tar.gz
Algorithm Hash digest
SHA256 ba9384790e9851a1b2a4f8e22ad50bc889d19cb6557877ad492a9696f5cef331
MD5 8cae2f1c82eafa505c5226731e088915
BLAKE2b-256 5ce0fa546a1ae6aa48c24ffd272b106f41e85576af7a8547c6995c23db5b5a4a

See more details on using hashes here.

File details

Details for the file siegeapi-2.0.6-py3-none-any.whl.

File metadata

  • Download URL: siegeapi-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 34.9 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

Hashes for siegeapi-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4f7804f46bc7510d8a2a05420ec598d8dc0bc5e7f516d5cce687ecc06d77abbf
MD5 ec58be42bc6c5f45dacc418b24529b8c
BLAKE2b-256 038aabe192815a45ee8638a086876432223b2d3e1c5802c690613e46273801de

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page