Python steamid is a library, directed at parsing steam IDs, and returning information about them. One of the great things about it, is that it will parse any steamid, without you having to specify what it is. Another benefit is it not using the internet. Meaning you can run this program offline, without any problems.
As stated above, this library uses no other moduals, that don't come with atleast python3.6 and above (re and math, although it doesn't use math, but I forgot to remove it). You just have to do
pip install steamid
And your done! You can now import it.
The library comes with a class called SteamID
, that takes any steam ID as input, must be a string.
from steamid import SteamID
my_id = SteamID('76561198269569899')
#This is a steam64 ID. However, other IDs are usable, like steam2, and steam3 IDs
- Class variable: 0xFFFFFFFF
- Class variable: 0x000FFFFF
- Class variable: (dict)
- Class variable: (dict)
- Class variable: (dict)
- Class variable: (dict)
- Class variable: (dict)
- Object variable: (int): Will onlly exist if the ID is a user
- Object variable: (int)
- Object variable: (int)
- Object variable: (int)
Returns a SteamID object, based on the account ID.
- Static Method
- Input: accountid (int)
- Output: SteamID object (SteamID)
Creates a steam2 ID from the current SteamID object
- Object Method
- Input: newerFormat
- Output: steam2id (str)
Creates a steam3 ID from the current SteamID object
- Object Method
- Input: -
- Output: steam3id (str)
Creates a steam64 ID from the current SteamID object
- Object Method
- Input: -
- Output: steam64id (str)
Checks the SteamID object, to make sure it's a valid steam id.
- Object Method
- Input: -
- Output: True / False (bool)