aws-cost-calculator-cli 1.11.0__tar.gz → 1.11.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 (22) hide show
  1. {aws_cost_calculator_cli-1.11.0/aws_cost_calculator_cli.egg-info → aws_cost_calculator_cli-1.11.1}/PKG-INFO +1 -1
  2. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1/aws_cost_calculator_cli.egg-info}/PKG-INFO +1 -1
  3. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/cost_calculator/cli.py +50 -8
  4. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/setup.py +1 -1
  5. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/CHANGES.md +0 -0
  6. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/LICENSE +0 -0
  7. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/MANIFEST.in +0 -0
  8. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/README.md +0 -0
  9. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/aws_cost_calculator_cli.egg-info/SOURCES.txt +0 -0
  10. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/aws_cost_calculator_cli.egg-info/dependency_links.txt +0 -0
  11. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/aws_cost_calculator_cli.egg-info/entry_points.txt +0 -0
  12. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/aws_cost_calculator_cli.egg-info/requires.txt +0 -0
  13. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/aws_cost_calculator_cli.egg-info/top_level.txt +0 -0
  14. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/cost_calculator/__init__.py +0 -0
  15. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/cost_calculator/api_client.py +0 -0
  16. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/cost_calculator/cur.py +0 -0
  17. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/cost_calculator/drill.py +0 -0
  18. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/cost_calculator/executor.py +0 -0
  19. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/cost_calculator/forensics.py +0 -0
  20. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/cost_calculator/monthly.py +0 -0
  21. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/cost_calculator/trends.py +0 -0
  22. {aws_cost_calculator_cli-1.11.0 → aws_cost_calculator_cli-1.11.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aws-cost-calculator-cli
3
- Version: 1.11.0
3
+ Version: 1.11.1
4
4
  Summary: AWS Cost Calculator CLI - Calculate daily and annual AWS costs across multiple accounts
5
5
  Home-page: https://github.com/trilogy-group/aws-cost-calculator
6
6
  Author: Cost Optimization Team
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aws-cost-calculator-cli
3
- Version: 1.11.0
3
+ Version: 1.11.1
4
4
  Summary: AWS Cost Calculator CLI - Calculate daily and annual AWS costs across multiple accounts
5
5
  Home-page: https://github.com/trilogy-group/aws-cost-calculator
6
6
  Author: Cost Optimization Team
@@ -1391,10 +1391,22 @@ def find_account_profile(account_id):
1391
1391
  @click.option('--json', 'output_json', is_flag=True, help='Output as JSON')
1392
1392
  def daily(profile, start_date, end_date, days, service, account, sso, output_json):
1393
1393
  """
1394
- Get daily cost breakdown with granular detail
1394
+ Get daily cost breakdown with granular detail.
1395
1395
 
1396
- Example:
1396
+ Shows day-by-day costs for specific services and accounts, useful for:
1397
+ - Identifying cost spikes on specific dates
1398
+ - Validating daily cost patterns
1399
+ - Calculating precise daily averages
1400
+
1401
+ Examples:
1402
+ # Last 10 days of CloudWatch costs for specific account
1397
1403
  cc daily --profile khoros --days 10 --service AmazonCloudWatch --account 820054669588
1404
+
1405
+ # Custom date range with JSON output for automation
1406
+ cc daily --profile khoros --start-date 2025-10-28 --end-date 2025-11-06 --json
1407
+
1408
+ # Find high-cost days using jq
1409
+ cc daily --profile khoros --days 30 --json | jq '.daily_costs | map(select(.cost > 1000))'
1398
1410
  """
1399
1411
  # Load profile
1400
1412
  config = load_profile(profile)
@@ -1545,11 +1557,25 @@ def daily(profile, start_date, end_date, days, service, account, sso, output_jso
1545
1557
  @click.option('--json', 'output_json', is_flag=True, help='Output as JSON')
1546
1558
  def compare(profile, account, service, before, after, expected_reduction, sso, output_json):
1547
1559
  """
1548
- Compare costs between two periods
1560
+ Compare costs between two periods for validation and analysis.
1549
1561
 
1550
- Example:
1562
+ Perfect for:
1563
+ - Validating cost optimization savings
1564
+ - Before/after migration analysis
1565
+ - Measuring impact of infrastructure changes
1566
+ - Automated savings validation in CI/CD
1567
+
1568
+ Examples:
1569
+ # Validate Datadog migration savings (expect 50% reduction)
1551
1570
  cc compare --profile khoros --account 180770971501 --service AmazonCloudWatch \
1552
1571
  --before "2025-10-28:2025-11-06" --after "2025-11-17:2025-11-26" --expected-reduction 50
1572
+
1573
+ # Compare total costs across all accounts
1574
+ cc compare --profile khoros --before "2025-10-01:2025-10-31" --after "2025-11-01:2025-11-30"
1575
+
1576
+ # JSON output for automated validation
1577
+ cc compare --profile khoros --service EC2 --before "2025-10-01:2025-10-07" \
1578
+ --after "2025-11-08:2025-11-14" --json | jq '.comparison.met_expectation'
1553
1579
  """
1554
1580
  # Load profile
1555
1581
  config = load_profile(profile)
@@ -1731,11 +1757,27 @@ def compare(profile, account, service, before, after, expected_reduction, sso, o
1731
1757
  @click.option('--json', 'output_json', is_flag=True, help='Output as JSON')
1732
1758
  def tags(profile, tag_key, tag_value, start_date, end_date, days, sso, output_json):
1733
1759
  """
1734
- Analyze costs by resource tags
1760
+ Analyze costs grouped by resource tags for cost attribution.
1735
1761
 
1736
- Example:
1737
- cc tags --profile khoros --tag-key "datadog:org" --days 30
1738
- cc tags --profile khoros --tag-key "Environment" --tag-value "Production"
1762
+ Useful for:
1763
+ - Cost allocation by team, project, or environment
1764
+ - Identifying untagged resources (cost attribution gaps)
1765
+ - Tracking costs by cost center or department
1766
+ - Validating tagging compliance
1767
+
1768
+ Examples:
1769
+ # See all costs by Environment tag
1770
+ cc tags --profile khoros --tag-key "Environment" --days 30
1771
+
1772
+ # Filter to specific tag value
1773
+ cc tags --profile khoros --tag-key "Team" --tag-value "Platform" --days 30
1774
+
1775
+ # Find top cost centers with JSON output
1776
+ cc tags --profile khoros --tag-key "CostCenter" --days 30 --json | \
1777
+ jq '.tag_costs | sort_by(-.cost) | .[:5]'
1778
+
1779
+ # Identify untagged resources (look for empty tag values)
1780
+ cc tags --profile khoros --tag-key "Owner" --days 7
1739
1781
  """
1740
1782
  # Load profile
1741
1783
  config = load_profile(profile)
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name='aws-cost-calculator-cli',
8
- version='1.11.0',
8
+ version='1.11.1',
9
9
  packages=['cost_calculator'],
10
10
  install_requires=[
11
11
  'click>=8.0.0',