Logo
v9.1.0
  • Quickstart
  • Package
    • yfpy.data
      • yfpy.data.Data
    • yfpy.exceptions
      • yfpy.exceptions.YahooFantasySportsDataNotFound
      • yfpy.exceptions.YahooFantasySportsException
    • yfpy.logger
      • yfpy.logger.get_logger
    • yfpy.models
      • yfpy.models.Bonus
      • yfpy.models.ByeWeeks
      • yfpy.models.Division
      • yfpy.models.DivisionalOutcomeTotals
      • yfpy.models.DraftAnalysis
      • yfpy.models.DraftResult
      • yfpy.models.Game
      • yfpy.models.GameWeek
      • yfpy.models.Headshot
      • yfpy.models.League
      • yfpy.models.Manager
      • yfpy.models.Matchup
      • yfpy.models.MatchupGrade
      • yfpy.models.Name
      • yfpy.models.OutcomeTotals
      • yfpy.models.Ownership
      • yfpy.models.PercentOwned
      • yfpy.models.Player
      • yfpy.models.PlayerPoints
      • yfpy.models.PlayerStats
      • yfpy.models.PositionType
      • yfpy.models.Roster
      • yfpy.models.RosterAdds
      • yfpy.models.RosterPosition
      • yfpy.models.Scoreboard
      • yfpy.models.SelectedPosition
      • yfpy.models.Settings
      • yfpy.models.Standings
      • yfpy.models.Stat
      • yfpy.models.StatCategories
      • yfpy.models.StatModifiers
      • yfpy.models.StatPositionType
      • yfpy.models.Streak
      • yfpy.models.Team
      • yfpy.models.TeamLogo
      • yfpy.models.TeamPoints
      • yfpy.models.TeamProjectedPoints
      • yfpy.models.TeamStandings
      • yfpy.models.Transaction
      • yfpy.models.TransactionData
      • yfpy.models.User
      • yfpy.models.YahooFantasyObject
    • yfpy.query
      • yfpy.query.YahooFantasySportsQuery
    • yfpy.utils
      • yfpy.utils.complex_json_handler
      • yfpy.utils.convert_strings_to_numeric_equivalents
      • yfpy.utils.dict_to_list
      • yfpy.utils.flatten_json_dict_list
      • yfpy.utils.flatten_to_list
      • yfpy.utils.flatten_to_objects
      • yfpy.utils.get_type
      • yfpy.utils.jsonify_data
      • yfpy.utils.jsonify_data_to_file
      • yfpy.utils.prettify_data
      • yfpy.utils.reformat_json_list
      • yfpy.utils.reorganize_json_dict
      • yfpy.utils.unpack_data
  • Tests
    • test.conftest
      • test.conftest.show_log_output
    • test.integration
      • test.integration.conftest
        • test.integration.conftest.auth_dir
        • test.integration.conftest.browser_callback
        • test.integration.conftest.chosen_date
        • test.integration.conftest.chosen_week
        • test.integration.conftest.data_dir
        • test.integration.conftest.game_code
        • test.integration.conftest.game_id
        • test.integration.conftest.game_key
        • test.integration.conftest.league_id
        • test.integration.conftest.league_player_limit
        • test.integration.conftest.player_id
        • test.integration.conftest.player_key
        • test.integration.conftest.season
        • test.integration.conftest.team_id
        • test.integration.conftest.team_name
        • test.integration.conftest.yahoo_data
        • test.integration.conftest.yahoo_query
      • test.integration.test_api_game_data
        • test.integration.test_api_game_data.test_get_all_yahoo_fantasy_game_keys
        • test.integration.test_api_game_data.test_get_current_game_info
        • test.integration.test_api_game_data.test_get_current_game_metadata
        • test.integration.test_api_game_data.test_get_game_info_by_game_id
        • test.integration.test_api_game_data.test_get_game_key_by_season
        • test.integration.test_api_game_data.test_get_game_metadata_by_game_id
        • test.integration.test_api_game_data.test_get_game_position_types_by_game_id
        • test.integration.test_api_game_data.test_get_game_roster_positions_by_game_id
        • test.integration.test_api_game_data.test_get_game_stat_categories_by_game_id
        • test.integration.test_api_game_data.test_get_game_weeks_by_game_id
        • test.integration.test_api_game_data.test_get_league_key
      • test.integration.test_api_league_data
        • test.integration.test_api_league_data.test_get_league_draft_results
        • test.integration.test_api_league_data.test_get_league_info
        • test.integration.test_api_league_data.test_get_league_matchups_by_week
        • test.integration.test_api_league_data.test_get_league_metadata
        • test.integration.test_api_league_data.test_get_league_players
        • test.integration.test_api_league_data.test_get_league_players_with_limit
        • test.integration.test_api_league_data.test_get_league_scoreboard_by_week
        • test.integration.test_api_league_data.test_get_league_settings
        • test.integration.test_api_league_data.test_get_league_standings
        • test.integration.test_api_league_data.test_get_league_teams
        • test.integration.test_api_league_data.test_get_league_transactions
      • test.integration.test_api_player_data
        • test.integration.test_api_player_data.test_get_player_draft_analysis
        • test.integration.test_api_player_data.test_get_player_ownership
        • test.integration.test_api_player_data.test_get_player_percent_owned_by_week
        • test.integration.test_api_player_data.test_get_player_stats_by_date
        • test.integration.test_api_player_data.test_get_player_stats_by_week
        • test.integration.test_api_player_data.test_get_player_stats_for_season
      • test.integration.test_api_team_data
        • test.integration.test_api_team_data.test_get_team_draft_results
        • test.integration.test_api_team_data.test_get_team_info
        • test.integration.test_api_team_data.test_get_team_matchups
        • test.integration.test_api_team_data.test_get_team_metadata
        • test.integration.test_api_team_data.test_get_team_roster_by_week
        • test.integration.test_api_team_data.test_get_team_roster_player_info_by_date
        • test.integration.test_api_team_data.test_get_team_roster_player_info_by_week
        • test.integration.test_api_team_data.test_get_team_roster_player_stats
        • test.integration.test_api_team_data.test_get_team_roster_player_stats_by_week
        • test.integration.test_api_team_data.test_get_team_standings
        • test.integration.test_api_team_data.test_get_team_stats
        • test.integration.test_api_team_data.test_get_team_stats_by_week
      • test.integration.test_api_user_data
        • test.integration.test_api_user_data.test_get_current_user
        • test.integration.test_api_user_data.test_get_user_games
        • test.integration.test_api_user_data.test_get_user_leagues_by_game_id
        • test.integration.test_api_user_data.test_get_user_teams
    • test.unit
      • test.unit.conftest
      • test.unit.test_utils
        • test.unit.test_utils.test_complex_json_handler
        • test.unit.test_utils.test_convert_strings_to_numeric_equivalents
        • test.unit.test_utils.test_dict_to_list
        • test.unit.test_utils.test_flatten_json_dict_list
        • test.unit.test_utils.test_flatten_to_list
        • test.unit.test_utils.test_flatten_to_objects
        • test.unit.test_utils.test_get_type
        • test.unit.test_utils.test_prettify_data
        • test.unit.test_utils.test_reformat_json_list
        • test.unit.test_utils.test_reorganize_json_dict
        • test.unit.test_utils.test_unpack_data
  • YFPY - Yahoo Fantasy Sports API Wrapper
    • Table of Contents
    • About
    • Installation
      • Pip
      • Manual
    • Setup
      • Yahoo Developer Network App
    • Usage
      • Authentication
      • Querying the Yahoo Fantasy Sports API
    • Testing
      • Unit
      • Integration
      • Running
    • Dependencies
      • Platform
      • Python
      • Development
    • Troubleshooting
      • Yahoo Fantasy Sports API
  • Quickstart
  • Package
    • yfpy.data
      • yfpy.data.Data
    • yfpy.exceptions
      • yfpy.exceptions.YahooFantasySportsDataNotFound
      • yfpy.exceptions.YahooFantasySportsException
    • yfpy.logger
      • yfpy.logger.get_logger
    • yfpy.models
      • yfpy.models.Bonus
      • yfpy.models.ByeWeeks
      • yfpy.models.Division
      • yfpy.models.DivisionalOutcomeTotals
      • yfpy.models.DraftAnalysis
      • yfpy.models.DraftResult
      • yfpy.models.Game
      • yfpy.models.GameWeek
      • yfpy.models.Headshot
      • yfpy.models.League
      • yfpy.models.Manager
      • yfpy.models.Matchup
      • yfpy.models.MatchupGrade
      • yfpy.models.Name
      • yfpy.models.OutcomeTotals
      • yfpy.models.Ownership
      • yfpy.models.PercentOwned
      • yfpy.models.Player
      • yfpy.models.PlayerPoints
      • yfpy.models.PlayerStats
      • yfpy.models.PositionType
      • yfpy.models.Roster
      • yfpy.models.RosterAdds
      • yfpy.models.RosterPosition
      • yfpy.models.Scoreboard
      • yfpy.models.SelectedPosition
      • yfpy.models.Settings
      • yfpy.models.Standings
      • yfpy.models.Stat
      • yfpy.models.StatCategories
      • yfpy.models.StatModifiers
      • yfpy.models.StatPositionType
      • yfpy.models.Streak
      • yfpy.models.Team
      • yfpy.models.TeamLogo
      • yfpy.models.TeamPoints
      • yfpy.models.TeamProjectedPoints
      • yfpy.models.TeamStandings
      • yfpy.models.Transaction
      • yfpy.models.TransactionData
      • yfpy.models.User
      • yfpy.models.YahooFantasyObject
    • yfpy.query
      • yfpy.query.YahooFantasySportsQuery
    • yfpy.utils
      • yfpy.utils.complex_json_handler
      • yfpy.utils.convert_strings_to_numeric_equivalents
      • yfpy.utils.dict_to_list
      • yfpy.utils.flatten_json_dict_list
      • yfpy.utils.flatten_to_list
      • yfpy.utils.flatten_to_objects
      • yfpy.utils.get_type
      • yfpy.utils.jsonify_data
      • yfpy.utils.jsonify_data_to_file
      • yfpy.utils.prettify_data
      • yfpy.utils.reformat_json_list
      • yfpy.utils.reorganize_json_dict
      • yfpy.utils.unpack_data
  • Tests
    • test.conftest
      • test.conftest.show_log_output
    • test.integration
      • test.integration.conftest
        • test.integration.conftest.auth_dir
        • test.integration.conftest.browser_callback
        • test.integration.conftest.chosen_date
        • test.integration.conftest.chosen_week
        • test.integration.conftest.data_dir
        • test.integration.conftest.game_code
        • test.integration.conftest.game_id
        • test.integration.conftest.game_key
        • test.integration.conftest.league_id
        • test.integration.conftest.league_player_limit
        • test.integration.conftest.player_id
        • test.integration.conftest.player_key
        • test.integration.conftest.season
        • test.integration.conftest.team_id
        • test.integration.conftest.team_name
        • test.integration.conftest.yahoo_data
        • test.integration.conftest.yahoo_query
      • test.integration.test_api_game_data
        • test.integration.test_api_game_data.test_get_all_yahoo_fantasy_game_keys
        • test.integration.test_api_game_data.test_get_current_game_info
        • test.integration.test_api_game_data.test_get_current_game_metadata
        • test.integration.test_api_game_data.test_get_game_info_by_game_id
        • test.integration.test_api_game_data.test_get_game_key_by_season
        • test.integration.test_api_game_data.test_get_game_metadata_by_game_id
        • test.integration.test_api_game_data.test_get_game_position_types_by_game_id
        • test.integration.test_api_game_data.test_get_game_roster_positions_by_game_id
        • test.integration.test_api_game_data.test_get_game_stat_categories_by_game_id
        • test.integration.test_api_game_data.test_get_game_weeks_by_game_id
        • test.integration.test_api_game_data.test_get_league_key
      • test.integration.test_api_league_data
        • test.integration.test_api_league_data.test_get_league_draft_results
        • test.integration.test_api_league_data.test_get_league_info
        • test.integration.test_api_league_data.test_get_league_matchups_by_week
        • test.integration.test_api_league_data.test_get_league_metadata
        • test.integration.test_api_league_data.test_get_league_players
        • test.integration.test_api_league_data.test_get_league_players_with_limit
        • test.integration.test_api_league_data.test_get_league_scoreboard_by_week
        • test.integration.test_api_league_data.test_get_league_settings
        • test.integration.test_api_league_data.test_get_league_standings
        • test.integration.test_api_league_data.test_get_league_teams
        • test.integration.test_api_league_data.test_get_league_transactions
      • test.integration.test_api_player_data
        • test.integration.test_api_player_data.test_get_player_draft_analysis
        • test.integration.test_api_player_data.test_get_player_ownership
        • test.integration.test_api_player_data.test_get_player_percent_owned_by_week
        • test.integration.test_api_player_data.test_get_player_stats_by_date
        • test.integration.test_api_player_data.test_get_player_stats_by_week
        • test.integration.test_api_player_data.test_get_player_stats_for_season
      • test.integration.test_api_team_data
        • test.integration.test_api_team_data.test_get_team_draft_results
        • test.integration.test_api_team_data.test_get_team_info
        • test.integration.test_api_team_data.test_get_team_matchups
        • test.integration.test_api_team_data.test_get_team_metadata
        • test.integration.test_api_team_data.test_get_team_roster_by_week
        • test.integration.test_api_team_data.test_get_team_roster_player_info_by_date
        • test.integration.test_api_team_data.test_get_team_roster_player_info_by_week
        • test.integration.test_api_team_data.test_get_team_roster_player_stats
        • test.integration.test_api_team_data.test_get_team_roster_player_stats_by_week
        • test.integration.test_api_team_data.test_get_team_standings
        • test.integration.test_api_team_data.test_get_team_stats
        • test.integration.test_api_team_data.test_get_team_stats_by_week
      • test.integration.test_api_user_data
        • test.integration.test_api_user_data.test_get_current_user
        • test.integration.test_api_user_data.test_get_user_games
        • test.integration.test_api_user_data.test_get_user_leagues_by_game_id
        • test.integration.test_api_user_data.test_get_user_teams
    • test.unit
      • test.unit.conftest
      • test.unit.test_utils
        • test.unit.test_utils.test_complex_json_handler
        • test.unit.test_utils.test_convert_strings_to_numeric_equivalents
        • test.unit.test_utils.test_dict_to_list
        • test.unit.test_utils.test_flatten_json_dict_list
        • test.unit.test_utils.test_flatten_to_list
        • test.unit.test_utils.test_flatten_to_objects
        • test.unit.test_utils.test_get_type
        • test.unit.test_utils.test_prettify_data
        • test.unit.test_utils.test_reformat_json_list
        • test.unit.test_utils.test_reorganize_json_dict
        • test.unit.test_utils.test_unpack_data
YFPY
  • »
  • yfpy »
  • yfpy.models »
  • yfpy.models.TeamLogo
Previous Next

yfpy.models.TeamLogo

class TeamLogo(extracted_data)[source]

Bases: yfpy.models.YahooFantasyObject

Model class for “team_logo” data key.

Instantiate the TeamLogo child class of YahooFantasyObject.

Parameters

extracted_data (dict) – Parsed and cleaned JSON data retrieved from the Yahoo Fantasy Sports REST API.

size

The size of the team logo photo (“small”, “large”, etc.)

Type

str

url

The direct URL of the team logo photo.

Type

str

Methods

clean_data_dict

Recursive method to un-type custom class type objects for serialization.

from_json

Deserialize JSON to a class object.

serialized

Pack up all object content into nested dictionaries for JSON serialization.

subclass_dict

Derive snake case dictionary keys from custom object type camel case class names.

to_json

Serialize the class object to JSON.

clean_data_dict()

Recursive method to un-type custom class type objects for serialization.

Returns

Dictionary that extracts serializable data from custom objects.

Return type

dict

classmethod from_json(json_data)

Deserialize JSON to a class object.

Returns

Class object derived from JSON data.

Return type

object

serialized()

Pack up all object content into nested dictionaries for JSON serialization.

Returns

Serializable dictionary.

Return type

dict

subclass_dict()

Derive snake case dictionary keys from custom object type camel case class names.

Returns

Dictionary with snake case strings of all subclasses of YahooFantasyObject as keys and subclasses as values.

Return type

dict

to_json()

Serialize the class object to JSON.

Returns

JSON string derived from the serializable version of the class object.

Return type

str

Previous Next

© Copyright 2022, Wren J. R. (uberfastman).

Built with Sphinx using a theme provided by Read the Docs.