Service endpoints for the async CodinGame client.
An instance of this class is created on CgClient, giving users well-typed access to all service endpoints.
For example, to find a codingamer's points stats by their handle:
async with CgClient() as client:
stats = await client.services.codingamer.find_codingame_points_stats_by_handle("some_handle")
Source code in codingame_tools/client/service/cg_services.py
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145 | def __init__(self, client: CgClient) -> None:
self.client = client
self.achievement = CgAchievementService(client)
self.clash_of_code = CgClashOfCodeService(client)
self.clash_of_code_description = CgClashOfCodeDescriptionService(client)
self.codingamer = CgCodingamerService(client)
self.codingamer_puzzle_topic = CgCodingamerPuzzleTopicService(client)
self.contribution = CgContributionService(client)
self.featured_event = CgFeaturedEventService(client)
self.intercom = CgIntercomService(client)
self.last_activities = CgLastActivitiesService(client)
self.notification = CgNotificationService(client)
self.programming_language = CgProgrammingLanguageService(client)
self.puzzle = CgPuzzleService(client)
self.quest = CgQuestService(client)
self.report = CgReportService(client)
self.search = CgSearchService(client)
self.survey = CgSurveyService(client)
self.test_session = CgTestSessionService(client)
self.test_session_question_submission = CgTestSessionQuestionSubmissionService(client)
self.user = CgUserService(client)
self.vote = CgVoteService(client)
|
The client through which endpoint requests are made.