pychpp 0.4.7__tar.gz → 0.4.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. {pychpp-0.4.7 → pychpp-0.4.9}/PKG-INFO +59 -49
  2. {pychpp-0.4.7 → pychpp-0.4.9}/README.md +58 -48
  3. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/chpp.py +101 -1
  4. pychpp-0.4.9/pychpp/models/xml/tournament_details.py +46 -0
  5. pychpp-0.4.9/pychpp/models/xml/tournament_fixtures.py +46 -0
  6. pychpp-0.4.9/pychpp/models/xml/tournament_league_tables.py +54 -0
  7. pychpp-0.4.9/pychpp/models/xml/tournament_list.py +50 -0
  8. pychpp-0.4.9/pychpp/models/xml/training_events.py +46 -0
  9. pychpp-0.4.9/pychpp/models/xml/transfer_search.py +111 -0
  10. pychpp-0.4.9/pychpp/models/xml/transfers_player.py +56 -0
  11. pychpp-0.4.9/pychpp/models/xml/world_languages.py +27 -0
  12. pychpp-0.4.9/pychpp/models/xml/youth_avatars.py +50 -0
  13. pychpp-0.4.9/pychpp/models/xml/youth_league_details.py +45 -0
  14. {pychpp-0.4.7 → pychpp-0.4.9}/pyproject.toml +1 -1
  15. {pychpp-0.4.7 → pychpp-0.4.9}/LICENSE +0 -0
  16. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/__init__.py +0 -0
  17. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/fixtures/__init__.py +0 -0
  18. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/fixtures/ht_datetime.py +0 -0
  19. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/fixtures/ht_error.py +0 -0
  20. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/__init__.py +0 -0
  21. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/__init__.py +0 -0
  22. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/base/__init__.py +0 -0
  23. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/base/ht_arena.py +0 -0
  24. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/base/ht_country.py +0 -0
  25. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/base/ht_league.py +0 -0
  26. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/base/ht_league_unit.py +0 -0
  27. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/base/ht_match.py +0 -0
  28. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/base/ht_player.py +0 -0
  29. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/base/ht_region.py +0 -0
  30. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/base/ht_team.py +0 -0
  31. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/base/ht_user.py +0 -0
  32. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_arena.py +0 -0
  33. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_challenge.py +0 -0
  34. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_league.py +0 -0
  35. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_league_unit.py +0 -0
  36. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_match.py +0 -0
  37. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_match_lineup.py +0 -0
  38. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_matches_archive.py +0 -0
  39. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_player.py +0 -0
  40. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_region.py +0 -0
  41. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_team.py +0 -0
  42. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_transfer_history.py +0 -0
  43. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_user.py +0 -0
  44. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_youth_player.py +0 -0
  45. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/custom/ht_youth_team.py +0 -0
  46. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/ht_field.py +0 -0
  47. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/ht_init_var.py +0 -0
  48. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/ht_model.py +0 -0
  49. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/ht_version.py +0 -0
  50. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/ht_xml.py +0 -0
  51. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/__init__.py +0 -0
  52. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/achievements.py +0 -0
  53. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/alliance_details.py +0 -0
  54. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/alliances.py +0 -0
  55. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/arena_details.py +0 -0
  56. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/avatars.py +0 -0
  57. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/bookmarks.py +0 -0
  58. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/challenges.py +0 -0
  59. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/club.py +0 -0
  60. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/cup_matches.py +0 -0
  61. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/current_bids.py +0 -0
  62. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/economy.py +0 -0
  63. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/fans.py +0 -0
  64. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/hof_players.py +0 -0
  65. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/ladder_details.py +0 -0
  66. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/ladder_list.py +0 -0
  67. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/league_details.py +0 -0
  68. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/league_fixtures.py +0 -0
  69. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/league_levels.py +0 -0
  70. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/live.py +0 -0
  71. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/manager_compendium.py +0 -0
  72. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/match_details.py +0 -0
  73. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/match_lineup.py +0 -0
  74. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/match_orders.py +0 -0
  75. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/matches.py +0 -0
  76. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/matches_archive.py +0 -0
  77. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/national_players.py +0 -0
  78. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/national_team_details.py +0 -0
  79. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/national_team_matches.py +0 -0
  80. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/national_teams.py +0 -0
  81. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/player_details.py +0 -0
  82. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/player_events.py +0 -0
  83. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/players.py +0 -0
  84. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/region_details.py +0 -0
  85. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/search.py +0 -0
  86. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/staff_avatars.py +0 -0
  87. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/staff_list.py +0 -0
  88. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/supporters.py +0 -0
  89. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/team_details.py +0 -0
  90. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/training.py +0 -0
  91. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/transfers_team.py +0 -0
  92. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/world_cup.py +0 -0
  93. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/world_details.py +0 -0
  94. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/youth_player_details.py +0 -0
  95. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/youth_player_list.py +0 -0
  96. {pychpp-0.4.7 → pychpp-0.4.9}/pychpp/models/xml/youth_team_details.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pychpp
3
- Version: 0.4.7
3
+ Version: 0.4.9
4
4
  Summary: framework created to use the API provided by the online game Hattrick
5
5
  Home-page: https://framagit.org/Pierre86/pychpp
6
6
  License: Apache-2.0
@@ -165,57 +165,67 @@ Then, to use this new class:
165
165
  In this way, only the data you're really interested in is parsed, which can in some cases be interesting from a performance point of view.
166
166
 
167
167
  ## List of supported CHPP XML files
168
- ![45/57](https://progress-bar.xyz/79/?title=45%20on%2057)
168
+ ![55/57](https://progress-bar.xyz/96/?title=55%20on%2057)
169
169
 
170
170
  The following table shows the CHPP XML files that are currently supported:
171
171
 
172
- | pyCHPP class | CHPP XML files |
173
- |:-------------------:|:-------------------------:|
174
- | Achievements | `achievements.xml` |
175
- | Alliances | `alliances.xml` |
176
- | AllianceDetails | `alliancedetails.xml` |
177
- | Arena | `arenadetails.xml` |
178
- | Avatars | `avatars.xml` |
179
- | Bookmarks | `bookmarks.xml` |
180
- | Challenges | `challenges.xml` |
181
- | Club | `club.xml` |
182
- | CupMatches | `cupmatches.xml` |
183
- | CurrentBids | `currentbids.xml` |
184
- | Economy | `economy.xml` |
185
- | Fans | `fans.xml` |
186
- | HallOfFamePlayers | `hofplayers.xml` |
187
- | LadderDetails | `ladderdetails.xml` |
188
- | LadderList | `ladderlist.xml` |
189
- | LeagueDetails | `leaguedetails.xml` |
190
- | LeagueFixtures | `leaguefixtures.xml` |
191
- | LeagueLevels | `leaguelevels.xml` |
192
- | Live | `live.xml` |
193
- | ManagerCompendium | `managercompendium.xml` |
194
- | MatchDetails | `matchdetails.xml` |
195
- | MatchLineup | `matchlineup.xml` |
196
- | MatchOrders | `matchorders.xml` |
197
- | MatchesArchive | `matchesarchive.xml` |
198
- | Matches | `matches.xml` |
199
- | NationalTeamDetails | `nationalteamdetails.xml` |
200
- | NationalTeamMatches | `nationalteammatches.xml` |
201
- | NationalTeams | `nationalteams.xml` |
202
- | NationalPlayers | `nationalplayers.xml` |
203
- | PlayerDetails | `playerdetails.xml` |
204
- | PlayerEvents | `playerevents.xml` |
205
- | Players | `players.xml` |
206
- | RegionDetails | `regiondetails.xml` |
207
- | Search | `search.xml` |
208
- | StaffAvatars | `staffavatars.xml` |
209
- | StaffList | `stafflist.xml` |
210
- | Supporters | `supporters.xml` |
211
- | TeamDetails | `teamdetails.xml` |
212
- | Training | `training.xml` |
213
- | TransfersTeam | `transfersteam.xml` |
214
- | WorldCup | `worldcup.xml` |
215
- | WorldDetails | `worlddetails.xml` |
216
- | YouthPlayerDetails | `youthplayerdetails.xml` |
217
- | YouthPlayerList | `youthplayerlist.xml` |
218
- | YouthTeamDetails | `youthteamdetails.xml` |
172
+ | pyCHPP class | CHPP XML files |
173
+ |:----------------------:|:----------------------------:|
174
+ | Achievements | `achievements.xml` |
175
+ | Alliances | `alliances.xml` |
176
+ | AllianceDetails | `alliancedetails.xml` |
177
+ | Arena | `arenadetails.xml` |
178
+ | Avatars | `avatars.xml` |
179
+ | Bookmarks | `bookmarks.xml` |
180
+ | Challenges | `challenges.xml` |
181
+ | Club | `club.xml` |
182
+ | CupMatches | `cupmatches.xml` |
183
+ | CurrentBids | `currentbids.xml` |
184
+ | Economy | `economy.xml` |
185
+ | Fans | `fans.xml` |
186
+ | HallOfFamePlayers | `hofplayers.xml` |
187
+ | LadderDetails | `ladderdetails.xml` |
188
+ | LadderList | `ladderlist.xml` |
189
+ | LeagueDetails | `leaguedetails.xml` |
190
+ | LeagueFixtures | `leaguefixtures.xml` |
191
+ | LeagueLevels | `leaguelevels.xml` |
192
+ | Live | `live.xml` |
193
+ | ManagerCompendium | `managercompendium.xml` |
194
+ | MatchDetails | `matchdetails.xml` |
195
+ | MatchLineup | `matchlineup.xml` |
196
+ | MatchOrders | `matchorders.xml` |
197
+ | MatchesArchive | `matchesarchive.xml` |
198
+ | Matches | `matches.xml` |
199
+ | NationalTeamDetails | `nationalteamdetails.xml` |
200
+ | NationalTeamMatches | `nationalteammatches.xml` |
201
+ | NationalTeams | `nationalteams.xml` |
202
+ | NationalPlayers | `nationalplayers.xml` |
203
+ | PlayerDetails | `playerdetails.xml` |
204
+ | PlayerEvents | `playerevents.xml` |
205
+ | Players | `players.xml` |
206
+ | RegionDetails | `regiondetails.xml` |
207
+ | Search | `search.xml` |
208
+ | StaffAvatars | `staffavatars.xml` |
209
+ | StaffList | `stafflist.xml` |
210
+ | Supporters | `supporters.xml` |
211
+ | TeamDetails | `teamdetails.xml` |
212
+ | TournamentDetails | `tournamentdetails.xml` |
213
+ | TournamentFixtures | `tournamentfixtures.xml` |
214
+ | TournamentLeagueTables | `tournamentleaguetables.xml` |
215
+ | TournamentList | `tournamentlist.xml` |
216
+ | Training | `training.xml` |
217
+ | TrainingEvents | `trainingevents.xml` |
218
+ | TransferSearch | `transfersearch.xml` |
219
+ | TransfersPlayer | `transfersplayer.xml` |
220
+ | TransfersTeam | `transfersteam.xml` |
221
+ | WorldCup | `worldcup.xml` |
222
+ | WorldDetails | `worlddetails.xml` |
223
+ | WorldLanguages | `worldlanguages.xml` |
224
+ | YouthAvatars | `youthavatars.xml` |
225
+ | YouthLeagueDetails | `youthleaguedetails.xml` |
226
+ | YouthPlayerDetails | `youthplayerdetails.xml` |
227
+ | YouthPlayerList | `youthplayerlist.xml` |
228
+ | YouthTeamDetails | `youthteamdetails.xml` |
219
229
 
220
230
  ## License
221
231
  pyCHPP is licensed under the Apache License 2.0.
@@ -143,57 +143,67 @@ Then, to use this new class:
143
143
  In this way, only the data you're really interested in is parsed, which can in some cases be interesting from a performance point of view.
144
144
 
145
145
  ## List of supported CHPP XML files
146
- ![45/57](https://progress-bar.xyz/79/?title=45%20on%2057)
146
+ ![55/57](https://progress-bar.xyz/96/?title=55%20on%2057)
147
147
 
148
148
  The following table shows the CHPP XML files that are currently supported:
149
149
 
150
- | pyCHPP class | CHPP XML files |
151
- |:-------------------:|:-------------------------:|
152
- | Achievements | `achievements.xml` |
153
- | Alliances | `alliances.xml` |
154
- | AllianceDetails | `alliancedetails.xml` |
155
- | Arena | `arenadetails.xml` |
156
- | Avatars | `avatars.xml` |
157
- | Bookmarks | `bookmarks.xml` |
158
- | Challenges | `challenges.xml` |
159
- | Club | `club.xml` |
160
- | CupMatches | `cupmatches.xml` |
161
- | CurrentBids | `currentbids.xml` |
162
- | Economy | `economy.xml` |
163
- | Fans | `fans.xml` |
164
- | HallOfFamePlayers | `hofplayers.xml` |
165
- | LadderDetails | `ladderdetails.xml` |
166
- | LadderList | `ladderlist.xml` |
167
- | LeagueDetails | `leaguedetails.xml` |
168
- | LeagueFixtures | `leaguefixtures.xml` |
169
- | LeagueLevels | `leaguelevels.xml` |
170
- | Live | `live.xml` |
171
- | ManagerCompendium | `managercompendium.xml` |
172
- | MatchDetails | `matchdetails.xml` |
173
- | MatchLineup | `matchlineup.xml` |
174
- | MatchOrders | `matchorders.xml` |
175
- | MatchesArchive | `matchesarchive.xml` |
176
- | Matches | `matches.xml` |
177
- | NationalTeamDetails | `nationalteamdetails.xml` |
178
- | NationalTeamMatches | `nationalteammatches.xml` |
179
- | NationalTeams | `nationalteams.xml` |
180
- | NationalPlayers | `nationalplayers.xml` |
181
- | PlayerDetails | `playerdetails.xml` |
182
- | PlayerEvents | `playerevents.xml` |
183
- | Players | `players.xml` |
184
- | RegionDetails | `regiondetails.xml` |
185
- | Search | `search.xml` |
186
- | StaffAvatars | `staffavatars.xml` |
187
- | StaffList | `stafflist.xml` |
188
- | Supporters | `supporters.xml` |
189
- | TeamDetails | `teamdetails.xml` |
190
- | Training | `training.xml` |
191
- | TransfersTeam | `transfersteam.xml` |
192
- | WorldCup | `worldcup.xml` |
193
- | WorldDetails | `worlddetails.xml` |
194
- | YouthPlayerDetails | `youthplayerdetails.xml` |
195
- | YouthPlayerList | `youthplayerlist.xml` |
196
- | YouthTeamDetails | `youthteamdetails.xml` |
150
+ | pyCHPP class | CHPP XML files |
151
+ |:----------------------:|:----------------------------:|
152
+ | Achievements | `achievements.xml` |
153
+ | Alliances | `alliances.xml` |
154
+ | AllianceDetails | `alliancedetails.xml` |
155
+ | Arena | `arenadetails.xml` |
156
+ | Avatars | `avatars.xml` |
157
+ | Bookmarks | `bookmarks.xml` |
158
+ | Challenges | `challenges.xml` |
159
+ | Club | `club.xml` |
160
+ | CupMatches | `cupmatches.xml` |
161
+ | CurrentBids | `currentbids.xml` |
162
+ | Economy | `economy.xml` |
163
+ | Fans | `fans.xml` |
164
+ | HallOfFamePlayers | `hofplayers.xml` |
165
+ | LadderDetails | `ladderdetails.xml` |
166
+ | LadderList | `ladderlist.xml` |
167
+ | LeagueDetails | `leaguedetails.xml` |
168
+ | LeagueFixtures | `leaguefixtures.xml` |
169
+ | LeagueLevels | `leaguelevels.xml` |
170
+ | Live | `live.xml` |
171
+ | ManagerCompendium | `managercompendium.xml` |
172
+ | MatchDetails | `matchdetails.xml` |
173
+ | MatchLineup | `matchlineup.xml` |
174
+ | MatchOrders | `matchorders.xml` |
175
+ | MatchesArchive | `matchesarchive.xml` |
176
+ | Matches | `matches.xml` |
177
+ | NationalTeamDetails | `nationalteamdetails.xml` |
178
+ | NationalTeamMatches | `nationalteammatches.xml` |
179
+ | NationalTeams | `nationalteams.xml` |
180
+ | NationalPlayers | `nationalplayers.xml` |
181
+ | PlayerDetails | `playerdetails.xml` |
182
+ | PlayerEvents | `playerevents.xml` |
183
+ | Players | `players.xml` |
184
+ | RegionDetails | `regiondetails.xml` |
185
+ | Search | `search.xml` |
186
+ | StaffAvatars | `staffavatars.xml` |
187
+ | StaffList | `stafflist.xml` |
188
+ | Supporters | `supporters.xml` |
189
+ | TeamDetails | `teamdetails.xml` |
190
+ | TournamentDetails | `tournamentdetails.xml` |
191
+ | TournamentFixtures | `tournamentfixtures.xml` |
192
+ | TournamentLeagueTables | `tournamentleaguetables.xml` |
193
+ | TournamentList | `tournamentlist.xml` |
194
+ | Training | `training.xml` |
195
+ | TrainingEvents | `trainingevents.xml` |
196
+ | TransferSearch | `transfersearch.xml` |
197
+ | TransfersPlayer | `transfersplayer.xml` |
198
+ | TransfersTeam | `transfersteam.xml` |
199
+ | WorldCup | `worldcup.xml` |
200
+ | WorldDetails | `worlddetails.xml` |
201
+ | WorldLanguages | `worldlanguages.xml` |
202
+ | YouthAvatars | `youthavatars.xml` |
203
+ | YouthLeagueDetails | `youthleaguedetails.xml` |
204
+ | YouthPlayerDetails | `youthplayerdetails.xml` |
205
+ | YouthPlayerList | `youthplayerlist.xml` |
206
+ | YouthTeamDetails | `youthteamdetails.xml` |
197
207
 
198
208
  ## License
199
209
  pyCHPP is licensed under the Apache License 2.0.
@@ -15,7 +15,10 @@ from pychpp.models.xml import (manager_compendium, team_details, achievements, a
15
15
  alliance_details, avatars, bookmarks, club, current_bids, economy,
16
16
  fans, hof_players, ladder_details, ladder_list, league_levels, live,
17
17
  matches, match_orders, national_team_matches, national_players,
18
- player_events, search, staff_avatars, staff_list, supporters)
18
+ player_events, search, staff_avatars, staff_list, supporters,
19
+ tournament_details, tournament_fixtures, tournament_league_tables,
20
+ tournament_list, training_events, transfer_search, transfers_player,
21
+ world_languages, youth_avatars, youth_league_details)
19
22
  from pychpp.models.custom import (ht_team, ht_arena, ht_user, ht_region, ht_youth_team, ht_player,
20
23
  ht_league_unit, ht_youth_player, ht_league, ht_matches_archive,
21
24
  ht_match, ht_challenge, ht_match_lineup, ht_transfer_history)
@@ -907,6 +910,39 @@ class CHPPXml(CHPPBase):
907
910
  ** kwargs,
908
911
  )
909
912
 
913
+ def xml_tournament_details(
914
+ self, tournament_id: int, season: int = None, **kwargs,
915
+ ) -> tournament_details.TournamentDetails:
916
+
917
+ return tournament_details.TournamentDetails(
918
+ chpp=self, tournament_id=tournament_id, season=season, **kwargs,
919
+ )
920
+
921
+ def xml_tournament_fixtures(
922
+ self, tournament_id: int, season: int = None, **kwargs,
923
+ ) -> tournament_fixtures.TournamentFixtures:
924
+
925
+ return tournament_fixtures.TournamentFixtures(
926
+ chpp=self, tournament_id=tournament_id, season=season, **kwargs,
927
+ )
928
+
929
+ def xml_tournament_league_tables(
930
+ self, tournament_id: int, season: int = None, world_cup_round: int = None, **kwargs,
931
+ ) -> tournament_league_tables.TournamentLeagueTables:
932
+
933
+ return tournament_league_tables.TournamentLeagueTables(
934
+ chpp=self, tournament_id=tournament_id, season=season,
935
+ world_cup_round=world_cup_round, **kwargs,
936
+ )
937
+
938
+ def xml_tournament_list(
939
+ self, team_id: int = None, **kwargs,
940
+ ) -> tournament_list.TournamentList:
941
+
942
+ return tournament_list.TournamentList(
943
+ chpp=self, team_id=team_id, **kwargs,
944
+ )
945
+
910
946
  def xml_training(
911
947
  self, action_type: str = 'view', team_id: int = None,
912
948
  training_type: int = None, training_level: int = None,
@@ -939,6 +975,50 @@ class CHPPXml(CHPPBase):
939
975
  raise ValueError("if set, 'action_type' must be equal to"
940
976
  "'view', 'setTraining' or 'stats'")
941
977
 
978
+ def xml_training_events(
979
+ self, player_id: int, **kwargs,
980
+ ) -> training_events.TrainingEvents:
981
+
982
+ return training_events.TrainingEvents(
983
+ chpp=self, player_id=player_id, **kwargs,
984
+ )
985
+
986
+ def xml_transfer_search(
987
+ self, age_min: int, age_max: int, skill_type_1: int, min_skill_value_1: int,
988
+ max_skill_value_1: int, age_days_min: int = None, age_days_max: int = None,
989
+ skill_type_2: int = None, min_skill_value_2: int = None, max_skill_value_2: int = None,
990
+ skill_type_3: int = None, min_skill_value_3: int = None, max_skill_value_3: int = None,
991
+ skill_type_4: int = None, min_skill_value_4: int = None, max_skill_value_4: int = None,
992
+ specialty: int = None, native_country_id: int = None,
993
+ tsi_min: int = None, tsi_max: int = None, price_min: int = None, price_max: int = None,
994
+ page_size: int = None, page_index: int = None, **kwargs,
995
+ ) -> transfer_search.TransferSearch:
996
+
997
+ return transfer_search.TransferSearch(
998
+ chpp=self,
999
+ age_min=age_min, age_days_min=age_days_min,
1000
+ age_max=age_max, age_days_max=age_days_max,
1001
+ skill_type_1=skill_type_1,
1002
+ min_skill_value_1=min_skill_value_1, max_skill_value_1=max_skill_value_1,
1003
+ skill_type_2=skill_type_2,
1004
+ min_skill_value_2=min_skill_value_2, max_skill_value_2=max_skill_value_2,
1005
+ skill_type_3=skill_type_3,
1006
+ min_skill_value_3=min_skill_value_3, max_skill_value_3=max_skill_value_3,
1007
+ skill_type_4=skill_type_4,
1008
+ min_skill_value_4=min_skill_value_4, max_skill_value_4=max_skill_value_4,
1009
+ specialty=specialty, native_country_id=native_country_id,
1010
+ tsi_min=tsi_min, tsi_max=tsi_max, price_min=price_min, price_max=price_max,
1011
+ page_size=page_size, page_index=page_index, **kwargs,
1012
+ )
1013
+
1014
+ def xml_transfers_player(
1015
+ self, player_id: int, **kwargs,
1016
+ ) -> transfers_player.TransfersPlayer:
1017
+
1018
+ return transfers_player.TransfersPlayer(
1019
+ chpp=self, player_id=player_id, **kwargs,
1020
+ )
1021
+
942
1022
  def xml_transfers_team(
943
1023
  self, team_id: int = None, page_index: int = None, **kwargs,
944
1024
  ) -> transfers_team.TransfersTeam:
@@ -980,6 +1060,26 @@ class CHPPXml(CHPPBase):
980
1060
  league_id=league_id, **kwargs,
981
1061
  )
982
1062
 
1063
+ def xml_world_languages(self, **kwargs) -> world_languages.WorldLanguages:
1064
+
1065
+ return world_languages.WorldLanguages(chpp=self, **kwargs)
1066
+
1067
+ def xml_youth_avatars(
1068
+ self, youth_team_id: int = None, **kwargs,
1069
+ ) -> youth_avatars.YouthAvatars:
1070
+
1071
+ return youth_avatars.YouthAvatars(
1072
+ chpp=self, youth_team_id=youth_team_id, **kwargs,
1073
+ )
1074
+
1075
+ def xml_youth_league_details(
1076
+ self, youth_league_id: int = None, **kwargs,
1077
+ ) -> youth_league_details.YouthLeagueDetails:
1078
+
1079
+ return youth_league_details.YouthLeagueDetails(
1080
+ chpp=self, youth_league_id=youth_league_id, **kwargs,
1081
+ )
1082
+
983
1083
  def xml_youth_player_details(
984
1084
  self, action_type: str = None, youth_player_id: int = None,
985
1085
  show_scout_call: bool = None, show_last_match: bool = None,
@@ -0,0 +1,46 @@
1
+ from datetime import datetime
2
+ from typing import Optional
3
+
4
+ from pychpp.models.ht_field import HTField
5
+ from pychpp.models.ht_init_var import HTInitVar
6
+ from pychpp.models.ht_model import HTModel
7
+
8
+
9
+ class RequestTournamentDetails(HTModel):
10
+ """
11
+ Tournament Details - Request arguments
12
+ """
13
+ SOURCE_FILE = 'tournamentdetails'
14
+ LAST_VERSION = '1.0'
15
+
16
+ _r_tournament_id: int = HTInitVar('tournamentId', init_arg='tournament_id')
17
+ _r_season: Optional[int] = HTInitVar('season', init_arg='season')
18
+
19
+
20
+ class TournamentDetails(RequestTournamentDetails):
21
+ """
22
+ Tournament Details
23
+ """
24
+ XML_PREFIX = 'Tournament/'
25
+
26
+ id: int = HTField('TournamentId')
27
+ name: str = HTField('Name')
28
+ type: int = HTField('TournamentType')
29
+ season: int = HTField('Season')
30
+ logo_url: str = HTField('LogoUrl')
31
+ trophy_type: int = HTField('TrophyType')
32
+ number_of_teams: int = HTField('NumberOfTeams')
33
+ number_of_groups: int = HTField('NumberOfGroups')
34
+ last_match_round: int = HTField('LastMatchRound')
35
+ first_match_round_date: datetime = HTField('FirstMatchRoundDate')
36
+ next_match_round_date: datetime = HTField('NextMatchRoundDate')
37
+ is_matches_ongoing: bool = HTField('IsMatchesOngoing')
38
+ creator: 'Creator' = HTField('Creator')
39
+
40
+
41
+ class Creator(HTModel):
42
+ """
43
+ Tournament Details -> Creator
44
+ """
45
+ id: int = HTField('UserId')
46
+ login_name: str = HTField('Loginname')
@@ -0,0 +1,46 @@
1
+ from datetime import datetime
2
+ from typing import Optional, List
3
+
4
+ from pychpp.models.ht_field import HTField
5
+ from pychpp.models.ht_init_var import HTInitVar
6
+ from pychpp.models.ht_model import HTModel
7
+
8
+
9
+ class RequestTournamentFixtures(HTModel):
10
+ """
11
+ Tournament Fixtures - Request arguments
12
+ """
13
+ SOURCE_FILE = 'tournamentfixtures'
14
+ LAST_VERSION = '1.0'
15
+
16
+ _r_tournament_id: int = HTInitVar('tournamentId', init_arg='tournament_id')
17
+ _r_season: Optional[int] = HTInitVar('season', init_arg='season')
18
+
19
+
20
+ class TournamentFixtures(RequestTournamentFixtures):
21
+ """
22
+ Tournament Fixtures
23
+ """
24
+ matches: List['MatchItem'] = HTField('Matches', items='Match')
25
+
26
+
27
+ class MatchItem(HTModel):
28
+ """
29
+ Tournament Fixtures -> Matches -> Match item
30
+ """
31
+ id: int = HTField('MatchId')
32
+ home_team_id: int = HTField('HomeTeamId')
33
+ home_team_name: str = HTField('HomeTeamName')
34
+ home_short_team_name: str = HTField('HomeShortTeamName')
35
+ away_team_id: int = HTField('AwayTeamId')
36
+ away_team_name: str = HTField('AwayTeamName')
37
+ away_short_team_name: str = HTField('AwayShortTeamName')
38
+ date: datetime = HTField('MatchDate')
39
+ type: int = HTField('MatchType')
40
+ round: int = HTField('MatchRound')
41
+ group: int = HTField('Group')
42
+ status: int = HTField('Status')
43
+ home_goals: int = HTField('HomeGoals')
44
+ away_goals: int = HTField('AwayGoals')
45
+ home_statement: str = HTField('HomeStatement')
46
+ away_statement: str = HTField('AwayStatement')
@@ -0,0 +1,54 @@
1
+ from typing import Optional, List
2
+
3
+ from pychpp.models.ht_field import HTField
4
+ from pychpp.models.ht_init_var import HTInitVar
5
+ from pychpp.models.ht_model import HTModel
6
+
7
+
8
+ class RequestTournamentLeagueTables(HTModel):
9
+ """
10
+ Tournament League Tables - Request arguments
11
+ """
12
+ SOURCE_FILE = 'tournamentleaguetables'
13
+ LAST_VERSION = '1.1'
14
+
15
+ _r_tournament_id: int = HTInitVar('tournamentId', init_arg='tournament_id')
16
+ _r_season: Optional[int] = HTInitVar('season', init_arg='season')
17
+ _r_world_cup_round: Optional[int] = HTInitVar('worldCupRound', init_arg='world_cup_round')
18
+
19
+
20
+ class TournamentLeagueTables(RequestTournamentLeagueTables):
21
+ """
22
+ Tournament League Tables
23
+ """
24
+ id: int = HTField('TournamentId')
25
+ season: int = HTField('Season')
26
+ world_cup_round: Optional[int] = HTField('WorldCupRound')
27
+ tournament_league_tables: List['TableItem'] = HTField('TournamentLeagueTables',
28
+ items='TournamentLeagueTable')
29
+
30
+
31
+ class TableItem(HTModel):
32
+ """
33
+ Tournament League Tables -> Tournament League Tables -> Tournament League Table item
34
+ """
35
+ group_id: int = HTField('GroupId')
36
+ teams: List['TeamItem'] = HTField('Teams', items='Team')
37
+
38
+
39
+ class TeamItem(HTModel):
40
+ """
41
+ Tournament League Tables -> Tournament League Tables -> Tournament League Table item
42
+ -> Teams -> Team item
43
+ """
44
+ id: int = HTField('TeamID')
45
+ name: str = HTField('TeamName')
46
+ position: int = HTField('Position')
47
+ position_change: int = HTField('PositionChange')
48
+ matches: int = HTField('Matches')
49
+ goals_for: int = HTField('GoalsFor')
50
+ goals_against: int = HTField('GoalsAgainst')
51
+ points: int = HTField('Points')
52
+ won: int = HTField('Won')
53
+ draws: int = HTField('Draws')
54
+ lost: int = HTField('Lost')
@@ -0,0 +1,50 @@
1
+ from datetime import datetime
2
+ from typing import List, Optional
3
+
4
+ from pychpp.models.ht_field import HTField
5
+ from pychpp.models.ht_init_var import HTInitVar
6
+ from pychpp.models.ht_model import HTModel
7
+
8
+
9
+ class RequestTournamentList(HTModel):
10
+ """
11
+ Tournament List - Request arguments
12
+ """
13
+ SOURCE_FILE = 'tournamentlist'
14
+ LAST_VERSION = '1.0'
15
+
16
+ _r_team_id: Optional[int] = HTInitVar('teamId', init_arg='team_id')
17
+
18
+
19
+ class TournamentList(RequestTournamentList):
20
+ """
21
+ Tournament List
22
+ """
23
+ tournaments: List['TournamentItem'] = HTField('Tournaments', items='Tournament')
24
+
25
+
26
+ class TournamentItem(HTModel):
27
+ """
28
+ Tournament List -> Tournaments -> Tournament item
29
+ """
30
+ id: int = HTField('TournamentId')
31
+ name: str = HTField('Name')
32
+ type: int = HTField('TournamentType')
33
+ season: int = HTField('Season')
34
+ logo_url: str = HTField('LogoUrl')
35
+ trophy_type: int = HTField('TrophyType')
36
+ number_of_teams: int = HTField('NumberOfTeams')
37
+ number_of_groups: int = HTField('NumberOfGroups')
38
+ last_match_round: int = HTField('LastMatchRound')
39
+ first_match_round_date: datetime = HTField('FirstMatchRoundDate')
40
+ next_match_round_date: datetime = HTField('NextMatchRoundDate')
41
+ is_matches_ongoing: bool = HTField('IsMatchesOngoing')
42
+ creator: 'Creator' = HTField('Creator')
43
+
44
+
45
+ class Creator(HTModel):
46
+ """
47
+ Tournament Details -> Creator
48
+ """
49
+ id: int = HTField('UserId')
50
+ login_name: str = HTField('Loginname')
@@ -0,0 +1,46 @@
1
+ from typing import List
2
+
3
+ from pychpp.models.ht_field import HTField
4
+ from pychpp.models.ht_init_var import HTInitVar
5
+ from pychpp.models.ht_model import HTModel
6
+
7
+
8
+ class RequestTrainingEvents(HTModel):
9
+ """
10
+ Training Events - Request arguments
11
+ """
12
+ SOURCE_FILE = 'trainingevents'
13
+ LAST_VERSION = '1.3'
14
+
15
+ _r_player_id: int = HTInitVar('playerID', init_arg='player_id')
16
+
17
+
18
+ class TrainingEvents(RequestTrainingEvents):
19
+ """
20
+ Training Events
21
+ """
22
+ user_supporter_tier: str = HTField('UserSupporterTier')
23
+ player: 'Player' = HTField('Player')
24
+
25
+
26
+ class Player(HTModel):
27
+ """
28
+ Training Events -> Player
29
+ """
30
+ id: int = HTField('PlayerID')
31
+ training_events_available: bool = HTField('TrainingEvents', attrib='Available')
32
+ training_events: List['TrainingEventItem'] = HTField('TrainingEvents',
33
+ items='TrainingEvent')
34
+
35
+
36
+ class TrainingEventItem(HTModel):
37
+ """
38
+ Training Events -> Player -> Training Events -> Training event item
39
+ """
40
+ index: int = HTField('.', attrib='Index')
41
+ skill_id: int = HTField('SkillID')
42
+ old_level: int = HTField('OldLevel')
43
+ new_level: int = HTField('NewLevel')
44
+ season: int = HTField('Season')
45
+ match_round: int = HTField('MatchRound')
46
+ day_number: int = HTField('DayNumber')