Skip to main content

siegeapi


How to install

pip install siegeapi

Quick example

from siegeapi import Auth
import asyncio

async def sample():
    auth = Auth(UBISOFT_EMAIL, UBISOFT_PASSW)
    player = await auth.get_player(name="CNDRD")

    print(f"Name: {player.name}")
    print(f"Profile pic URL: {player.profile_pic_url}")

    await player.load_persona()
    print(f"Streamer nickname: {player.persona.nickname}")
    print(f"Nickname enabled: {player.persona.enabled}")

    await player.load_playtime()
    print(f"Total Time Played: {player.total_time_played:,} seconds / {player.total_time_played_hours:,} hours")
    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.run(sample())

Output

Name: CNDRD
Profile pic URL: https://ubisoft-avatars.akamaized.net/7e0f63df-a39b-44c5-8de0-d39a05926e77/default_256_256.png
Streamer nickname: d1kCheeze
Nickname enabled: True
Total Time Played: 9,795,281 seconds / 2,720 hours
Level: 317
Ranked Points: 4400
Rank: Diamond 1
Max Rank Points: 4432
Max Rank: Diamond 1
XP: 136,139
Total XP: 22,573,639
XP to level up: 13,361

Docs

For docs go to cndrd.github.io/siegeapi

Credits

Operator Icons from r6operators by marcopixel & sourced by me straight from the game files
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

Metadata

Release files for siegeapi 6.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for siegeapi 6.3.5
File Size Uploaded
siegeapi-6.3.5.tar.gz 33.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for siegeapi 6.3.5
File Interpreter ABI Platform
siegeapi-6.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 70.3 kB

Release files / siegeapi-6.3.5.tar.gz

Download URL siegeapi-6.3.5.tar.gz
Size 33.8 kB
Tags Source
SHA-256 checksum
How to use checksums
888be9f661b06ebeefb5ad251b85106e3d3a149ecdac7b7156f7c94e9c15fe7c
BLAKE2b-256 checksum
How to use checksums
a6d59e24911c03b84c7669568cd32b50eceeeefbab0fa3e692d2dddeebfde3f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release files / siegeapi-6.3.5-py3-none-any.whl

Download URL siegeapi-6.3.5-py3-none-any.whl
Size 36.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b11bff0a4c4a21903aa195eb2c333cf32aecaaafa9010caf5ecf3cbcb9b872c
BLAKE2b-256 checksum
How to use checksums
5ae853c88a795a720924b1874f9a8beb1d48e377f69417917724111950b8fbc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.22

Release history Release notifications | RSS feed

This release

6.3.5 This release

2 release files

6.3.4

2 release files

6.3.3

2 release files

6.3.0

2 release files

6.2.5

2 release files

6.2.4

2 release files

6.2.2

2 release files

6.2.1

2 release files

6.2.0

2 release files

6.1.5

2 release files

6.1.4

2 release files

6.1.3

2 release files

6.1.2

2 release files

6.1.1

2 release files

6.1.0

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.0.0

2 release files

4.1.5

2 release files

4.1.4

2 release files

4.1.3

2 release files

4.0.0

2 release files

3.0.2

2 release files

3.0.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.2

2 release files

2.1.0

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page