Package for easy conversion between steamID formats
Project description
SteamID Converter
Provides conversions between different SteamID formats in Python
Overview
Steam provides 3 types of ID for each unique account on the platform: SteamID, SteamID3 and SteamID64
| ID | SteamID | SteamID3 | SteamID64 |
|---|---|---|---|
| Format | STEAM_0:X:XXXXXXXX | [U:1:XXXXXXXX] | 17 digit int |
This package provides conversions between these formats.
For more in-depth information on steamIDs see the Valve Software Wiki Page
Functionality
All functions currently avaliable are located in steamid_converter.Converter
Each function can take any of the steamID formats (Including the function's target format) as a string or integer. Then will return that ID converted to the function's target format.
Avaliable Functions
Converter.to_steamID(steamID)
"""
Convert to steamID
A steamID is unique to each steam account,
Formatted with digits as x "STEAM_0:x:xxxxxxxx"
Parameters
----------
steamID : int or str
steamID3 or steamID64 to convert to steamID
Returns
-------
str
steamID value
"""
Converter.to_steamID3(steamID)
"""
Convert to steamID3
A steamID3 is unique to each steam account,
Formatted with digits as x "[U:1:xxxxxxxx]"
Parameters
----------
steamID : int or str
steamID or steamID64 to convert to steamID3
Returns
-------
str
steamID3 value
"""
Converter.to_steamID64(steamID, as_int=False)
"""
Convert to steamID64
A steamID64 is a 17 digit number, unique to each steam account
Parameters
----------
steamID : int or str
steamID or steamID3 to convert to steamID64
as_int : bool
If the steamID64 is returned as an integer rather than string, Default = False
Returns
-------
int or str
steamID64 value
"""
Other Info
This package was created by Alex Hodgson
Steam is a copyright of Valve Corporation, Valve Corporation is in no way affiliated with this package or it's author.
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
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
File details
Details for the file steamid-converter-1.0.1.tar.gz.
File metadata
- Download URL: steamid-converter-1.0.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daec2eb9db7190a71b8bbaf689df83540dfbe0d59e47c4df4f317c33055cb641
|
|
| MD5 |
e83cf4f47c9fa52eb9baded8266aebc3
|
|
| BLAKE2b-256 |
75a47658d5065eeab7884d26f41c4bc06804c48d82f260baba955bd6d8718a39
|
File details
Details for the file steamid_converter-1.0.1-py3-none-any.whl.
File metadata
- Download URL: steamid_converter-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ac05c2285837d1b7e5645d0edd0e685774df76f988cba60aa88384a0c3ce1a3
|
|
| MD5 |
fba586de97eb62cdeebfe57414b651f1
|
|
| BLAKE2b-256 |
08ffb824fb8d778f772c923a2916348c47bacbaa7e322ae82ca751bd185164c3
|