quicksight-codegen 0.1.0__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.
@@ -0,0 +1,203 @@
1
+ """
2
+ quicksight-codegen - Generate Amazon QuickSight dashboards as code
3
+
4
+ This library provides a Python API for programmatically creating
5
+ QuickSight analysis definitions, enabling "BI-as-Code" workflows.
6
+
7
+ Main features:
8
+ - Build dashboard definitions (JSON) programmatically
9
+ - Generate local HTML previews without AWS access
10
+ - Deploy to AWS QuickSight via boto3 (optional)
11
+ - Dataset-agnostic, config-driven approach
12
+ """
13
+
14
+ from .analysis import (
15
+ Analysis,
16
+ Definition,
17
+ Sheet,
18
+ CalculatedField,
19
+ build_definition,
20
+ build_analysis,
21
+ sanitize_definition,
22
+ )
23
+
24
+ from .parameters import (
25
+ Parameter,
26
+ DateTimeParameter,
27
+ DecimalParameter,
28
+ IntegerParameter,
29
+ StringParameter,
30
+ )
31
+
32
+ from .controls import (
33
+ ParameterControl,
34
+ ParameterDateTimePickerControl,
35
+ ParameterDropDownControl,
36
+ ParameterListControl,
37
+ ParameterSliderControl,
38
+ ParameterTextAreaControl,
39
+ ParameterTextFieldControl,
40
+ )
41
+
42
+ from .filters import (
43
+ Filter,
44
+ FilterGroup,
45
+ CategoryFilter,
46
+ NumericEqualityFilter,
47
+ TimeRangeFilter,
48
+ FilterControl,
49
+ FilterDateTimePickerControl,
50
+ FilterDropdownControl,
51
+ )
52
+
53
+ from .visuals import (
54
+ Visual,
55
+ BarChartVisual,
56
+ LineChartVisual,
57
+ TableVisual,
58
+ PivotTableVisual,
59
+ KPIVisual,
60
+ PieChartVisual,
61
+ ScatterPlotVisual,
62
+ TreeMapVisual,
63
+ WaterfallVisual,
64
+ FilledMapVisual,
65
+ GeospatialMapVisual,
66
+ FunnelChartVisual,
67
+ HeatMapVisual,
68
+ BoxPlotVisual,
69
+ GaugeChartVisual,
70
+ TextBox,
71
+ )
72
+
73
+ from .sheets import (
74
+ create_empty_sheet,
75
+ add_visual_to_sheet,
76
+ add_title,
77
+ )
78
+
79
+ from .deploy import (
80
+ create_analysis_boto3,
81
+ update_analysis_boto3,
82
+ deploy_analysis,
83
+ simulate_deploy,
84
+ )
85
+
86
+ from .preview import (
87
+ generate_html_preview,
88
+ generate_chart_html_preview,
89
+ save_analysis_json,
90
+ )
91
+
92
+ from .auto import (
93
+ auto_dashboard,
94
+ infer_column_types,
95
+ suggest_visuals,
96
+ )
97
+
98
+ from .themes import (
99
+ THEME_PRESETS,
100
+ create_theme,
101
+ get_or_create_theme,
102
+ list_presets,
103
+ )
104
+
105
+ from .discovery import (
106
+ get_account_id,
107
+ list_datasets,
108
+ get_dataset_arn,
109
+ get_user_arn,
110
+ pick_dataset_interactive,
111
+ )
112
+
113
+ from .dataset import (
114
+ fix_dataset_types,
115
+ describe_dataset,
116
+ create_dataset_from_csv,
117
+ )
118
+
119
+ __version__ = "0.1.0"
120
+
121
+ __all__ = [
122
+ # Analysis
123
+ "Analysis",
124
+ "Definition",
125
+ "Sheet",
126
+ "CalculatedField",
127
+ "build_definition",
128
+ "build_analysis",
129
+ "sanitize_definition",
130
+ # Parameters
131
+ "Parameter",
132
+ "DateTimeParameter",
133
+ "DecimalParameter",
134
+ "IntegerParameter",
135
+ "StringParameter",
136
+ # Controls
137
+ "ParameterControl",
138
+ "ParameterDateTimePickerControl",
139
+ "ParameterDropDownControl",
140
+ "ParameterListControl",
141
+ "ParameterSliderControl",
142
+ "ParameterTextAreaControl",
143
+ "ParameterTextFieldControl",
144
+ # Filters
145
+ "Filter",
146
+ "FilterGroup",
147
+ "CategoryFilter",
148
+ "NumericEqualityFilter",
149
+ "TimeRangeFilter",
150
+ "FilterControl",
151
+ "FilterDateTimePickerControl",
152
+ "FilterDropdownControl",
153
+ # Visuals
154
+ "Visual",
155
+ "BarChartVisual",
156
+ "LineChartVisual",
157
+ "TableVisual",
158
+ "PivotTableVisual",
159
+ "KPIVisual",
160
+ "PieChartVisual",
161
+ "ScatterPlotVisual",
162
+ "TreeMapVisual",
163
+ "WaterfallVisual",
164
+ "FilledMapVisual",
165
+ "GeospatialMapVisual",
166
+ "FunnelChartVisual",
167
+ "HeatMapVisual",
168
+ "BoxPlotVisual",
169
+ "GaugeChartVisual",
170
+ "TextBox",
171
+ # Sheets
172
+ "create_empty_sheet",
173
+ "add_visual_to_sheet",
174
+ "add_title",
175
+ # Deploy
176
+ "create_analysis_boto3",
177
+ "update_analysis_boto3",
178
+ "deploy_analysis",
179
+ "simulate_deploy",
180
+ # Preview
181
+ "generate_html_preview",
182
+ "generate_chart_html_preview",
183
+ "save_analysis_json",
184
+ # Auto
185
+ "auto_dashboard",
186
+ "infer_column_types",
187
+ "suggest_visuals",
188
+ # Themes
189
+ "THEME_PRESETS",
190
+ "create_theme",
191
+ "get_or_create_theme",
192
+ "list_presets",
193
+ # Discovery
194
+ "get_account_id",
195
+ "list_datasets",
196
+ "get_dataset_arn",
197
+ "get_user_arn",
198
+ "pick_dataset_interactive",
199
+ # Dataset
200
+ "fix_dataset_types",
201
+ "describe_dataset",
202
+ "create_dataset_from_csv",
203
+ ]
@@ -0,0 +1,4 @@
1
+ """Allow running as: python -m quicksight_codegen"""
2
+ from .cli import main
3
+
4
+ main()