pyteamsnap package
Subpackages
- pyteamsnap.models package
- Module contents
Availability
AvailabilityStatusCode
AvailabilitySummary
AvailabilitySummary.event_id
AvailabilitySummary.going_count
AvailabilitySummary.maybe_count
AvailabilitySummary.not_going_count
AvailabilitySummary.player_going_count
AvailabilitySummary.player_maybe_count
AvailabilitySummary.player_not_going_count
AvailabilitySummary.player_unknown_count
AvailabilitySummary.rel
AvailabilitySummary.team_id
AvailabilitySummary.type
AvailabilitySummary.unknown_count
AvailabilitySummary.version
Event
Event.additional_location_details
Event.arrival_date
Event.created_at
Event.division_location_id
Event.doesnt_count_towards_record
Event.duration_in_minutes
Event.end_date
Event.formatted_results
Event.formatted_title
Event.formatted_title_for_multi_team
Event.game_type
Event.game_type_code
Event.icon_color
Event.is_canceled
Event.is_game
Event.is_league_controlled
Event.is_overtime
Event.is_shootout
Event.is_tbd
Event.label
Event.location_id
Event.location_name
Event.minutes_to_arrive_early
Event.name
Event.notes
Event.opponent_id
Event.opponent_name
Event.points_for_opponent
Event.points_for_team
Event.rel
Event.repeating_type
Event.repeating_type_code
Event.repeating_uuid
Event.results
Event.results_url
Event.shootout_points_for_opponent
Event.shootout_points_for_team
Event.source_time_zone_iana_name
Event.start_date
Event.team_id
Event.time_zone
Event.time_zone_description
Event.time_zone_iana_name
Event.time_zone_offset
Event.tracks_availability
Event.type
Event.uniform
Event.updated_at
Event.version
EventLineup
EventLineupEntry
EventLineupEntry.availability_status_code
EventLineupEntry.event_id
EventLineupEntry.event_lineup_id
EventLineupEntry.label
EventLineupEntry.member_id
EventLineupEntry.member_name
EventLineupEntry.member_photo
EventLineupEntry.rel
EventLineupEntry.search()
EventLineupEntry.sequence
EventLineupEntry.type
EventLineupEntry.version
Location
Me
Member
Member.address_city
Member.address_state
Member.address_street1
Member.address_street2
Member.address_zip
Member.birthday
Member.first_name
Member.gender
Member.hide_address
Member.hide_age
Member.is_address_hidden
Member.is_age_hidden
Member.is_manager
Member.is_non_player
Member.is_ownership_pending
Member.jersey_number
Member.last_name
Member.position
Member.rel
Member.source_action
Member.team_id
Member.type
Member.version
MemberStatistics
MemberStatistics.average
MemberStatistics.average_ranking
MemberStatistics.average_ranking_for_query
MemberStatistics.count_games_played
MemberStatistics.id
MemberStatistics.member_id
MemberStatistics.rel
MemberStatistics.statistic_id
MemberStatistics.team_id
MemberStatistics.total
MemberStatistics.total_ranking
MemberStatistics.total_ranking_for_query
MemberStatistics.type
Opponent
Statistics
Statistics.acronym
Statistics.always_display_decimals
Statistics.display_zero_totals
Statistics.formula
Statistics.is_in_descending_order
Statistics.is_percentage
Statistics.is_private
Statistics.is_team_statistic
Statistics.is_top_statistic
Statistics.name
Statistics.precision
Statistics.rel
Statistics.statistic_group_id
Statistics.team_id
Statistics.type
Statistics.version
Team
Team.ad_unit_hero_id
Team.ad_unit_hero_template_id
Team.ad_unit_inline_id
Team.division_id
Team.division_name
Team.is_ownership_pending
Team.league_name
Team.league_url
Team.location_country
Team.location_postal_code
Team.name
Team.owner_email
Team.owner_first_name
Team.owner_last_name
Team.rel
Team.season_name
Team.sport_id
Team.team
Team.time_zone
Team.type
Team.version
User
- Module contents
Submodules
pyteamsnap.client module
- class pyteamsnap.client.TeamSnap(token: str, *args, **kwargs)
Bases:
APIClient
A client to access the TeamSnap API
The TeamSnap API is a hypermedia JSON API, using Collection+JSON.
- base_url: str = 'https://api.teamsnap.com/v3'
- bulk_load(team_id, types: List[BaseTeamsnapObject], **kwargs) List[TTeamSnap]
- Parameters
team_id –
types – List of items to fetch, in the form of BaseTeamsnapObject classes
kwargs – Additional filters passed into requested types by passing them in the url’s querystring as type__filter=value (i.e. ?event__start_date=2015-01-01). Any filter can be passed that is available on the search for the specified type.
- Returns
Heterogeneous collection of the specified types for a specified team or teams.
- command(rel, command: str, **kwargs) list
- delete_item(rel, id: Union[int, str]) None
- get_item(rel: str, id: Union[int, str]) dict
- link(link_name)
- post_item(rel: str, data: dict) dict
- put_item(rel, id: Union[int, str], data: dict) dict
- query(rel, query: str, **kwargs) list
Module contents
Top-level package for pyteamsnap.