Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/idlesign/steampak
Nicely packed tools to work with Steam APIs
https://github.com/idlesign/steampak
binding python steam steam-api wrapper
Last synced: 21 days ago
JSON representation
Nicely packed tools to work with Steam APIs
- Host: GitHub
- URL: https://github.com/idlesign/steampak
- Owner: idlesign
- License: bsd-3-clause
- Created: 2015-08-11T13:23:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-23T06:36:59.000Z (over 5 years ago)
- Last Synced: 2024-10-04T13:12:24.425Z (about 1 month ago)
- Topics: binding, python, steam, steam-api, wrapper
- Language: Python
- Homepage: https://github.com/idlesign/steampak
- Size: 126 KB
- Stars: 23
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
steampak
========
https://github.com/idlesign/steampak.. image:: https://img.shields.io/pypi/v/steampak.svg
:target: https://pypi.python.org/pypi/steampak.. image:: https://img.shields.io/pypi/dm/steampak.svg
:target: https://pypi.python.org/pypi/steampak.. image:: https://img.shields.io/pypi/l/steampak.svg
:target: https://pypi.python.org/pypi/steampak**This software is not affiliated with Valve, Steam, or any of their partners.**
Description
-----------*Nicely packed tools to work with Steam APIs*
* Steam library bindings for Python programming language.
It allows your game to interact with features offered by Steam client and Steam platform.
* Tools for querying Steam Web resources.
Allowing access to applications and market data from within your Python application.
* Command line utility.
To reach and analyse publicly available applications and market information.
Steam API bindings example
--------------------------A short example of API provided by Steam library, just to give a taste of it:
.. code-block:: python
from steampak import SteamApi
# A path to steam library file. This library should be provided with your game.
# Library for various OS is distributed with Steam SDK available for Steam partners
# at https://partner.steamgames.com/
LIBRARY_PATH = '/home/me/my_steam_game/libsteam_api.so'# Your application (game) identifier provided by Steam.
# Pass it as a parameter or put `steam_appid.txt` file with that ID in your game folder.
APP_ID = 480 # We use `Spacewar` ID. (This game is provided with SDK).api = SteamApi(LIBRARY_PATH, app_id=APP_ID)
# Let's print some friend names:
for user in api.friends():
print(user.name)# Current app achievements progress:
for ach_name, ach in api.apps.current.achievements():
print('%s (%s): %s' % (ach.title, ach_name, ach.get_unlock_info()))# Do not forget to shutdown when done:
api.shutdown()Command line client example
---------------------------.. code-block:: bash
; Get prices and simple analysis for Half-Life 2 cards.
$ steampak app 220 get_card_prices --currency USD; Get `Gordon Freeman` card price.
$ steampak market item 220 "Gordon Freeman" get_price --currency GBP; Get games owned by `idlesign`.
$ steampak user idlesign get_gamesUse ``--help`` command option to get more information on available commands.
Steam API bindings roadmap
--------------------------**Work in progress. Callback-based functions support is not implemented.**
* **Implemented (may be partially)**
* Applications
* Installed applications (restricted interface)
* Friends
* Friend tags
* Groups
* Current user
* Users
* Utilities
* Achievements
* Screenshots* **Not [yet]**
* Controller
* HTML Surface
* HTTP
* Inventory
* Matchmaking
* Music
* Networking
* Servers
* Storage
* UGC
* VideoDocumentation
-------------http://steampak.readthedocs.org/