Description
This project is entirely based on the Steam Web API. You can find all the API information in the "all_api_info" folder, which includes both the APIs that require an API key and the ones that can be called without an API key. However, to ensure smooth usage, it is recommended that you apply for an API key. Currently, the project has only implemented a portion of the API functionalities that I deemed useful.
Get start
pip install py-steam-web-api
basic
from py_steam_web_api.api import SteamApi
s = SteamApi(key="xxxxxxxxxxxxxxxxxxxx")
get user info
u = s.user.get_user_info(steamid=76561198155349454)
print(u.steamid, u.personaname)
# 76561198155349454 nike
get friends
# def get_friends(self, steamid: str) -> list[User]
u = s.user.get_friends(steamid=76561198155349454)
for i in u:
print(i.steamid, i.personaname)
# 76561198098262862 nike
# 76561198400723672 aplay
# 76561198417914571 Π
get level
# def get_level(self, steamid: int) -> int:
a = s.user.get_level(steamid=76561198155349454)
print(a)
# 45
get recent played games
#def get_recent_played_games(self, steamid: int) -> list[Game]:
a = s.game.get_recent_played_games(steamid=76561198155349454)
for i in a:
print(i.appid)
# 271590
# 1260320
# 436150
# 322330
all
#user
def get_user_info(self, steamid: int) -> User:
def get_friends(self, steamid: int) -> list[User]:
def get_badges(self, steamid: int) -> list[Badge]:
def get_level(self, steamid: int) -> int:
#game
def get_recent_played_games(self, steamid: int) -> list[Game]:
def get_owned_games(self, steamid: int, include_appinfo=True) -> list[Game]:
def get_game_list(self, max_results=10000) -> list[Game]:
#stats
def get_number_of_current_players(self, appid: int) -> dict:
def get_player_achievements(self, appid: int, steamid: int) -> dict:
def get_schema_for_game(self, appid: int) -> dict:
def get_user_stats_for_game(self, appid: int, steamid: int) -> dict:
Metadata
Release files for py-steam-web-api 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py-steam-web-api-0.2.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_steam_web_api-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / py-steam-web-api-0.2.tar.gz
| Download URL | py-steam-web-api-0.2.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c1ddcc94efd732fdecefbe9948476ed0be41b9eb97c0d23bf0265b16d7a5f0b
|
|
BLAKE2b-256 checksum How to use checksums |
986f41dcd1cba4deab85e45a77a63099de0f0ea2d71edaa68e0639c866d1b28b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / py_steam_web_api-0.2-py3-none-any.whl
| Download URL | py_steam_web_api-0.2-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8e3b3d7a607b0bad98ff81f26d1abc58bb4b581cde675bb97cc48d0853531f2
|
|
BLAKE2b-256 checksum How to use checksums |
d92b0a8e38bd513dcfcad25bb25967ff0799e3de6747b9daa5a5806e39a772d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|