@@ -14,6 +14,7 @@ class CodeforcesApi(CodeforcesApiRequestMaker):
1414 def blog_entry_comments (self , blog_entry_id ):
1515 """
1616 Get blogEntry.commnets for blog , blog_entry_id required.
17+
1718 Returns parsed response from codeforces.com.
1819 """
1920 request = requests .get (
@@ -26,6 +27,7 @@ def blog_entry_comments(self, blog_entry_id):
2627 def blog_entry_view (self , blog_entry_id ):
2728 """
2829 Get blogEntry.view for blog, blog_entry_id required.
30+
2931 Returns parsed response from codeforces.com.
3032 """
3133 request_url = self .generate_url (
@@ -37,6 +39,7 @@ def blog_entry_view(self, blog_entry_id):
3739 def contest_hacks (self , contest_id ):
3840 """
3941 Get contest.hacks for contest, contest_id required.
42+
4043 Returns parsed response from codeforces.com.
4144 """
4245 request_url = self .generate_url (
@@ -48,6 +51,7 @@ def contest_hacks(self, contest_id):
4851 def contest_list (self , gym = False ):
4952 """
5053 Get all contests, you can get all gym by gym parameter.
54+
5155 Returns parsed response from codeforces.com
5256 """
5357 request_url = self .generate_url ("contest.list" , ** {"gym" : str (gym )})
@@ -57,6 +61,7 @@ def contest_list(self, gym=False):
5761 def contest_rating_changes (self , contest_id ):
5862 """
5963 Get contest.ratingChanges for contest, contest_id required.
64+
6065 Returns parsed response from codeforces.com.
6166 """
6267 request_url = self .generate_url (
@@ -76,11 +81,17 @@ def contest_standings(
7681 ):
7782 """
7883 Get contest.standings for contest, contest_id required.
84+
7985 From is replaced with a start, because from is reserved python word.
86+
8087 Count defines how many submits will be returned.
88+
8189 Handles should be a list of handles to get (max 10000) but it is recommended to use less then 500, because http request length is set to 8000.
90+
8291 Room is the number of the room which is needed.
92+
8393 Show_unofficial is used for adding or removing not official participants.
94+
8495 Returns parsed response from codeforces.com.
8596 """
8697 if not isinstance (handles , list ):
@@ -108,9 +119,13 @@ def contest_standings(
108119 def contest_status (self , contest_id , handle = "" , start = - 1 , count = - 1 ):
109120 """
110121 Get contest.status for contest, contest_id required.
122+
111123 From is replaced with a start, because from is reserved python word.
124+
112125 Count defines how many submits will be returned.
126+
113127 Handle is used for specifying a user.
128+
114129 Returns parsed response from codeforces.com.
115130 """
116131 if contest_id == None :
@@ -129,9 +144,13 @@ def contest_status(self, contest_id, handle="", start=-1, count=-1):
129144 def problemset_problems (self , tags = ["" ], problemset_name = "" ):
130145 """
131146 Get problemset.problems.
147+
132148 tags is a list of tags for tasks.
149+
133150 problemset_name is a string with an additional archive name.
151+
134152 For example 'acmsguru'.
153+
135154 Returns parsed response from codeforces.com.
136155 """
137156 if not isinstance (tags , list ):
@@ -148,9 +167,13 @@ def problemset_problems(self, tags=[""], problemset_name=""):
148167 def problemset_recent_status (self , count , problemset_name = "" ):
149168 """
150169 Get problemset.recentStatus.
170+
151171 count is the number of returned submits, up to 1000.
172+
152173 problemset_name is a string with an additional archive name.
174+
153175 For example 'acmsguru'.
176+
154177 Returns parsed response from codeforces.com.
155178 """
156179 if count > 1000 :
@@ -167,8 +190,11 @@ def problemset_recent_status(self, count, problemset_name=""):
167190 def recent_actions (self , max_count = 100 ):
168191 """
169192 Get recentActions.
193+
170194 Max_count is the number of returned actions.
195+
171196 Max_count should be less or equal to 100.
197+
172198 Returns parsed response from codeforces.com.
173199 """
174200 if max_count > 100 :
@@ -180,7 +206,9 @@ def recent_actions(self, max_count=100):
180206 def user_blog_entries (self , handle ):
181207 """
182208 Get user.blogEntries.
209+
183210 Handle is required.
211+
184212 Returns parsed response from codeforces.com.
185213 """
186214 if handle == "" :
@@ -192,8 +220,11 @@ def user_blog_entries(self, handle):
192220 def user_friends (self , only_online = False ):
193221 """
194222 Get user.friends.
223+
195224 Auth is required for this method, so create a class instance with api_key and secret.
225+
196226 Only_online should be boolean.
227+
197228 Returns parsed response from codeforces.com.
198229 """
199230 if self .anonimus :
@@ -207,7 +238,9 @@ def user_friends(self, only_online=False):
207238 def user_info (self , handles ):
208239 """
209240 Get user.info.
241+
210242 Handles should be a list of users, up to 10000 but it is recommended to use less then 500, because http request length is set to 8000.
243+
211244 Returns parsed response from codeforces.com.
212245 """
213246 if not isinstance (handles , list ):
@@ -221,7 +254,9 @@ def user_info(self, handles):
221254 def user_rated_list (self , active_only = False ):
222255 """
223256 Get user.ratedList.
257+
224258 Active_only is used to show only users, which participated last month.
259+
225260 Returns parsed response from codeforces.com.
226261 """
227262 request_url = self .generate_url (
@@ -233,7 +268,9 @@ def user_rated_list(self, active_only=False):
233268 def user_rating (self , handle ):
234269 """
235270 Get user.rating.
271+
236272 Handle should be a string.
273+
237274 Returns parsed response from codeforces.com.
238275 """
239276 request_url = self .generate_url ("user.rating" , ** {"handle" : str (handle )})
@@ -243,9 +280,13 @@ def user_rating(self, handle):
243280 def user_status (self , handle , start = - 1 , count = - 1 ):
244281 """
245282 Get user.status.
283+
246284 Handle is required.
285+
247286 From was replaced with a start because from is reserved python word.
287+
248288 Count is the number of attempts to return.
289+
249290 Returns parsed response from codeforces.com.
250291 """
251292 parameters = {
0 commit comments