Skip to main content

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.

Installation:

pip install steamfront

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
>>> client = 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:

>>> client = steamfront.Client()
>>> game = client.getApp(appid='530620')
>>> game.name
'Resident Evil 7 / Biohazard 7 Teaser: Beginning Hour'
>>> game.required_age
'18'
>>> game = client.getApp(name='Undertale')
>>> game.appid
'391540'

Users:

>>> client = steamfront.Client(API_KEY)
>>> user = client.getUser(id64='76561198054243905')
>>> user.name
'Kaylum-'
>>> user.status
'Online'
>>> apps = user.apps
>>> len(apps)
137
>>> rand = apps[44]
>>> rand.play_time
409

Most code is fully internally documented, so it will autofill and properly interface with Python’s help function.

API Reference

Click here

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

steamfront-0.0.4.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

steamfront-0.0.4-py2.py3-none-any.whl (14.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file steamfront-0.0.4.tar.gz.

File metadata

  • Download URL: steamfront-0.0.4.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for steamfront-0.0.4.tar.gz
Algorithm Hash digest
SHA256 b7f02eedbfac1e1ffdf1850bad5a2227339966dba2edd6dd7ae58acebe2d1bc8
MD5 7ce6a055ddc322ab75fb001f4edb5f2d
BLAKE2b-256 18819f1a1de4f3a18de2563f719c6ec1d7ab7cba5410eefaba0f65731fabf09d

See more details on using hashes here.

File details

Details for the file steamfront-0.0.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for steamfront-0.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c9e484c4d7e80cc8821f87d587a237b3441d10459447bd30396c3fde37a4aa75
MD5 41d81a53b99e4a09eeeb75bb655e0706
BLAKE2b-256 63ea1922a8063954f5c1c91c2ca70c5f7de8602d8a2328572476eadf4ba951b5

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