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.

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.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

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.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

steamfront-0.0.2-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for steamfront-0.0.2.tar.gz
Algorithm Hash digest
SHA256 ca8645ffac034bf5958c7d6470ef9f6239b4eda0512efcc6be2f340d0f5af871
MD5 23a2b07021e826f4c9a826f637a55e23
BLAKE2b-256 6bdf4a9b64e75dbc6dd618440215bbac92159af9312e9143468f6e7374d95f1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for steamfront-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ed8f81ed0104c7f3d73eadf0c66186c186a8b46332f042d2338a67110c569095
MD5 e88ca153086ecf44eea03125fe6e29df
BLAKE2b-256 3186073cbcf390e23d7fec0346a0d9e2e254c1d6e81afaebfcf9d6ce1edfcfa9

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