codex-cli-usage 0.1.4__py3-none-any.whl → 0.1.6__py3-none-any.whl
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.
- codex_cli_usage/__init__.py +1 -1
- {codex_cli_usage-0.1.4.dist-info → codex_cli_usage-0.1.6.dist-info}/METADATA +3 -1
- codex_cli_usage-0.1.6.dist-info/RECORD +6 -0
- codex_cli_usage-0.1.4.dist-info/RECORD +0 -6
- {codex_cli_usage-0.1.4.dist-info → codex_cli_usage-0.1.6.dist-info}/WHEEL +0 -0
- {codex_cli_usage-0.1.4.dist-info → codex_cli_usage-0.1.6.dist-info}/entry_points.txt +0 -0
codex_cli_usage/__init__.py
CHANGED
|
@@ -155,7 +155,7 @@ def fetch_usage() -> dict:
|
|
|
155
155
|
with urllib.request.urlopen(req, timeout=10) as resp:
|
|
156
156
|
return json.loads(resp.read())
|
|
157
157
|
except urllib.error.HTTPError as e:
|
|
158
|
-
if e.code
|
|
158
|
+
if e.code in (401, 403) and attempt == 0:
|
|
159
159
|
access_token = refresh_access_token(auth)
|
|
160
160
|
else:
|
|
161
161
|
raise
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codex-cli-usage
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Summary: Codex CLI usage monitor — fetches rate limits from OpenAI's ChatGPT backend API
|
|
5
|
+
Project-URL: Homepage, https://github.com/wakamex/codex-cli-usage
|
|
6
|
+
Project-URL: Source, https://github.com/wakamex/codex-cli-usage
|
|
5
7
|
Requires-Python: >=3.12
|
|
6
8
|
Description-Content-Type: text/markdown
|
|
7
9
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
codex_cli_usage/__init__.py,sha256=GuYkA8U3SiLiEeI_qgB3o-5TikuNVrcd4djLNy4uc6k,14364
|
|
2
|
+
codex_cli_usage/__main__.py,sha256=X0mUh4runjs7ZbPfABekiq5SDaQXZM4aSIi0uDco12s,40
|
|
3
|
+
codex_cli_usage-0.1.6.dist-info/METADATA,sha256=MRj8CzpUI5C6qRfskQbZCZvRlC5ldbb8P6WDJhpnuj4,2510
|
|
4
|
+
codex_cli_usage-0.1.6.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
5
|
+
codex_cli_usage-0.1.6.dist-info/entry_points.txt,sha256=P4fiVVq76DXzfc_gXLICI7J4-xwdBqeZoQjlUxq2d4g,57
|
|
6
|
+
codex_cli_usage-0.1.6.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
codex_cli_usage/__init__.py,sha256=FTedVfawFhSWGp-GRudHqf2t2Jt1GdBxqWwPgN2abrI,14357
|
|
2
|
-
codex_cli_usage/__main__.py,sha256=X0mUh4runjs7ZbPfABekiq5SDaQXZM4aSIi0uDco12s,40
|
|
3
|
-
codex_cli_usage-0.1.4.dist-info/METADATA,sha256=74IWpuKso29WG0Igh-BvF7hyKhCGDEo9dnkTOduqwjo,2380
|
|
4
|
-
codex_cli_usage-0.1.4.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
5
|
-
codex_cli_usage-0.1.4.dist-info/entry_points.txt,sha256=P4fiVVq76DXzfc_gXLICI7J4-xwdBqeZoQjlUxq2d4g,57
|
|
6
|
-
codex_cli_usage-0.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|