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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for steamwebapiclient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6298041d3fedd1984a9bd8a1d7e057c325d42dfd29b338ed533f3d32f3773f92
MD5 7880337519ddb1d30998893e378a8e23
BLAKE2b-256 42073800c8f67539e392b738d9ef01584d86efc909c0d63b7f9816237cc5288d

See more details on using hashes here.

File details

Details for the file steamwebapiclient-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for steamwebapiclient-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e9ced2f87d73a423b12bfa7c7ee6c353a9b05dfbe632659dbe4ca3d1464ff3b
MD5 f5196e784f34ad7ed1a60030e30a330d
BLAKE2b-256 4b55aaf3660144c2adc31d41e267836c456f6258de959f184d2a42fcee99478e

See more details on using hashes here.

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