Skip to main content

Rainbow Six Siege API interface

Project description

siegeapi


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)

forthebadge
forthebadge

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

Uploaded Source

Built Distribution

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

siegeapi-6.2.1-py3-none-any.whl (33.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: siegeapi-6.2.1.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

Hashes for siegeapi-6.2.1.tar.gz
Algorithm Hash digest
SHA256 14149590910173c8d7436081848b39d1edaed0c6de82316a1b0fcabaac33cc61
MD5 8af3343a5844ce1574e61d873c49cd79
BLAKE2b-256 b7a018a8927d4aaa1cd99b52990c6a51423a32b947023811f51c49d345991388

See more details on using hashes here.

File details

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

File metadata

  • Download URL: siegeapi-6.2.1-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

Hashes for siegeapi-6.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 75bc9dc48f273260d9e123c3533da84c74b8e8a12ef011d1db0713fdaf043562
MD5 f45563bc7364dabff42404f82e731956
BLAKE2b-256 329d9843fc1ebf2bb3fc44595a48e7904939770ac98e3cdf7993d8241bb42c42

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