ccburn 0.1.0__tar.gz → 0.1.2__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.
Files changed (32) hide show
  1. {ccburn-0.1.0/src/ccburn.egg-info → ccburn-0.1.2}/PKG-INFO +13 -5
  2. {ccburn-0.1.0 → ccburn-0.1.2}/README.md +12 -4
  3. {ccburn-0.1.0 → ccburn-0.1.2}/pyproject.toml +1 -1
  4. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/data/credentials.py +3 -0
  5. {ccburn-0.1.0 → ccburn-0.1.2/src/ccburn.egg-info}/PKG-INFO +13 -5
  6. {ccburn-0.1.0 → ccburn-0.1.2}/tests/test_cli.py +1 -1
  7. {ccburn-0.1.0 → ccburn-0.1.2}/LICENSE +0 -0
  8. {ccburn-0.1.0 → ccburn-0.1.2}/setup.cfg +0 -0
  9. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/__init__.py +0 -0
  10. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/app.py +0 -0
  11. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/cli.py +0 -0
  12. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/data/__init__.py +0 -0
  13. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/data/history.py +0 -0
  14. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/data/models.py +0 -0
  15. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/data/usage_client.py +0 -0
  16. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/display/__init__.py +0 -0
  17. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/display/chart.py +0 -0
  18. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/display/gauges.py +0 -0
  19. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/display/layout.py +0 -0
  20. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/main.py +0 -0
  21. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/utils/__init__.py +0 -0
  22. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/utils/calculator.py +0 -0
  23. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn/utils/formatting.py +0 -0
  24. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn.egg-info/SOURCES.txt +0 -0
  25. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn.egg-info/dependency_links.txt +0 -0
  26. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn.egg-info/entry_points.txt +0 -0
  27. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn.egg-info/requires.txt +0 -0
  28. {ccburn-0.1.0 → ccburn-0.1.2}/src/ccburn.egg-info/top_level.txt +0 -0
  29. {ccburn-0.1.0 → ccburn-0.1.2}/tests/test_calculator.py +0 -0
  30. {ccburn-0.1.0 → ccburn-0.1.2}/tests/test_formatting.py +0 -0
  31. {ccburn-0.1.0 → ccburn-0.1.2}/tests/test_history.py +0 -0
  32. {ccburn-0.1.0 → ccburn-0.1.2}/tests/test_models.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ccburn
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Terminal-based Claude Code usage limit visualizer with real-time burn-up charts
5
5
  Author: JuanjoFuchs
6
6
  License-Expression: MIT
@@ -37,16 +37,24 @@ Requires-Dist: twine>=4.0.0; extra == "dev"
37
37
  Requires-Dist: pyinstaller>=6.0.0; extra == "dev"
38
38
  Dynamic: license-file
39
39
 
40
- # ccburn
40
+ # 🔥 ccburn
41
41
 
42
42
  [![CI](https://img.shields.io/github/actions/workflow/status/JuanjoFuchs/ccburn/ci.yml?branch=main&label=CI)](https://github.com/JuanjoFuchs/ccburn/actions/workflows/ci.yml)
43
43
  [![Release](https://img.shields.io/github/actions/workflow/status/JuanjoFuchs/ccburn/release.yml?label=Release)](https://github.com/JuanjoFuchs/ccburn/actions/workflows/release.yml)
44
44
  [![PyPI](https://img.shields.io/pypi/v/ccburn)](https://pypi.org/project/ccburn/)
45
45
  [![Python](https://img.shields.io/pypi/pyversions/ccburn)](https://pypi.org/project/ccburn/)
46
46
  [![GitHub Release](https://img.shields.io/github/v/release/JuanjoFuchs/ccburn)](https://github.com/JuanjoFuchs/ccburn/releases)
47
- [![WinGet](https://img.shields.io/badge/WinGet-JuanjoFuchs.ccburn-blue)](https://winstall.app/apps/JuanjoFuchs.ccburn)
47
+ [![WinGet](https://img.shields.io/badge/WinGet-pending-yellow)](https://github.com/microsoft/winget-pkgs/pulls?q=is%3Apr+ccburn)
48
48
  [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
49
49
 
50
+ <p align="center">
51
+ <img src="docs/cash1.png" alt="Burning tokens" width="140">
52
+ </p>
53
+
54
+ <p align="center">
55
+ <strong>Watch your tokens burn — before you get burned.</strong>
56
+ </p>
57
+
50
58
  TUI and CLI for Claude Code usage limits — burn-up charts, compact mode for status bars, JSON for automation.
51
59
 
52
60
  ![ccburn screenshot](docs/ccburn.png)
@@ -54,7 +62,7 @@ TUI and CLI for Claude Code usage limits — burn-up charts, compact mode for st
54
62
  ## Features
55
63
 
56
64
  - **Real-time burn-up charts** — Visualize session and weekly usage with live-updating terminal graphics
57
- - **Pace indicators** — See if you're ahead, on pace, or behind your usage budget (🧊/🔥/🚨)
65
+ - **Pace indicators** — 🧊 Cool. 🔥 On pace. 🚨 Too hot.
58
66
  - **Multiple output modes** — Full TUI, compact single-line for status bars, or JSON for scripting
59
67
  - **Automatic data persistence** — SQLite-backed history for trend analysis
60
68
  - **Dynamic window title** — Terminal tab shows current usage at a glance
@@ -62,7 +70,7 @@ TUI and CLI for Claude Code usage limits — burn-up charts, compact mode for st
62
70
 
63
71
  ## Installation
64
72
 
65
- ### Windows (WinGet)
73
+ ### Windows (WinGet) — *pending approval*
66
74
 
67
75
  ```powershell
68
76
  winget install JuanjoFuchs.ccburn
@@ -1,13 +1,21 @@
1
- # ccburn
1
+ # 🔥 ccburn
2
2
 
3
3
  [![CI](https://img.shields.io/github/actions/workflow/status/JuanjoFuchs/ccburn/ci.yml?branch=main&label=CI)](https://github.com/JuanjoFuchs/ccburn/actions/workflows/ci.yml)
4
4
  [![Release](https://img.shields.io/github/actions/workflow/status/JuanjoFuchs/ccburn/release.yml?label=Release)](https://github.com/JuanjoFuchs/ccburn/actions/workflows/release.yml)
5
5
  [![PyPI](https://img.shields.io/pypi/v/ccburn)](https://pypi.org/project/ccburn/)
6
6
  [![Python](https://img.shields.io/pypi/pyversions/ccburn)](https://pypi.org/project/ccburn/)
7
7
  [![GitHub Release](https://img.shields.io/github/v/release/JuanjoFuchs/ccburn)](https://github.com/JuanjoFuchs/ccburn/releases)
8
- [![WinGet](https://img.shields.io/badge/WinGet-JuanjoFuchs.ccburn-blue)](https://winstall.app/apps/JuanjoFuchs.ccburn)
8
+ [![WinGet](https://img.shields.io/badge/WinGet-pending-yellow)](https://github.com/microsoft/winget-pkgs/pulls?q=is%3Apr+ccburn)
9
9
  [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
10
10
 
11
+ <p align="center">
12
+ <img src="docs/cash1.png" alt="Burning tokens" width="140">
13
+ </p>
14
+
15
+ <p align="center">
16
+ <strong>Watch your tokens burn — before you get burned.</strong>
17
+ </p>
18
+
11
19
  TUI and CLI for Claude Code usage limits — burn-up charts, compact mode for status bars, JSON for automation.
12
20
 
13
21
  ![ccburn screenshot](docs/ccburn.png)
@@ -15,7 +23,7 @@ TUI and CLI for Claude Code usage limits — burn-up charts, compact mode for st
15
23
  ## Features
16
24
 
17
25
  - **Real-time burn-up charts** — Visualize session and weekly usage with live-updating terminal graphics
18
- - **Pace indicators** — See if you're ahead, on pace, or behind your usage budget (🧊/🔥/🚨)
26
+ - **Pace indicators** — 🧊 Cool. 🔥 On pace. 🚨 Too hot.
19
27
  - **Multiple output modes** — Full TUI, compact single-line for status bars, or JSON for scripting
20
28
  - **Automatic data persistence** — SQLite-backed history for trend analysis
21
29
  - **Dynamic window title** — Terminal tab shows current usage at a glance
@@ -23,7 +31,7 @@ TUI and CLI for Claude Code usage limits — burn-up charts, compact mode for st
23
31
 
24
32
  ## Installation
25
33
 
26
- ### Windows (WinGet)
34
+ ### Windows (WinGet) — *pending approval*
27
35
 
28
36
  ```powershell
29
37
  winget install JuanjoFuchs.ccburn
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ccburn"
7
- version = "0.1.0"
7
+ version = "0.1.2"
8
8
  description = "Terminal-based Claude Code usage limit visualizer with real-time burn-up charts"
9
9
  authors = [{name = "JuanjoFuchs"}]
10
10
  readme = "README.md"
@@ -92,6 +92,9 @@ def check_token_expired(credentials: dict) -> bool:
92
92
  if isinstance(expires_at, str):
93
93
  expiry = datetime.fromisoformat(expires_at.replace("Z", "+00:00"))
94
94
  elif isinstance(expires_at, (int, float)):
95
+ # Handle milliseconds (JS timestamps) vs seconds (Unix timestamps)
96
+ if expires_at > 1e12: # Likely milliseconds
97
+ expires_at = expires_at / 1000
95
98
  expiry = datetime.fromtimestamp(expires_at, tz=timezone.utc)
96
99
  else:
97
100
  return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ccburn
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Terminal-based Claude Code usage limit visualizer with real-time burn-up charts
5
5
  Author: JuanjoFuchs
6
6
  License-Expression: MIT
@@ -37,16 +37,24 @@ Requires-Dist: twine>=4.0.0; extra == "dev"
37
37
  Requires-Dist: pyinstaller>=6.0.0; extra == "dev"
38
38
  Dynamic: license-file
39
39
 
40
- # ccburn
40
+ # 🔥 ccburn
41
41
 
42
42
  [![CI](https://img.shields.io/github/actions/workflow/status/JuanjoFuchs/ccburn/ci.yml?branch=main&label=CI)](https://github.com/JuanjoFuchs/ccburn/actions/workflows/ci.yml)
43
43
  [![Release](https://img.shields.io/github/actions/workflow/status/JuanjoFuchs/ccburn/release.yml?label=Release)](https://github.com/JuanjoFuchs/ccburn/actions/workflows/release.yml)
44
44
  [![PyPI](https://img.shields.io/pypi/v/ccburn)](https://pypi.org/project/ccburn/)
45
45
  [![Python](https://img.shields.io/pypi/pyversions/ccburn)](https://pypi.org/project/ccburn/)
46
46
  [![GitHub Release](https://img.shields.io/github/v/release/JuanjoFuchs/ccburn)](https://github.com/JuanjoFuchs/ccburn/releases)
47
- [![WinGet](https://img.shields.io/badge/WinGet-JuanjoFuchs.ccburn-blue)](https://winstall.app/apps/JuanjoFuchs.ccburn)
47
+ [![WinGet](https://img.shields.io/badge/WinGet-pending-yellow)](https://github.com/microsoft/winget-pkgs/pulls?q=is%3Apr+ccburn)
48
48
  [![License](https://img.shields.io/badge/license-MIT-green)](LICENSE)
49
49
 
50
+ <p align="center">
51
+ <img src="docs/cash1.png" alt="Burning tokens" width="140">
52
+ </p>
53
+
54
+ <p align="center">
55
+ <strong>Watch your tokens burn — before you get burned.</strong>
56
+ </p>
57
+
50
58
  TUI and CLI for Claude Code usage limits — burn-up charts, compact mode for status bars, JSON for automation.
51
59
 
52
60
  ![ccburn screenshot](docs/ccburn.png)
@@ -54,7 +62,7 @@ TUI and CLI for Claude Code usage limits — burn-up charts, compact mode for st
54
62
  ## Features
55
63
 
56
64
  - **Real-time burn-up charts** — Visualize session and weekly usage with live-updating terminal graphics
57
- - **Pace indicators** — See if you're ahead, on pace, or behind your usage budget (🧊/🔥/🚨)
65
+ - **Pace indicators** — 🧊 Cool. 🔥 On pace. 🚨 Too hot.
58
66
  - **Multiple output modes** — Full TUI, compact single-line for status bars, or JSON for scripting
59
67
  - **Automatic data persistence** — SQLite-backed history for trend analysis
60
68
  - **Dynamic window title** — Terminal tab shows current usage at a glance
@@ -62,7 +70,7 @@ TUI and CLI for Claude Code usage limits — burn-up charts, compact mode for st
62
70
 
63
71
  ## Installation
64
72
 
65
- ### Windows (WinGet)
73
+ ### Windows (WinGet) — *pending approval*
66
74
 
67
75
  ```powershell
68
76
  winget install JuanjoFuchs.ccburn
@@ -54,7 +54,7 @@ class TestCLI:
54
54
  result = runner.invoke(app, ["--version"])
55
55
  assert result.exit_code == 0
56
56
  assert "ccburn" in result.stdout
57
- assert "0.1.0" in result.stdout
57
+ assert "0.1.1" in result.stdout
58
58
 
59
59
  def test_help(self):
60
60
  result = runner.invoke(app, ["--help"])
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes