A Python client for the Steam Web API
Project description
Steam Web API Client
A Python client for the Steam Web API.
Valve provides an API endpoint that describes all other endpoints. This is used to automatically generate most of the code for this package.
Installation
This package can be installed with pip:
pip install steamwebapiclient
Usage
from steamwebapiclient import SteamWebClient
client = SteamWebClient(
key="YourApiKey", # Only required if calling non-public API endpoints.
steam_id="SomeSteamId", # Scopes API calls that use this to this ID.
)
domains = client.steamdirectory_getsteampipedomains()
Generating the Base Client Class
To regenerate the base client class from Valve's API definitions, run the following from the root of the project (where this README is located).
python generate_client.py [API_KEY]
The API_KEY
argument is optional, but without it, only publicly
accessible methods will be available in the generated client code.
After regenerating the client, its code must be formatted using black.
Making a Release
Install build
:
pip install build
License
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
File details
Details for the file steamwebapiclient-0.1.0.tar.gz
.
File metadata
- Download URL: steamwebapiclient-0.1.0.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6298041d3fedd1984a9bd8a1d7e057c325d42dfd29b338ed533f3d32f3773f92 |
|
MD5 | 7880337519ddb1d30998893e378a8e23 |
|
BLAKE2b-256 | 42073800c8f67539e392b738d9ef01584d86efc909c0d63b7f9816237cc5288d |
File details
Details for the file steamwebapiclient-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: steamwebapiclient-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e9ced2f87d73a423b12bfa7c7ee6c353a9b05dfbe632659dbe4ca3d1464ff3b |
|
MD5 | f5196e784f34ad7ed1a60030e30a330d |
|
BLAKE2b-256 | 4b55aaf3660144c2adc31d41e267836c456f6258de959f184d2a42fcee99478e |