terraformgraph 1.0.1__tar.gz → 1.0.2__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 (24) hide show
  1. {terraformgraph-1.0.1/terraformgraph.egg-info → terraformgraph-1.0.2}/PKG-INFO +6 -4
  2. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/README.md +5 -3
  3. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/pyproject.toml +1 -1
  4. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/__init__.py +1 -1
  5. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/main.py +16 -10
  6. {terraformgraph-1.0.1 → terraformgraph-1.0.2/terraformgraph.egg-info}/PKG-INFO +6 -4
  7. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/LICENSE +0 -0
  8. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/setup.cfg +0 -0
  9. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/__main__.py +0 -0
  10. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/aggregator.py +0 -0
  11. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/config/aggregation_rules.yaml +0 -0
  12. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/config/logical_connections.yaml +0 -0
  13. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/config_loader.py +0 -0
  14. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/icons.py +0 -0
  15. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/layout.py +0 -0
  16. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/parser.py +0 -0
  17. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph/renderer.py +0 -0
  18. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph.egg-info/SOURCES.txt +0 -0
  19. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph.egg-info/dependency_links.txt +0 -0
  20. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph.egg-info/entry_points.txt +0 -0
  21. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph.egg-info/requires.txt +0 -0
  22. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/terraformgraph.egg-info/top_level.txt +0 -0
  23. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/tests/test_config_loader.py +0 -0
  24. {terraformgraph-1.0.1 → terraformgraph-1.0.2}/tests/test_integration.py +0 -0
@@ -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
@@ -37,9 +37,11 @@ pip install -e .
37
37
  Generate a diagram from a Terraform directory:
38
38
 
39
39
  ```bash
40
- terraformgraph -t ./infrastructure -o diagram.html
40
+ terraformgraph -t ./infrastructure
41
41
  ```
42
42
 
43
+ This creates `diagram.html` in the current directory.
44
+
43
45
  ### With Environment Subdirectories
44
46
 
45
47
  If your Terraform is organized by environment:
@@ -53,7 +55,7 @@ terraformgraph -t ./infrastructure -e prod -o prod-diagram.html
53
55
  For beautiful AWS service icons, download the [AWS Architecture Icons](https://aws.amazon.com/architecture/icons/) and extract them:
54
56
 
55
57
  ```bash
56
- terraformgraph -t ./infrastructure -i ./AWS_Icons -o diagram.html
58
+ terraformgraph -t ./infrastructure -i ./AWS_Icons
57
59
  ```
58
60
 
59
61
  ## Command Line Options
@@ -63,7 +65,7 @@ terraformgraph -t ./infrastructure -i ./AWS_Icons -o diagram.html
63
65
  | `-t, --terraform` | Yes | Path to Terraform directory |
64
66
  | `-e, --environment` | No | Environment subdirectory (dev, staging, prod) |
65
67
  | `-i, --icons` | No | Path to AWS icons directory |
66
- | `-o, --output` | Yes | Output HTML file path |
68
+ | `-o, --output` | No | Output HTML file path (default: `diagram.html`) |
67
69
  | `-v, --verbose` | No | Enable debug output |
68
70
 
69
71
  ## Configuration
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "terraformgraph"
7
- version = "1.0.1"
7
+ version = "1.0.2"
8
8
  description = "Generate interactive architecture diagrams from Terraform configurations"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -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
@@ -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
File without changes
File without changes