Skip to main content

unofficial steam API wrapper

Project description

steam-wrapper-api

steam-logo

What is it?

this is an unofficial library wrapper for the steam API

steam-wrapper-api simplifies the use of the API, making it easier to use

dependencies

pip install -r requirements.txt

Installing

you can install using pip

pip install steam-wrapper-api

Using

here are some usage examples

making a file to auth with api_key

a json file will be generated with your api_key named API_steam.json

import steam_api

steam_api.create_auth_json('YOUR_API_KEY')

loading the api_key with auth file

import steam_api

api_key = steam_api.load_auth_json() 

getting steam user profile data

import steam_api

steam = steam_api.Steam('YOUR_API_KEY')
profile_data = steam.get_player_summaries('steam_id')

setting xml as response default

you can change the default format of response of the API to xml

the default is json

import steam_api

steam = steam_api.Steam('YOUR_API_KEY', 'xml')

writing formatted data

from steam_api import Steam

steam = Steam('YOUR_API_KEY')
player_achievements = steam.get_player_achievements(steam_id='xxxxxxxxxxx', app_id=000000)
steam.write_content(content=player_achievements, file_path='./player_achievements.json')

output

formatted data

docs

the documentation of api can be found in: https://developer.valvesoftware.com/wiki/Steam_Web_API#GetNewsForApp_.28v0001.29

contributing

all contributions are welcome, the repository in github is: https://github.com/gabriel-batistuta/steam-wrapper-api

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

steam-wrapper-api-0.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file steam-wrapper-api-0.1.tar.gz.

File metadata

  • Download URL: steam-wrapper-api-0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for steam-wrapper-api-0.1.tar.gz
Algorithm Hash digest
SHA256 2b3323cd97688d793016c71145c371aeb1d10a69bf1d709d70844b99969e53a8
MD5 35c58bfd66040e249935467ac424578b
BLAKE2b-256 6a530278a2c9b1854db18c19b12d2b652e0fc3954b2bedeb3b9f11d96ed0ee45

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