colacloud-cli 0.3.0__tar.gz → 0.3.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 (26) hide show
  1. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/PKG-INFO +1 -1
  2. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/pyproject.toml +1 -1
  3. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/formatters.py +16 -14
  4. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/.gitignore +0 -0
  5. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/.mcp.json +0 -0
  6. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/LICENSE +0 -0
  7. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/README.md +0 -0
  8. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/scripts/smoke_test.py +0 -0
  9. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/__init__.py +0 -0
  10. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/api.py +0 -0
  11. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/commands/__init__.py +0 -0
  12. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/commands/avas.py +0 -0
  13. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/commands/barcode.py +0 -0
  14. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/commands/colas.py +0 -0
  15. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/commands/config.py +0 -0
  16. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/commands/permittees.py +0 -0
  17. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/commands/processing_times.py +0 -0
  18. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/commands/production_reports.py +0 -0
  19. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/commands/usage.py +0 -0
  20. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/commands/utils.py +0 -0
  21. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/config.py +0 -0
  22. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/src/colacloud_cli/main.py +0 -0
  23. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/tests/__init__.py +0 -0
  24. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/tests/test_api.py +0 -0
  25. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/tests/test_cli.py +0 -0
  26. {colacloud_cli-0.3.0 → colacloud_cli-0.3.1}/tests/test_config.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: colacloud-cli
3
- Version: 0.3.0
3
+ Version: 0.3.1
4
4
  Summary: Command-line interface for the COLA Cloud API
5
5
  Project-URL: Homepage, https://colacloud.us
6
6
  Project-URL: Documentation, https://docs.colacloud.us/api-reference
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "colacloud-cli"
3
- version = "0.3.0"
3
+ version = "0.3.1"
4
4
  description = "Command-line interface for the COLA Cloud API"
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
@@ -383,23 +383,25 @@ def format_permittee_detail(permittee: dict[str, Any], console: Console) -> None
383
383
  console.print("[bold]Company Information[/]")
384
384
  console.print(info_table)
385
385
 
386
- # COLA stats
387
- stats_table = Table(show_header=False, box=None, padding=(0, 2))
388
- stats_table.add_column("Field", style="dim")
389
- stats_table.add_column("Value")
390
-
391
- stats_table.add_row("Total COLAs", format_number(permittee.get("colas")))
392
- stats_table.add_row(
393
- "Approved COLAs", format_number(permittee.get("colas_approved"))
394
- )
395
- if permittee.get("last_cola_application_date"):
386
+ # COLA stats (paid plans only)
387
+ if permittee.get("colas") is not None:
388
+ stats_table = Table(show_header=False, box=None, padding=(0, 2))
389
+ stats_table.add_column("Field", style="dim")
390
+ stats_table.add_column("Value")
391
+
392
+ stats_table.add_row("Total COLAs", format_number(permittee.get("colas")))
396
393
  stats_table.add_row(
397
- "Last Application", format_date(permittee.get("last_cola_application_date"))
394
+ "Approved COLAs", format_number(permittee.get("colas_approved"))
398
395
  )
396
+ if permittee.get("last_cola_application_date"):
397
+ stats_table.add_row(
398
+ "Last Application",
399
+ format_date(permittee.get("last_cola_application_date")),
400
+ )
399
401
 
400
- console.print()
401
- console.print("[bold]COLA Statistics[/]")
402
- console.print(stats_table)
402
+ console.print()
403
+ console.print("[bold]COLA Statistics[/]")
404
+ console.print(stats_table)
403
405
 
404
406
  # Recent COLAs
405
407
  recent_colas = permittee.get("recent_colas", [])
File without changes
File without changes
File without changes
File without changes