code: def get_games(ctx):
      
  
      username = ctx.obj['username']
      games = User(username).get_games_owned()
  
      for game in sorted(games.values(), key=itemgetter('title')):
          click.echo('%s [appid: %s]' % (game['title'], game['appid']))
  
      click.secho('Total gems owned by `%s`: %d' % (username, len(games)), fg='green')
docs: Prints out games owned by a Steam user.