ccburn 0.1.0__tar.gz → 0.1.1__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.1}/PKG-INFO +1 -1
  2. {ccburn-0.1.0 → ccburn-0.1.1}/pyproject.toml +1 -1
  3. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/data/credentials.py +3 -0
  4. {ccburn-0.1.0 → ccburn-0.1.1/src/ccburn.egg-info}/PKG-INFO +1 -1
  5. {ccburn-0.1.0 → ccburn-0.1.1}/tests/test_cli.py +1 -1
  6. {ccburn-0.1.0 → ccburn-0.1.1}/LICENSE +0 -0
  7. {ccburn-0.1.0 → ccburn-0.1.1}/README.md +0 -0
  8. {ccburn-0.1.0 → ccburn-0.1.1}/setup.cfg +0 -0
  9. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/__init__.py +0 -0
  10. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/app.py +0 -0
  11. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/cli.py +0 -0
  12. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/data/__init__.py +0 -0
  13. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/data/history.py +0 -0
  14. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/data/models.py +0 -0
  15. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/data/usage_client.py +0 -0
  16. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/display/__init__.py +0 -0
  17. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/display/chart.py +0 -0
  18. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/display/gauges.py +0 -0
  19. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/display/layout.py +0 -0
  20. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/main.py +0 -0
  21. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/utils/__init__.py +0 -0
  22. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/utils/calculator.py +0 -0
  23. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn/utils/formatting.py +0 -0
  24. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn.egg-info/SOURCES.txt +0 -0
  25. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn.egg-info/dependency_links.txt +0 -0
  26. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn.egg-info/entry_points.txt +0 -0
  27. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn.egg-info/requires.txt +0 -0
  28. {ccburn-0.1.0 → ccburn-0.1.1}/src/ccburn.egg-info/top_level.txt +0 -0
  29. {ccburn-0.1.0 → ccburn-0.1.1}/tests/test_calculator.py +0 -0
  30. {ccburn-0.1.0 → ccburn-0.1.1}/tests/test_formatting.py +0 -0
  31. {ccburn-0.1.0 → ccburn-0.1.1}/tests/test_history.py +0 -0
  32. {ccburn-0.1.0 → ccburn-0.1.1}/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.1
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
@@ -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.1"
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.1
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
@@ -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
File without changes