A simple plugin to allow you to nicely access things on the Steam API and web server.
Project description
Intro
Steamfront is a basic interface for working with Steam and Steampowered through Python. It should be pretty simple to use, and if there’s anything badly documented here, everything is available on Github for you to look through.
Getting Started
There’s quite basic usage. For most things you don’t need an API key, but for others you may need to get one.
First you need to make a Client object.
>>> import steamfront
>>> sf = steamfront.steamfront.Client()
From there, you can get information on a game (through either name or ID), or list the games that a user has, through several methods each.
Games:
>>> g = sf.get_game_from_id('530620')
>>> g.name
'Resident Evil 7 / Biohazard 7 Teaser: Beginning Hour'
>>> g.required_age
'18'
>>> g = sf.get_game_from_name('Undertale')
>>> g.game_id
'391540'
Users:
>>> u = sf.get_user_from_name('Kaylum-')
>>> u.id64
'76561198054243905'
>>> gz = u.games
>>> len(gz)
138
>>> g = gz[0]
>>> g.name
'Terraria'
>>> g.play_time
'221'
Most code is fully internally documented, so it will autofill and properly interface with Python’s help function.
API Reference
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
Built Distribution
File details
Details for the file steamfront-0.0.1.tar.gz
.
File metadata
- Download URL: steamfront-0.0.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f55f8cd1c68d3183786176eda145bc8ee8c4740d9ae5c4c2ce6077fc061c55c7 |
|
MD5 | e61392304a62785fdc121db37913fab7 |
|
BLAKE2b-256 | 9dc238c14c5f381abb585aea72efc21228a462dc55eab6e94c8207d1f0501bea |
File details
Details for the file steamfront-0.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: steamfront-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da1ee68630dc958b26500c9efb5d754b6fe8f1973bd77de583e6a9f925ddd5d9 |
|
MD5 | d9190da099c05500f4595930115caa80 |
|
BLAKE2b-256 | f10f37ce7fcffcc8230f7bae19afa2ac244df9d2f3324c9c1a0d6458496512ec |