aws-cost-calculator-cli 1.0.2__py3-none-any.whl → 1.8.2__py3-none-any.whl

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.

Potentially problematic release.


This version of aws-cost-calculator-cli might be problematic. Click here for more details.

@@ -1,164 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: aws-cost-calculator-cli
3
- Version: 1.0.2
4
- Summary: AWS Cost Calculator CLI - Calculate daily and annual AWS costs across multiple accounts
5
- Home-page: https://github.com/yourusername/cost-calculator
6
- Author: Cost Optimization Team
7
- Author-email:
8
- Project-URL: Documentation, https://github.com/yourusername/cost-calculator/blob/main/README.md
9
- Keywords: aws cost calculator billing optimization cloud
10
- Classifier: Development Status :: 4 - Beta
11
- Classifier: Intended Audience :: Developers
12
- Classifier: Intended Audience :: System Administrators
13
- Classifier: Topic :: System :: Monitoring
14
- Classifier: Topic :: Utilities
15
- Classifier: License :: OSI Approved :: MIT License
16
- Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.8
18
- Classifier: Programming Language :: Python :: 3.9
19
- Classifier: Programming Language :: Python :: 3.10
20
- Classifier: Programming Language :: Python :: 3.11
21
- Requires-Python: >=3.8
22
- Description-Content-Type: text/markdown
23
- License-File: LICENSE
24
- Requires-Dist: click>=8.0.0
25
- Requires-Dist: boto3>=1.26.0
26
- Dynamic: author
27
- Dynamic: classifier
28
- Dynamic: description
29
- Dynamic: description-content-type
30
- Dynamic: home-page
31
- Dynamic: keywords
32
- Dynamic: license-file
33
- Dynamic: project-url
34
- Dynamic: requires-dist
35
- Dynamic: requires-python
36
- Dynamic: summary
37
-
38
- # AWS Cost Calculator (cc)
39
-
40
- A CLI tool to quickly calculate AWS costs across multiple accounts.
41
-
42
- ## Installation
43
-
44
- ```bash
45
- cd ~/cost-calculator
46
- pip install -e .
47
- ```
48
-
49
- ## Quick Start
50
-
51
- ### 1. Login to AWS SSO
52
-
53
- ```bash
54
- aws sso login --profile my_aws_profile
55
- ```
56
-
57
- **Note:** You need to do this before running cost calculations. The SSO session typically lasts 8-12 hours.
58
-
59
- ### 2. Initialize a profile
60
-
61
- ```bash
62
- cc init --profile myprofile \
63
- --aws-profile my_aws_profile \
64
- --accounts "123456789012,234567890123,345678901234"
65
- ```
66
-
67
- ### 3. Calculate costs
68
-
69
- ```bash
70
- # Default: Today minus 2 days, going back 30 days
71
- cc calculate --profile myprofile
72
-
73
- # Specific start date
74
- cc calculate --profile myprofile --start-date 2025-11-04
75
-
76
- # Custom offset and window
77
- cc calculate --profile myprofile --offset 2 --window 30
78
-
79
- # JSON output
80
- cc calculate --profile myprofile --json-output
81
- ```
82
-
83
- ### 4. List profiles
84
-
85
- ```bash
86
- cc list-profiles
87
- ```
88
-
89
- ## How It Works
90
-
91
- ### Date Calculation
92
- - **Start Date**: Defaults to today, or specify with `--start-date`
93
- - **Offset**: Days to go back from start date (default: 2)
94
- - **Window**: Number of days to analyze (default: 30)
95
-
96
- Example: If today is Nov 4, 2025:
97
- - With offset=2, window=30: Analyzes Oct 3 - Nov 2 (30 days)
98
-
99
- ### Cost Calculation
100
- 1. **Operational Costs**: Sum of daily costs ÷ window days
101
- 2. **Support Allocation**:
102
- - Gets support cost from the analysis month
103
- - Divides by 2 (50% allocation)
104
- - Divides by days in that month
105
- 3. **Daily Rate**: Operational + Support per day
106
- 4. **Annual Projection**: Daily rate × 365
107
-
108
- ### Filters Applied
109
- - **Billing Entity**: AWS only (excludes marketplace)
110
- - **Excluded**: Tax, Support (calculated separately)
111
- - **Metric**: Net Amortized Cost
112
-
113
- ## Configuration
114
-
115
- Profiles are stored in: `~/.config/cost-calculator/profiles.json`
116
-
117
- Example:
118
- ```json
119
- {
120
- "myprofile": {
121
- "aws_profile": "my_aws_profile",
122
- "accounts": ["123456789012", "234567890123", "345678901234"]
123
- }
124
- }
125
- ```
126
-
127
- ## Examples
128
-
129
- ```bash
130
- # Quick daily check
131
- cc calculate --profile myprofile
132
-
133
- # Historical analysis
134
- cc calculate --profile myprofile --start-date 2025-10-01
135
-
136
- # Export to JSON for processing
137
- cc calculate --profile myprofile --json-output > costs.json
138
-
139
- # Different window size
140
- cc calculate --profile myprofile --window 60
141
- ```
142
-
143
- ## Output
144
-
145
- ```
146
- Analyzing: 2025-10-03 to 2025-11-02 (30 days)
147
- AWS Profile: my_aws_profile
148
- Accounts: 3
149
-
150
- Fetching cost data...
151
- Fetching support costs...
152
- ============================================================
153
- Period: 2025-10-03 to 2025-11-02
154
- Days analyzed: 30
155
- ============================================================
156
- Total operational cost: $450,000.00
157
- Daily operational: $14,516.13
158
- Support (month): $15,000.00
159
- Support per day (÷2÷days): $241.94
160
- ============================================================
161
- DAILY RATE: $14,758.07
162
- ANNUAL PROJECTION: $5,386,695
163
- ============================================================
164
- ```
@@ -1,8 +0,0 @@
1
- aws_cost_calculator_cli-1.0.2.dist-info/licenses/LICENSE,sha256=cYtmQZHNGGTXOtg3T7LHDRneleaH0dHXHfxFV3WR50Y,1079
2
- cost_calculator/__init__.py,sha256=PJeIqvWh5AYJVrJxPPkI4pJnAt37rIjasrNS0I87kaM,52
3
- cost_calculator/cli.py,sha256=HsVEZhasXTK1fyeStdJFEng7Dj5l5JK9aMfQxOL6N5I,16320
4
- aws_cost_calculator_cli-1.0.2.dist-info/METADATA,sha256=ZF9eEr4PJEPlKOeV3wMV56nnZnBAGIdeJpaL821X5QE,4227
5
- aws_cost_calculator_cli-1.0.2.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
6
- aws_cost_calculator_cli-1.0.2.dist-info/entry_points.txt,sha256=_5Qy4EcHbYVYrdgOu1E48faMHb9fLUl5VJ3djDHuJBo,47
7
- aws_cost_calculator_cli-1.0.2.dist-info/top_level.txt,sha256=PRwGPPlNqASfyhGHDjSfyl4SXeE7GF3OVTu1tY1Uqyc,16
8
- aws_cost_calculator_cli-1.0.2.dist-info/RECORD,,