Module Expr Str Import alias Import alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign AttributeStore NameLoad attr IfExp CompareIs NameLoad NameLoad Num NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str Str Return Call AttributeLoad Str attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Return ListComp Call AttributeLoad NameLoad attr NameLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr For NameStore NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For NameStore NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore Dict For NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str body Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str For NameStore Call NameLoad Num Call NameLoad NameLoad NameLoad body Expr Yield SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str TryExcept body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr Str TryExcept body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str TryExcept body Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num TryExcept body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str TryExcept body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Print Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return BinOpDiv Call NameLoad NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Str attr NameLoad decorator_list decorator_list
N/A N/A 
A small API wrapper intended to retrieve all available store information
for either a specific appid, or all appids.

Thanks for this SteamDB.info blog post for the idea on the best way to do this:
http://steamdb.info/blog/5/

 N/A urllib N/A json SteamBase SteamAPI Games N/A SteamAPI N/A N/A 
    Retrieve either all Game objects, or specific ones given a list of appids.

    Example:
    games = Games()
    all_games = games.get_all('US') # Get a generator with all game info

    # Get a generator for just the appids you specify
    some_games = games.get_appids_info([123,1245])

     __init__ N/A N/A self num N/A None N/A N/A 
        args:
        num -- number of games to query per call. The default 150 should work in most cases.

         N/A N/A self num N/A N/A num None 25 num N/A N/A N/A self appids_to_names N/A self names_to_appids N/A None None N/A _create_url N/A N/A self appids cc N/A N/A N/A Given a list of appids, creates an API url to retrieve them N/A appids N/A N/A , join N/A N/A str x N/A x appids N/A data N/A appids cc l v appids cc english 1 N/A N/A N/A http://store.steampowered.com/api/appdetails/?{} format N/A N/A urllib urlencode data N/A _get_urls N/A N/A self appids cc N/A N/A N/A Returns urls for all of appids N/A list_of_ids N/A list N/A N/A self _chunks appids N/A self num N/A N/A N/A N/A self _create_url x cc N/A x list_of_ids N/A get_all N/A N/A self cc N/A N/A N/A 
        Gets all games currently in the Steam store (as a generator)

        args:
        cc -- Country Code

         N/A N/A N/A N/A self appids_to_names None N/A N/A self names_to_appids None N/A N/A N/A N/A self appids_to_names N/A self names_to_appids N/A N/A self get_ids_and_names N/A urls N/A N/A self _get_urls N/A N/A N/A self appids_to_names keys cc N/A url urls N/A N/A game N/A N/A self _get_games_from url N/A N/A N/A game N/A _get_games_from N/A N/A self url N/A N/A N/A Generator to create the actual game objects N/A page N/A N/A json loads N/A N/A N/A N/A self _open_url url read N/A appid page N/A N/A game N/A Game N/A page N/A appid appid N/A N/A game success N/A N/A N/A game N/A get_info_for N/A N/A self appids cc N/A N/A N/A Given a list of appids, returns their Game objects N/A urls N/A N/A self _get_urls appids cc N/A url urls N/A N/A game N/A N/A self _get_games_from url N/A N/A N/A game N/A get_ids_and_names N/A N/A self N/A N/A N/A 
        Returns two dicts: one mapping appid->game name, and one game name->appid
        TODO: Refactor the code so we don't need to seperate dicts

         N/A url N/A N/A self _open_url http://api.steampowered.com/ISteamApps/GetAppList/v2 N/A url_info N/A N/A json loads N/A N/A url read N/A all_ids N/A N/A all_names N/A N/A app N/A N/A url_info N/A applist N/A apps N/A N/A N/A all_ids N/A N/A app N/A appid N/A app N/A name N/A N/A all_names N/A N/A app N/A name N/A app N/A appid N/A N/A all_ids all_names N/A get_id N/A N/A self game_name N/A N/A N/A Given an appid, returns the game name N/A N/A N/A N/A self appids_to_names None N/A N/A self names_to_appids None N/A N/A N/A N/A self appids_to_names N/A self names_to_appids N/A N/A self get_ids_and_names N/A N/A game_name N/A self names_to_appids N/A N/A N/A N/A self names_to_appids N/A game_name N/A get_name N/A N/A self appid N/A N/A N/A Given a game name returns its appid N/A N/A N/A N/A self appids_to_names None N/A N/A self names_to_appids None N/A N/A N/A N/A self appids_to_names N/A self names_to_appids N/A N/A self get_ids_and_names N/A N/A appid N/A self appids_to_names N/A N/A N/A N/A self appids_to_names N/A appid N/A _chunks N/A N/A self params number N/A N/A N/A Breaks a list into a set of equally sized chunked lists, with remaining entries in last list N/A i N/A xrange 0 N/A len params number N/A N/A N/A N/A params N/A i N/A i number N/A N/A Game N/A SteamAPI N/A N/A 
    The actual Game() object -- really this is just a wrapper around the base
    json response from Steam, that makes it a bit easier to sift through the data.

     __init__ N/A N/A self game_json appid N/A N/A N/A 
        This sets member variables for the various values
        that the game object should have. Not all of these exist on all
        appids, so there's some defaults whenever there is a key error.

        TODO: This is so awful. Rewrite this whole ugly method into
        smaller ones.

         N/A N/A self appid appid N/A N/A success game_json N/A N/A N/A self success N/A game_json N/A success N/A N/A self success N/A N/A N/A self store_url N/A N/A self _store_url N/A self appid N/A data N/A game_json N/A data N/A N/A self raw_json data N/A N/A self type N/A data N/A type N/A N/A self descriptidataon N/A data N/A detailed_description N/A N/A N/A N/A self name N/A data N/A name N/A N/A N/A KeyError N/A N/A N/A self name No Name N/A N/A N/A N/A self supported_languages N/A data N/A supported_languages N/A N/A N/A KeyError N/A N/A N/A self supported_languages None N/A N/A self header_image N/A N/A http://cdn.steampowered.com/v/gfx/apps/{}/capsule_184x69.jpg format N/A self appid N/A N/A self website N/A data N/A website N/A N/A N/A N/A self currency N/A N/A data N/A price_overview N/A currency N/A N/A self price N/A N/A self _calc_price N/A N/A data N/A price_overview N/A initial N/A N/A self discounted_price N/A N/A self _calc_price N/A N/A data N/A price_overview N/A final N/A N/A self discount_percent N/A N/A data N/A price_overview N/A discount_percent N/A N/A N/A KeyError N/A N/A N/A self currency None N/A N/A self price 0 N/A N/A self discounted_price 0 N/A N/A self discount_percent 0 N/A N/A N/A N/A self packages N/A data N/A packages N/A N/A N/A KeyError N/A N/A N/A self packages None N/A N/A self platforms N/A data N/A platforms N/A N/A N/A N/A self categories N/A data N/A categories N/A N/A N/A KeyError N/A N/A N/A self categories None N/A N/A N/A N/A Error! Can't read the game info for {} format appid N/A _calc_price N/A N/A self amount N/A N/A N/A Prices from the API are represented by cents -- convert to dollars N/A N/A N/A float amount 100.0 N/A _store_url N/A N/A self appid N/A N/A N/A N/A N/A http://store.steampowered.com/app/{} format appid N/A N/A