pychpp 0.3.11__tar.gz → 0.4.0__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 (89) hide show
  1. pychpp-0.4.0/PKG-INFO +199 -0
  2. pychpp-0.4.0/README.md +177 -0
  3. pychpp-0.4.0/pychpp/__init__.py +6 -0
  4. pychpp-0.4.0/pychpp/chpp.py +886 -0
  5. pychpp-0.4.0/pychpp/fixtures/__init__.py +0 -0
  6. {pychpp-0.3.11/pychpp → pychpp-0.4.0/pychpp/fixtures}/ht_datetime.py +1 -1
  7. {pychpp-0.3.11/pychpp → pychpp-0.4.0/pychpp/fixtures}/ht_error.py +3 -3
  8. pychpp-0.4.0/pychpp/models/__init__.py +0 -0
  9. pychpp-0.4.0/pychpp/models/custom/__init__.py +37 -0
  10. pychpp-0.4.0/pychpp/models/custom/base/__init__.py +0 -0
  11. pychpp-0.4.0/pychpp/models/custom/base/ht_arena.py +27 -0
  12. pychpp-0.4.0/pychpp/models/custom/base/ht_country.py +27 -0
  13. pychpp-0.4.0/pychpp/models/custom/base/ht_league.py +27 -0
  14. pychpp-0.4.0/pychpp/models/custom/base/ht_league_unit.py +27 -0
  15. pychpp-0.4.0/pychpp/models/custom/base/ht_match.py +39 -0
  16. pychpp-0.4.0/pychpp/models/custom/base/ht_player.py +156 -0
  17. pychpp-0.4.0/pychpp/models/custom/base/ht_region.py +27 -0
  18. pychpp-0.4.0/pychpp/models/custom/base/ht_team.py +82 -0
  19. pychpp-0.4.0/pychpp/models/custom/base/ht_user.py +27 -0
  20. pychpp-0.4.0/pychpp/models/custom/ht_arena.py +27 -0
  21. pychpp-0.4.0/pychpp/models/custom/ht_challenge.py +88 -0
  22. pychpp-0.4.0/pychpp/models/custom/ht_league.py +25 -0
  23. pychpp-0.4.0/pychpp/models/custom/ht_league_unit.py +29 -0
  24. pychpp-0.4.0/pychpp/models/custom/ht_match.py +38 -0
  25. pychpp-0.4.0/pychpp/models/custom/ht_match_lineup.py +485 -0
  26. pychpp-0.4.0/pychpp/models/custom/ht_matches_archive.py +67 -0
  27. pychpp-0.4.0/pychpp/models/custom/ht_player.py +24 -0
  28. pychpp-0.4.0/pychpp/models/custom/ht_region.py +30 -0
  29. pychpp-0.4.0/pychpp/models/custom/ht_team.py +83 -0
  30. pychpp-0.4.0/pychpp/models/custom/ht_transfer_history.py +61 -0
  31. pychpp-0.4.0/pychpp/models/custom/ht_user.py +40 -0
  32. pychpp-0.4.0/pychpp/models/custom/ht_youth_player.py +13 -0
  33. pychpp-0.4.0/pychpp/models/custom/ht_youth_team.py +51 -0
  34. pychpp-0.4.0/pychpp/models/ht_field.py +32 -0
  35. pychpp-0.4.0/pychpp/models/ht_init_var.py +10 -0
  36. pychpp-0.4.0/pychpp/models/ht_model.py +350 -0
  37. pychpp-0.4.0/pychpp/models/ht_version.py +84 -0
  38. pychpp-0.4.0/pychpp/models/ht_xml.py +175 -0
  39. pychpp-0.4.0/pychpp/models/xml/__init__.py +0 -0
  40. pychpp-0.4.0/pychpp/models/xml/achievements.py +37 -0
  41. pychpp-0.4.0/pychpp/models/xml/arena_details.py +158 -0
  42. pychpp-0.4.0/pychpp/models/xml/challenges.py +135 -0
  43. pychpp-0.4.0/pychpp/models/xml/cup_matches.py +81 -0
  44. pychpp-0.4.0/pychpp/models/xml/league_details.py +58 -0
  45. pychpp-0.4.0/pychpp/models/xml/league_fixtures.py +57 -0
  46. pychpp-0.4.0/pychpp/models/xml/manager_compendium.py +154 -0
  47. pychpp-0.4.0/pychpp/models/xml/match_details.py +226 -0
  48. pychpp-0.4.0/pychpp/models/xml/match_lineup.py +103 -0
  49. pychpp-0.4.0/pychpp/models/xml/matches_archive.py +75 -0
  50. pychpp-0.4.0/pychpp/models/xml/national_team_details.py +71 -0
  51. pychpp-0.4.0/pychpp/models/xml/national_teams.py +53 -0
  52. pychpp-0.4.0/pychpp/models/xml/player_details.py +158 -0
  53. pychpp-0.4.0/pychpp/models/xml/players.py +191 -0
  54. pychpp-0.4.0/pychpp/models/xml/region_details.py +43 -0
  55. pychpp-0.4.0/pychpp/models/xml/team_details.py +347 -0
  56. pychpp-0.4.0/pychpp/models/xml/training.py +143 -0
  57. pychpp-0.4.0/pychpp/models/xml/transfers_team.py +94 -0
  58. pychpp-0.4.0/pychpp/models/xml/world_cup.py +110 -0
  59. pychpp-0.4.0/pychpp/models/xml/world_details.py +103 -0
  60. pychpp-0.4.0/pychpp/models/xml/youth_player_details.py +155 -0
  61. pychpp-0.4.0/pychpp/models/xml/youth_player_list.py +168 -0
  62. pychpp-0.4.0/pychpp/models/xml/youth_team_details.py +113 -0
  63. {pychpp-0.3.11 → pychpp-0.4.0}/pyproject.toml +9 -9
  64. pychpp-0.3.11/PKG-INFO +0 -124
  65. pychpp-0.3.11/README.md +0 -102
  66. pychpp-0.3.11/pychpp/__init__.py +0 -3
  67. pychpp-0.3.11/pychpp/chpp.py +0 -573
  68. pychpp-0.3.11/pychpp/ht_age.py +0 -83
  69. pychpp-0.3.11/pychpp/ht_arena.py +0 -61
  70. pychpp-0.3.11/pychpp/ht_challenge.py +0 -261
  71. pychpp-0.3.11/pychpp/ht_league.py +0 -118
  72. pychpp-0.3.11/pychpp/ht_match.py +0 -196
  73. pychpp-0.3.11/pychpp/ht_match_lineup.py +0 -431
  74. pychpp-0.3.11/pychpp/ht_matches_archive.py +0 -157
  75. pychpp-0.3.11/pychpp/ht_model.py +0 -60
  76. pychpp-0.3.11/pychpp/ht_national_teams.py +0 -145
  77. pychpp-0.3.11/pychpp/ht_player.py +0 -389
  78. pychpp-0.3.11/pychpp/ht_region.py +0 -49
  79. pychpp-0.3.11/pychpp/ht_skill.py +0 -150
  80. pychpp-0.3.11/pychpp/ht_team.py +0 -386
  81. pychpp-0.3.11/pychpp/ht_training.py +0 -209
  82. pychpp-0.3.11/pychpp/ht_transfer.py +0 -24
  83. pychpp-0.3.11/pychpp/ht_transfers_team.py +0 -178
  84. pychpp-0.3.11/pychpp/ht_user.py +0 -60
  85. pychpp-0.3.11/pychpp/ht_world.py +0 -285
  86. pychpp-0.3.11/pychpp/ht_world_cup.py +0 -224
  87. pychpp-0.3.11/pychpp/ht_xml.py +0 -195
  88. pychpp-0.3.11/setup.py +0 -30
  89. {pychpp-0.3.11 → pychpp-0.4.0}/LICENSE +0 -0
pychpp-0.4.0/PKG-INFO ADDED
@@ -0,0 +1,199 @@
1
+ Metadata-Version: 2.1
2
+ Name: pychpp
3
+ Version: 0.4.0
4
+ Summary: framework created to use the API provided by the online game Hattrick
5
+ Home-page: https://framagit.org/Pierre86/pychpp
6
+ License: Apache-2.0
7
+ Author: Pierre Gobin
8
+ Author-email: p.dev@gobin.cc
9
+ Requires-Python: >=3.8,<4.0
10
+ Classifier: License :: OSI Approved :: Apache Software License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.8
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Requires-Dist: Werkzeug (>=2.2.2,<3.0.0)
18
+ Requires-Dist: pytz (>=2024.2,<2025.0)
19
+ Requires-Dist: rauth (>=0.7.3,<0.8.0)
20
+ Description-Content-Type: text/markdown
21
+
22
+ # pyCHPP
23
+
24
+ pyCHPP is an object-oriented python framework created to use the API provided by the online game Hattrick (www.hattrick.org).
25
+
26
+ ## Installation
27
+
28
+ pyCHPP can be installed using pip :
29
+
30
+ pip install pychpp
31
+
32
+ ## Quick start
33
+
34
+ ### First connection
35
+ ```python-repl
36
+ >>> from pychpp import CHPP
37
+
38
+ # Set consumer_key and consumer_secret provided for your app by Hattrick
39
+ >>> consumer_key = ''
40
+ >>> consumer_secret = ''
41
+
42
+ # Initialize CHPP instance
43
+ >>> chpp = CHPP(consumer_key, consumer_secret)
44
+
45
+ # Get url, request_token and request_token_secret to request API access
46
+ # You can set callback_url and scope
47
+ >>> auth = chpp.get_auth(callback_url="www.mycallbackurl.com", scope="")
48
+
49
+ # auth['url'] contains the url to which the user can grant the application
50
+ # access to the Hattrick API
51
+ # Once the user has entered their credentials,
52
+ # a code is returned by Hattrick (directly or to the given callback url)
53
+ >>> code = ""
54
+
55
+ # Get access token from Hattrick
56
+ # access_token['key'] and access_token['secret'] have to be stored
57
+ # in order to be used later by the app
58
+ >>> access_token = chpp.get_access_token(
59
+ request_token=auth["request_token"],
60
+ request_token_secret=auth["request_token_secret"],
61
+ code=code,
62
+ )
63
+ ```
64
+ ### Further connections
65
+ ```python-repl
66
+ # Once you have obtained access_token for a user
67
+ # You can use it to call Hattrick API
68
+ >>> chpp = CHPP(consumer_key,
69
+ consumer_secret,
70
+ access_token['key'],
71
+ access_token['secret'],
72
+ )
73
+
74
+ # Now you can use chpp methods to get datas from Hattrick API
75
+ # For example :
76
+ >>> current_user = chpp.user()
77
+ >>> all_teams = current_user.teams
78
+
79
+ >>> best_team_ever = chpp.team(1165592)
80
+ >>> best_team_ever
81
+ <HTTeam object - Les Poitevins de La Chapelle (1165592)>
82
+
83
+ >>> best_team_arena = best_team_ever.arena.details()
84
+ >>> best_team_arena
85
+ <HTArena object - Stade de La Chapelle (1162154)>
86
+ >>> best_team_arena.name
87
+ 'Stade de La Chapelle'
88
+
89
+ >>> worth_team_ever = chpp.team(1750803)
90
+ >>> worth_team_ever
91
+ <HTTeam object - Capdenaguet (1750803)>
92
+
93
+ >>> player = chpp.player(6993859)
94
+ >>> player
95
+ <HTPlayer object - Pedro Zurita (6993859)>
96
+ >>> player.career_goals
97
+ 1167
98
+
99
+ >>> match = chpp.match(68599186)
100
+ >>> match
101
+ <HTMatch object - Skou United - FC Barentin (68599186)>
102
+ >>> match.date
103
+ <HTDatetime object - 2006-02-23 20:00:00 CET+0100 (S28, W8, D4)>
104
+ ```
105
+
106
+ ## Philosophy
107
+ From 0.4.0 version, pyCHPP is build on two class families :
108
+ - under `pychpp/models/xml`, you will find a class by CHPP XML file. These classes can be instantiated with a CHPP object, thanks to functions prefixed with `xml_`. For example, `arenadetails.xml` file can be fetched through a CHPP instance with the `xml_arena_details` method.
109
+ ```python-repl
110
+ >>> xml_arena = chpp.xml_arena_details(arena_id=294762)
111
+ >>> xml_arena
112
+ <ArenaDetails object - Stade Dimitri Liénard (294762)>
113
+ ```
114
+ - under `pychpp/models/custom`, pyCHPP moves further away from vanilla xml files, in order to offer a more consistent experience (in our opinion) and to add some convenient methods and attributes (as url), and to allow navigation between objects. For example, you can instantiate a HTTeam object through a CHPP instance by calling the `team` method. From this `HTTeam` instance, you can get the list of this team players by calling its `players` method.
115
+ ```python-repl
116
+ >>> team = chpp.team(294762)
117
+ >>> team
118
+ <HTTeam object - FC Mistral Gagnant (294762)>
119
+ >>> players = team.players()
120
+ >>> players[3]
121
+ <HTTeamPlayersItem object - Massimiliano Carotta (453279129)>
122
+ >>> players[3].first_name
123
+ 'Massimiliano'
124
+ >>> players[3].last_name
125
+ 'Carotta'
126
+ ```
127
+
128
+ ## Customization
129
+
130
+ The easiest way to use pyCHPP is to use the builtin methods of the CHPP object.
131
+
132
+ However, for more advanced use, it is also possible to customize the framework's built-in templates.
133
+
134
+ For example, if you need to perform a query on the arenadetails.xml file, but in reality only need the Arena/ArenaID, Arena/ArenaName and Arena/ArenaImage data, one way to proceed is to create a custom class inheriting from the RequestArenaDetails class, and use HTProxyField as follows:
135
+ ```python
136
+ from pychpp.models.xml.arena_details import RequestArenaDetails, ArenaDetails
137
+ from pychpp.models.ht_field import HTProxyField
138
+
139
+
140
+ class MyCustomArenaClass(RequestArenaDetails):
141
+ id: int = HTProxyField(ArenaDetails)
142
+ name: str = HTProxyField(ArenaDetails)
143
+ image: str = HTProxyField(ArenaDetails)
144
+ ```
145
+
146
+ Then, to use this new class:
147
+ ```python-repl
148
+ >>> from pychpp.chpp import CHPPBase
149
+ >>> chpp = CHPPBase(consumer_key,
150
+ consumer_secret,
151
+ access_token['key'],
152
+ access_token['secret'],
153
+ )
154
+ >>> arena = MyCustomArenaClass(chpp=chpp, arena_id=1747365)
155
+ >>> arena
156
+ <MyCustomArenaClass object - La grande taule (1747365)>
157
+ >>> arena.id
158
+ 1747365
159
+ >>> arena.name
160
+ 'La grande taule'
161
+ >>> arena.image
162
+ '//res.hattrick.org/arenas/18/175/1748/1747365/custom-220-100.jpg'
163
+ ```
164
+ 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.
165
+
166
+ ## List of supported CHPP XML files
167
+ ![23/57](https://progress-bar.xyz/40/?title=23%20on%2057)
168
+
169
+ The following table shows the CHPP XML files that are currently supported:
170
+
171
+ | pyCHPP class | CHPP XML files |
172
+ |:-------------------:|:-------------------------:|
173
+ | Achievements | `achievements.xml` |
174
+ | Arena | `arenadetails.xml` |
175
+ | Challenges | `challenges.xml` |
176
+ | CupMatches | `cupmatches.xml` |
177
+ | LeagueDetails | `leaguedetails.xml` |
178
+ | LeagueFixtures | `leaguefixtures.xml` |
179
+ | ManagerCompendium | `managercompendium.xml` |
180
+ | MatchDetails | `matchdetails.xml` |
181
+ | MatchLineup | `matchlineup.xml` |
182
+ | MatchesArchive | `matchesarchive.xml` |
183
+ | NationalTeamDetails | `nationalteamdetails.xml` |
184
+ | NationalTeams | `nationalteams.xml` |
185
+ | PlayerDetails | `playerdetails.xml` |
186
+ | Players | `players.xml` |
187
+ | RegionDetails | `regiondetails.xml` |
188
+ | TeamDetails | `teamdetails.xml` |
189
+ | Training | `training.xml` |
190
+ | TransfersTeam | `transfersteam.xml` |
191
+ | WorldCup | `worldcup.xml` |
192
+ | WorldDetails | `worlddetails.xml` |
193
+ | YouthPlayerDetails | `youthplayerdetails.xml` |
194
+ | YouthPlayerList | `youthplayerlist.xml` |
195
+ | YouthTeamDetails | `youthteamdetails.xml` |
196
+
197
+ ## License
198
+ pyCHPP is licensed under the Apache License 2.0.
199
+
pychpp-0.4.0/README.md ADDED
@@ -0,0 +1,177 @@
1
+ # pyCHPP
2
+
3
+ pyCHPP is an object-oriented python framework created to use the API provided by the online game Hattrick (www.hattrick.org).
4
+
5
+ ## Installation
6
+
7
+ pyCHPP can be installed using pip :
8
+
9
+ pip install pychpp
10
+
11
+ ## Quick start
12
+
13
+ ### First connection
14
+ ```python-repl
15
+ >>> from pychpp import CHPP
16
+
17
+ # Set consumer_key and consumer_secret provided for your app by Hattrick
18
+ >>> consumer_key = ''
19
+ >>> consumer_secret = ''
20
+
21
+ # Initialize CHPP instance
22
+ >>> chpp = CHPP(consumer_key, consumer_secret)
23
+
24
+ # Get url, request_token and request_token_secret to request API access
25
+ # You can set callback_url and scope
26
+ >>> auth = chpp.get_auth(callback_url="www.mycallbackurl.com", scope="")
27
+
28
+ # auth['url'] contains the url to which the user can grant the application
29
+ # access to the Hattrick API
30
+ # Once the user has entered their credentials,
31
+ # a code is returned by Hattrick (directly or to the given callback url)
32
+ >>> code = ""
33
+
34
+ # Get access token from Hattrick
35
+ # access_token['key'] and access_token['secret'] have to be stored
36
+ # in order to be used later by the app
37
+ >>> access_token = chpp.get_access_token(
38
+ request_token=auth["request_token"],
39
+ request_token_secret=auth["request_token_secret"],
40
+ code=code,
41
+ )
42
+ ```
43
+ ### Further connections
44
+ ```python-repl
45
+ # Once you have obtained access_token for a user
46
+ # You can use it to call Hattrick API
47
+ >>> chpp = CHPP(consumer_key,
48
+ consumer_secret,
49
+ access_token['key'],
50
+ access_token['secret'],
51
+ )
52
+
53
+ # Now you can use chpp methods to get datas from Hattrick API
54
+ # For example :
55
+ >>> current_user = chpp.user()
56
+ >>> all_teams = current_user.teams
57
+
58
+ >>> best_team_ever = chpp.team(1165592)
59
+ >>> best_team_ever
60
+ <HTTeam object - Les Poitevins de La Chapelle (1165592)>
61
+
62
+ >>> best_team_arena = best_team_ever.arena.details()
63
+ >>> best_team_arena
64
+ <HTArena object - Stade de La Chapelle (1162154)>
65
+ >>> best_team_arena.name
66
+ 'Stade de La Chapelle'
67
+
68
+ >>> worth_team_ever = chpp.team(1750803)
69
+ >>> worth_team_ever
70
+ <HTTeam object - Capdenaguet (1750803)>
71
+
72
+ >>> player = chpp.player(6993859)
73
+ >>> player
74
+ <HTPlayer object - Pedro Zurita (6993859)>
75
+ >>> player.career_goals
76
+ 1167
77
+
78
+ >>> match = chpp.match(68599186)
79
+ >>> match
80
+ <HTMatch object - Skou United - FC Barentin (68599186)>
81
+ >>> match.date
82
+ <HTDatetime object - 2006-02-23 20:00:00 CET+0100 (S28, W8, D4)>
83
+ ```
84
+
85
+ ## Philosophy
86
+ From 0.4.0 version, pyCHPP is build on two class families :
87
+ - under `pychpp/models/xml`, you will find a class by CHPP XML file. These classes can be instantiated with a CHPP object, thanks to functions prefixed with `xml_`. For example, `arenadetails.xml` file can be fetched through a CHPP instance with the `xml_arena_details` method.
88
+ ```python-repl
89
+ >>> xml_arena = chpp.xml_arena_details(arena_id=294762)
90
+ >>> xml_arena
91
+ <ArenaDetails object - Stade Dimitri Liénard (294762)>
92
+ ```
93
+ - under `pychpp/models/custom`, pyCHPP moves further away from vanilla xml files, in order to offer a more consistent experience (in our opinion) and to add some convenient methods and attributes (as url), and to allow navigation between objects. For example, you can instantiate a HTTeam object through a CHPP instance by calling the `team` method. From this `HTTeam` instance, you can get the list of this team players by calling its `players` method.
94
+ ```python-repl
95
+ >>> team = chpp.team(294762)
96
+ >>> team
97
+ <HTTeam object - FC Mistral Gagnant (294762)>
98
+ >>> players = team.players()
99
+ >>> players[3]
100
+ <HTTeamPlayersItem object - Massimiliano Carotta (453279129)>
101
+ >>> players[3].first_name
102
+ 'Massimiliano'
103
+ >>> players[3].last_name
104
+ 'Carotta'
105
+ ```
106
+
107
+ ## Customization
108
+
109
+ The easiest way to use pyCHPP is to use the builtin methods of the CHPP object.
110
+
111
+ However, for more advanced use, it is also possible to customize the framework's built-in templates.
112
+
113
+ For example, if you need to perform a query on the arenadetails.xml file, but in reality only need the Arena/ArenaID, Arena/ArenaName and Arena/ArenaImage data, one way to proceed is to create a custom class inheriting from the RequestArenaDetails class, and use HTProxyField as follows:
114
+ ```python
115
+ from pychpp.models.xml.arena_details import RequestArenaDetails, ArenaDetails
116
+ from pychpp.models.ht_field import HTProxyField
117
+
118
+
119
+ class MyCustomArenaClass(RequestArenaDetails):
120
+ id: int = HTProxyField(ArenaDetails)
121
+ name: str = HTProxyField(ArenaDetails)
122
+ image: str = HTProxyField(ArenaDetails)
123
+ ```
124
+
125
+ Then, to use this new class:
126
+ ```python-repl
127
+ >>> from pychpp.chpp import CHPPBase
128
+ >>> chpp = CHPPBase(consumer_key,
129
+ consumer_secret,
130
+ access_token['key'],
131
+ access_token['secret'],
132
+ )
133
+ >>> arena = MyCustomArenaClass(chpp=chpp, arena_id=1747365)
134
+ >>> arena
135
+ <MyCustomArenaClass object - La grande taule (1747365)>
136
+ >>> arena.id
137
+ 1747365
138
+ >>> arena.name
139
+ 'La grande taule'
140
+ >>> arena.image
141
+ '//res.hattrick.org/arenas/18/175/1748/1747365/custom-220-100.jpg'
142
+ ```
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
+
145
+ ## List of supported CHPP XML files
146
+ ![23/57](https://progress-bar.xyz/40/?title=23%20on%2057)
147
+
148
+ The following table shows the CHPP XML files that are currently supported:
149
+
150
+ | pyCHPP class | CHPP XML files |
151
+ |:-------------------:|:-------------------------:|
152
+ | Achievements | `achievements.xml` |
153
+ | Arena | `arenadetails.xml` |
154
+ | Challenges | `challenges.xml` |
155
+ | CupMatches | `cupmatches.xml` |
156
+ | LeagueDetails | `leaguedetails.xml` |
157
+ | LeagueFixtures | `leaguefixtures.xml` |
158
+ | ManagerCompendium | `managercompendium.xml` |
159
+ | MatchDetails | `matchdetails.xml` |
160
+ | MatchLineup | `matchlineup.xml` |
161
+ | MatchesArchive | `matchesarchive.xml` |
162
+ | NationalTeamDetails | `nationalteamdetails.xml` |
163
+ | NationalTeams | `nationalteams.xml` |
164
+ | PlayerDetails | `playerdetails.xml` |
165
+ | Players | `players.xml` |
166
+ | RegionDetails | `regiondetails.xml` |
167
+ | TeamDetails | `teamdetails.xml` |
168
+ | Training | `training.xml` |
169
+ | TransfersTeam | `transfersteam.xml` |
170
+ | WorldCup | `worldcup.xml` |
171
+ | WorldDetails | `worlddetails.xml` |
172
+ | YouthPlayerDetails | `youthplayerdetails.xml` |
173
+ | YouthPlayerList | `youthplayerlist.xml` |
174
+ | YouthTeamDetails | `youthteamdetails.xml` |
175
+
176
+ ## License
177
+ pyCHPP is licensed under the Apache License 2.0.
@@ -0,0 +1,6 @@
1
+ import importlib.metadata
2
+
3
+ from pychpp.chpp import CHPP # noqa: F401
4
+
5
+
6
+ __version__ = importlib.metadata.version("pychpp")