Skip to main content

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

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

steamwebapiclient-0.1.0.tar.gz (9.8 kB view hashes)

Uploaded Source

Built Distribution

steamwebapiclient-0.1.0-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page