Client¶
judge0api uses the concept of a “client” in order to interface with a Judge0 API. The client holds information about the following:
- The “Endpoint” server - this is normally a domain, with a scheme. The public endpoint is https://api.judge0.com/, although different schemes, and even ports can be used.
- Any authentication information that is needed
- Any authorization information that is needed
-
class
judge0api.
Client
(endpoint, auth_token=None, auth_user=None)[source]¶ A judge0api Client
Stores Endpoint information, as well as auth tokens, as well as submission wait preferences
The constructor handles most things - if you don’t want this client to wait for submissions, then set wait to False