codex-cli-usage 0.1.4__tar.gz → 0.1.6__tar.gz
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-0.1.4 → codex_cli_usage-0.1.6}/PKG-INFO +3 -1
- {codex_cli_usage-0.1.4 → codex_cli_usage-0.1.6}/pyproject.toml +5 -1
- {codex_cli_usage-0.1.4 → codex_cli_usage-0.1.6}/src/codex_cli_usage/__init__.py +1 -1
- {codex_cli_usage-0.1.4 → codex_cli_usage-0.1.6}/uv.lock +1 -1
- {codex_cli_usage-0.1.4 → codex_cli_usage-0.1.6}/.github/workflows/publish.yml +0 -0
- {codex_cli_usage-0.1.4 → codex_cli_usage-0.1.6}/.gitignore +0 -0
- {codex_cli_usage-0.1.4 → codex_cli_usage-0.1.6}/README.md +0 -0
- {codex_cli_usage-0.1.4 → codex_cli_usage-0.1.6}/src/codex_cli_usage/__main__.py +0 -0
|
@@ -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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "codex-cli-usage"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.6"
|
|
4
4
|
description = "Codex CLI usage monitor — fetches rate limits from OpenAI's ChatGPT backend API"
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -16,5 +16,9 @@ build-backend = "hatchling.build"
|
|
|
16
16
|
[tool.hatch.build.targets.wheel]
|
|
17
17
|
packages = ["src/codex_cli_usage"]
|
|
18
18
|
|
|
19
|
+
[project.urls]
|
|
20
|
+
Homepage = "https://github.com/wakamex/codex-cli-usage"
|
|
21
|
+
Source = "https://github.com/wakamex/codex-cli-usage"
|
|
22
|
+
|
|
19
23
|
[project.scripts]
|
|
20
24
|
codex-cli-usage = "codex_cli_usage:main"
|
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|