You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: rename preview terminology to free tier cloud
Replace preview-client wording with free tier cloud across the SDK,
docs, and tests. Rename JUDGE0_SUPPRESS_PREVIEW_WARNING to
JUDGE0_SUPPRESS_FREE_TIER_CLOUD_WARNING and PreviewClientLimitError
to FreeTierCloudClientLimitError.
Closes#45
Copy file name to clipboardExpand all lines: AGENTS.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,11 @@
19
19
-`clients.py` implements the base HTTP client and the provider- and flavor-specific clients for Judge0 Cloud, RapidAPI, and AllThingsDev.
20
20
-`common.py` contains shared base64 encoding and decoding helpers and iterable batching.
21
21
-`data.py` maps language aliases to Judge0 language IDs by server version and flavor.
22
-
-`errors.py` defines SDK-specific exception types for client resolution and preview-client usage limits.
22
+
-`errors.py` defines SDK-specific exception types for client resolution and free-tier-cloud-client usage limits.
23
23
-`filesystem.py` models individual files and ZIP-backed collections used for additional and post-execution files.
24
24
-`retry.py` defines the polling strategy interface and retry-count, wait-time, and periodic retry implementations.
25
25
-`submission.py` models submission request and response data, including serialization, response updates, completion checks, and execution filesystem handling.
26
-
-`utils.py` detects HTTP rate-limit responses and translates preview-client rate limits into SDK-specific errors.
26
+
-`utils.py` detects HTTP rate-limit responses and translates free-tier-cloud-client rate limits into SDK-specific errors.
27
27
-`version.py` exposes the package version constant.
28
28
-`tests/` contains the pytest suite. Shared fixtures belong in `conftest.py`, and focused tests should use `test_<area>.py` modules that correspond to SDK behavior.
29
29
-`examples/` contains runnable SDK usage examples, including the standalone HTTP callback example in `examples/1000_http_callback_aka_webhook/`.
Copy file name to clipboardExpand all lines: docs/source/in_depth/client_resolution.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,11 +34,11 @@ If a custom client is not configured, the SDK will try to find API keys for one
34
34
35
35
The first API key found determines the client that will be used.
36
36
37
-
3. **Preview Client**
37
+
3. **Free Tier Cloud Client**
38
38
39
-
If none of the above environment variables are set, the SDK falls back to using a **preview client**. This is an unauthenticated client that connects to the official Judge0 Cloud service. It initializes ``Judge0CloudCE()`` and ``Judge0CloudExtraCE()`` for the CE and Extra CE flavors, respectively.
39
+
If none of the above environment variables are set, the SDK falls back to using a **free tier cloud client**. This is an unauthenticated client that connects to the official Judge0 Cloud service. It initializes ``Judge0CloudCE()`` and ``Judge0CloudExtraCE()`` for the CE and Extra CE flavors, respectively.
40
40
41
-
When the preview client is used, a warning message is logged to the console, as this option is not recommended for production use. To suppress this warning, you can set the ``JUDGE0_SUPPRESS_PREVIEW_WARNING`` environment variable.
41
+
When the free tier cloud client is used, a warning message is logged to the console, as this option is not recommended for production use. To suppress this warning, you can set the ``JUDGE0_SUPPRESS_FREE_TIER_CLOUD_WARNING`` environment variable.
42
42
43
43
Example Resolution Flow
44
44
-----------------------
@@ -50,6 +50,6 @@ When you call a function like ``judge0.run(..., flavor=judge0.CE)``, the SDK wil
50
50
3. Check for ``JUDGE0_CLOUD_CE_AUTH_HEADERS`` to configure a ``Judge0CloudCE`` client.
51
51
4. Check for ``JUDGE0_RAPID_API_KEY`` to configure a ``RapidJudge0CE`` client.
52
52
5. Check for ``JUDGE0_ATD_API_KEY`` to configure an ``ATDJudge0CE`` client.
53
-
6. If none of the above are found, initialize a preview ``Judge0CloudCE`` client and log a warning.
53
+
6. If none of the above are found, initialize a free tier cloud ``Judge0CloudCE`` client and log a warning.
54
54
55
55
This implicit client resolution makes it easy to get started with the Judge0 Python SDK while providing the flexibility to configure it for different environments and services.
0 commit comments