terraformgraph 1.0.1__py3-none-any.whl → 1.0.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.
@@ -1,6 +1,6 @@
1
1
  """terraformgraph - Create architecture diagrams from Terraform configurations."""
2
2
 
3
- __version__ = "1.0.1"
3
+ __version__ = "1.0.2"
4
4
 
5
5
  from .aggregator import ResourceAggregator
6
6
  from .config_loader import ConfigLoader
terraformgraph/main.py CHANGED
@@ -6,14 +6,17 @@ Generates AWS infrastructure diagrams from Terraform code using official AWS ico
6
6
  Creates high-level architectural diagrams with logical service groupings.
7
7
 
8
8
  Usage:
9
- # Parse a directory directly (auto-discovers icons in ./aws-official-icons)
10
- terraformgraph -t ./infrastructure -o diagram.html
9
+ # Parse a directory directly (generates diagram.html by default)
10
+ terraformgraph -t ./infrastructure
11
11
 
12
12
  # Parse a specific environment subdirectory
13
- terraformgraph -t ./infrastructure -e dev -o diagram.html
13
+ terraformgraph -t ./infrastructure -e dev
14
+
15
+ # With custom output path
16
+ terraformgraph -t ./infrastructure -o my-diagram.html
14
17
 
15
18
  # With custom icons path
16
- terraformgraph -t ./infrastructure -i /path/to/icons -o diagram.html
19
+ terraformgraph -t ./infrastructure -i /path/to/icons
17
20
  """
18
21
 
19
22
  import argparse
@@ -33,14 +36,17 @@ def main():
33
36
  formatter_class=argparse.RawDescriptionHelpFormatter,
34
37
  epilog='''
35
38
  Examples:
36
- # Parse a directory (auto-discovers icons in ./aws-official-icons)
37
- terraformgraph -t ./infrastructure -o diagram.html
39
+ # Parse a directory (generates diagram.html by default)
40
+ terraformgraph -t ./infrastructure
38
41
 
39
42
  # Parse a specific environment subdirectory
40
- terraformgraph -t ./infrastructure -e dev -o diagram.html
43
+ terraformgraph -t ./infrastructure -e dev
44
+
45
+ # With custom output path
46
+ terraformgraph -t ./infrastructure -o my-diagram.html
41
47
 
42
48
  # With custom icons path
43
- terraformgraph -t ./infrastructure -i /path/to/icons -o diagram.html
49
+ terraformgraph -t ./infrastructure -i /path/to/icons
44
50
  '''
45
51
  )
46
52
 
@@ -64,8 +70,8 @@ Examples:
64
70
 
65
71
  parser.add_argument(
66
72
  '-o', '--output',
67
- required=True,
68
- help='Output file path (HTML)'
73
+ default='diagram.html',
74
+ help='Output file path (HTML). Default: diagram.html'
69
75
  )
70
76
 
71
77
  parser.add_argument(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: terraformgraph
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Generate interactive architecture diagrams from Terraform configurations
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License: MIT
@@ -75,9 +75,11 @@ pip install -e .
75
75
  Generate a diagram from a Terraform directory:
76
76
 
77
77
  ```bash
78
- terraformgraph -t ./infrastructure -o diagram.html
78
+ terraformgraph -t ./infrastructure
79
79
  ```
80
80
 
81
+ This creates `diagram.html` in the current directory.
82
+
81
83
  ### With Environment Subdirectories
82
84
 
83
85
  If your Terraform is organized by environment:
@@ -91,7 +93,7 @@ terraformgraph -t ./infrastructure -e prod -o prod-diagram.html
91
93
  For beautiful AWS service icons, download the [AWS Architecture Icons](https://aws.amazon.com/architecture/icons/) and extract them:
92
94
 
93
95
  ```bash
94
- terraformgraph -t ./infrastructure -i ./AWS_Icons -o diagram.html
96
+ terraformgraph -t ./infrastructure -i ./AWS_Icons
95
97
  ```
96
98
 
97
99
  ## Command Line Options
@@ -101,7 +103,7 @@ terraformgraph -t ./infrastructure -i ./AWS_Icons -o diagram.html
101
103
  | `-t, --terraform` | Yes | Path to Terraform directory |
102
104
  | `-e, --environment` | No | Environment subdirectory (dev, staging, prod) |
103
105
  | `-i, --icons` | No | Path to AWS icons directory |
104
- | `-o, --output` | Yes | Output HTML file path |
106
+ | `-o, --output` | No | Output HTML file path (default: `diagram.html`) |
105
107
  | `-v, --verbose` | No | Enable debug output |
106
108
 
107
109
  ## Configuration
@@ -1,17 +1,17 @@
1
- terraformgraph/__init__.py,sha256=NeUERqcQFeEDBB3zRE5b-y1MtTz85WrtpmO5nVBOgk4,469
1
+ terraformgraph/__init__.py,sha256=fnxp13XW7PX9_BGYUGceV13yE__mbRTYmGqdS-UuxqE,469
2
2
  terraformgraph/__main__.py,sha256=E1MUfKa9LQ2_zosMoerGFHMXqWzLc9D9WO2ZUyMyN5Y,134
3
3
  terraformgraph/aggregator.py,sha256=fWTZbiwac8CEGJeQlN3X3FNAmHh5mPBsx-3dTnzaLVc,14238
4
4
  terraformgraph/config_loader.py,sha256=D5EIRqFX6Gz1BNu2b2pbG_YWqcTrUKE2iebyR58FMMo,2195
5
5
  terraformgraph/icons.py,sha256=5moYr_u4yP-Miyt0GVULavjJueZGdTwUh0W9qNJszSo,42396
6
6
  terraformgraph/layout.py,sha256=xqua1i-y3PQ_10-ZHMM43vpob87dJHbvKvs48gFp8Iw,8219
7
- terraformgraph/main.py,sha256=FA4npH6hSJRQun_y-A9by39WxOIcRX69zdkRWsJRVec,6576
7
+ terraformgraph/main.py,sha256=jekIKiWLbRjYGXIUaTdxnD6nInpLoX7xoHaqyqrOPPM,6668
8
8
  terraformgraph/parser.py,sha256=BDRTbQIMrTr-B_I4F17udT3hskAhN3jE5uajpp_OdZU,12525
9
9
  terraformgraph/renderer.py,sha256=mAen2OxvuH7it8pAWbO6aMS75WuW8VMSUwxufxpyJ4g,42233
10
10
  terraformgraph/config/aggregation_rules.yaml,sha256=BDkT37jCAQ0fKYqGmDJcuo6XjvfS1up5Yk1DXE4aP8M,4340
11
11
  terraformgraph/config/logical_connections.yaml,sha256=ECOByIfuC5PStsukEkulEB8ixe4F28Q5Ak7xCs0yogA,2901
12
- terraformgraph-1.0.1.dist-info/licenses/LICENSE,sha256=14dWZLNvm9xaUFeRin_gDB_iynn6m604g5GsutxqYsM,1068
13
- terraformgraph-1.0.1.dist-info/METADATA,sha256=fZwChDSsNcUp7laN-XmXnQLoOEF4F1RDr5zMNP1HZqg,4767
14
- terraformgraph-1.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
15
- terraformgraph-1.0.1.dist-info/entry_points.txt,sha256=dONSqeGLyLFZCNcNjJiyLXDa23j-iwAq3u6Qtv6RI0w,60
16
- terraformgraph-1.0.1.dist-info/top_level.txt,sha256=iquGz8nmBrUGI8SQKJcYrq8ea7UHnBMEXRel0QuNJkI,15
17
- terraformgraph-1.0.1.dist-info/RECORD,,
12
+ terraformgraph-1.0.2.dist-info/licenses/LICENSE,sha256=14dWZLNvm9xaUFeRin_gDB_iynn6m604g5GsutxqYsM,1068
13
+ terraformgraph-1.0.2.dist-info/METADATA,sha256=moAQ8GUvfQ6aywg-N9FgAF5pz9FkMctkYD41Su2LZyI,4815
14
+ terraformgraph-1.0.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
15
+ terraformgraph-1.0.2.dist-info/entry_points.txt,sha256=dONSqeGLyLFZCNcNjJiyLXDa23j-iwAq3u6Qtv6RI0w,60
16
+ terraformgraph-1.0.2.dist-info/top_level.txt,sha256=iquGz8nmBrUGI8SQKJcYrq8ea7UHnBMEXRel0QuNJkI,15
17
+ terraformgraph-1.0.2.dist-info/RECORD,,