wexample-wex-addon-dev-flutter 0.0.56__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.
File without changes
File without changes
@@ -0,0 +1,14 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_helpers.decorator.base_class import base_class
4
+ from wexample_wex_addon_app.config_value.app_readme_config_value import (
5
+ AppReadmeConfigValue,
6
+ )
7
+
8
+
9
+ @base_class
10
+ class FlutterPackageReadmeContentConfigValue(AppReadmeConfigValue):
11
+ """README generation for Flutter packages."""
12
+
13
+ def _get_app_description(self) -> str:
14
+ return self.workdir.get_app_config().get("description", "")
@@ -0,0 +1,26 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_filestate.item.file.yaml_file import YamlFile
4
+ from wexample_helpers.decorator.base_class import base_class
5
+
6
+
7
+ @base_class
8
+ class FlutterPubspecYamlFile(YamlFile):
9
+ def get_dependencies_versions(
10
+ self, optional: bool = False, group: str = "dev"
11
+ ) -> dict[str, str]:
12
+ config = self.read_config()
13
+
14
+ dependencies = config.search(path="dependencies").get_dict_or_default(
15
+ default={}
16
+ )
17
+ dev_dependencies = config.search(path="dev_dependencies").get_dict_or_default(
18
+ default={}
19
+ )
20
+
21
+ merged = dict(dependencies)
22
+
23
+ if group == "dev":
24
+ merged.update(dev_dependencies)
25
+
26
+ return merged
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_wex_core.common.abstract_addon_manager import AbstractAddonManager
4
+
5
+
6
+ class FlutterAddonManager(AbstractAddonManager):
7
+ pass
File without changes
@@ -0,0 +1,29 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_addon_dev_flutter.workdir.flutter_workdir import FlutterWorkdir
6
+
7
+ if TYPE_CHECKING:
8
+ from wexample_filestate.config_value.readme_content_config_value import (
9
+ ReadmeContentConfigValue,
10
+ )
11
+ from wexample_wex_addon_app.workdir.framework_packages_suite_workdir import (
12
+ FrameworkPackageSuiteWorkdir,
13
+ )
14
+
15
+
16
+ class FlutterPackageWorkdir(FlutterWorkdir):
17
+ def _get_readme_content(self) -> ReadmeContentConfigValue | None:
18
+ from wexample_wex_addon_dev_flutter.config_value.flutter_package_readme_config_value import (
19
+ FlutterPackageReadmeContentConfigValue,
20
+ )
21
+
22
+ return FlutterPackageReadmeContentConfigValue(workdir=self)
23
+
24
+ def _get_suite_package_workdir_class(self) -> type[FrameworkPackageSuiteWorkdir]:
25
+ from wexample_wex_addon_dev_flutter.workdir.flutter_packages_suite_workdir import (
26
+ FlutterPackagesSuiteWorkdir,
27
+ )
28
+
29
+ return FlutterPackagesSuiteWorkdir
@@ -0,0 +1,27 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_addon_app.workdir.framework_packages_suite_workdir import (
6
+ FrameworkPackageSuiteWorkdir,
7
+ )
8
+
9
+ if TYPE_CHECKING:
10
+ from pathlib import Path
11
+
12
+ from wexample_wex_addon_app.workdir.code_base_workdir import CodeBaseWorkdir
13
+
14
+
15
+ class FlutterPackagesSuiteWorkdir(FrameworkPackageSuiteWorkdir):
16
+ def _child_is_package_directory(self, entry: Path) -> bool:
17
+ return entry.is_dir() and (entry / "pubspec.yaml").is_file()
18
+
19
+ def _get_children_package_directory_name(self) -> str:
20
+ return "flutter"
21
+
22
+ def _get_children_package_workdir_class(self) -> type[CodeBaseWorkdir]:
23
+ from wexample_wex_addon_dev_flutter.workdir.flutter_package_workdir import (
24
+ FlutterPackageWorkdir,
25
+ )
26
+
27
+ return FlutterPackageWorkdir
@@ -0,0 +1,132 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_config.options_provider.abstract_options_provider import (
6
+ AbstractOptionsProvider,
7
+ )
8
+ from wexample_wex_addon_app.workdir.code_base_workdir import CodeBaseWorkdir
9
+
10
+ if TYPE_CHECKING:
11
+ from wexample_config.const.types import DictConfig
12
+ from wexample_filestate.option.children_file_factory_option import (
13
+ ChildrenFileFactoryOption,
14
+ )
15
+
16
+ from wexample_wex_addon_dev_flutter.file.flutter_pubspec_yaml_file import (
17
+ FlutterPubspecYamlFile,
18
+ )
19
+
20
+
21
+ class FlutterWorkdir(CodeBaseWorkdir):
22
+ def get_app_config_file(self, reload: bool = True) -> FlutterPubspecYamlFile:
23
+ from wexample_wex_addon_dev_flutter.file.flutter_pubspec_yaml_file import (
24
+ FlutterPubspecYamlFile,
25
+ )
26
+
27
+ config_file = self.find_by_type(FlutterPubspecYamlFile)
28
+ # Read once to populate content with file source.
29
+ config_file.read_text(reload=reload)
30
+ return config_file
31
+
32
+ def get_dependencies_versions(self) -> dict[str, str]:
33
+ return self.get_app_config_file().get_dependencies_versions()
34
+
35
+ def get_main_code_file_extension(self) -> str:
36
+ return "dart"
37
+
38
+ def get_options_providers(self) -> list[type[AbstractOptionsProvider]]:
39
+ from wexample_filestate_flutter.options_provider.flutter_options_provider import (
40
+ FlutterOptionsProvider,
41
+ )
42
+
43
+ options = super().get_options_providers()
44
+
45
+ options.extend(
46
+ [
47
+ FlutterOptionsProvider,
48
+ ]
49
+ )
50
+
51
+ return options
52
+
53
+ def prepare_value(self, raw_value: DictConfig | None = None) -> DictConfig:
54
+ from wexample_filestate.const.disk import DiskItemType
55
+ from wexample_helpers.helpers.array import array_dict_get_by
56
+
57
+ from wexample_wex_addon_dev_flutter.file.flutter_pubspec_yaml_file import (
58
+ FlutterPubspecYamlFile,
59
+ )
60
+
61
+ raw_value = super().prepare_value(raw_value=raw_value)
62
+
63
+ children = raw_value["children"]
64
+
65
+ children.append(
66
+ {
67
+ "class": FlutterPubspecYamlFile,
68
+ "name": "pubspec.yaml",
69
+ "type": DiskItemType.FILE,
70
+ "should_exist": True,
71
+ }
72
+ )
73
+
74
+ # Add common Flutter ignores
75
+ array_dict_get_by("name", ".gitignore", children).setdefault(
76
+ "should_contain_lines", []
77
+ ).extend(
78
+ [
79
+ ".dart_tool/",
80
+ "build/",
81
+ ".packages",
82
+ ".flutter-plugins",
83
+ ".flutter-plugins-dependencies",
84
+ ".flutter-plugins-android",
85
+ ".flutter-plugins-ios",
86
+ ]
87
+ )
88
+
89
+ children.extend(
90
+ [
91
+ {
92
+ "name": "lib",
93
+ "type": DiskItemType.DIRECTORY,
94
+ "should_exist": True,
95
+ "children": [
96
+ self._create_flutter_file_children_filter(),
97
+ ],
98
+ },
99
+ {
100
+ "name": "test",
101
+ "type": DiskItemType.DIRECTORY,
102
+ "should_exist": True,
103
+ "children": [
104
+ self._create_flutter_file_children_filter(),
105
+ ],
106
+ },
107
+ ]
108
+ )
109
+
110
+ return raw_value
111
+
112
+ def _create_flutter_file_children_filter(self) -> ChildrenFileFactoryOption:
113
+ from wexample_filestate.const.disk import DiskItemType
114
+ from wexample_filestate.option.children_filter_option import (
115
+ ChildrenFilterOption,
116
+ )
117
+ from wexample_filestate_flutter.file.flutter_file import FlutterFile
118
+ from wexample_filestate_flutter.option.flutter.dart_format_option import (
119
+ DartFormatOption,
120
+ )
121
+
122
+ return ChildrenFilterOption(
123
+ pattern={
124
+ "class": FlutterFile,
125
+ "type": DiskItemType.FILE,
126
+ "flutter": [
127
+ DartFormatOption.get_name(),
128
+ ],
129
+ },
130
+ name_pattern=r"^.*\.dart$",
131
+ recursive=True,
132
+ )
@@ -0,0 +1,244 @@
1
+ Metadata-Version: 2.1
2
+ Name: wexample-wex-addon-dev-flutter
3
+ Version: 0.0.56
4
+ Summary: Python dev addon for wex
5
+ Author-Email: weeger <contact@wexample.com>
6
+ License: MIT
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Project-URL: homepage, https://github.com/wexample/python-wex-dev-python
11
+ Requires-Python: >=3.10
12
+ Requires-Dist: attrs>=23.1.0
13
+ Requires-Dist: cattrs>=23.1.0
14
+ Requires-Dist: wexample-filestate-flutter==0.0.13
15
+ Requires-Dist: wexample-wex-addon-app==0.0.54
16
+ Requires-Dist: wexample-wex-core==6.0.66
17
+ Provides-Extra: dev
18
+ Requires-Dist: pytest; extra == "dev"
19
+ Requires-Dist: pytest-cov; extra == "dev"
20
+ Description-Content-Type: text/markdown
21
+
22
+ # wexample-wex-addon-dev-flutter
23
+
24
+ Version: 0.0.56
25
+
26
+ Python dev addon for wex
27
+
28
+ ## Table of Contents
29
+
30
+ - [Status Compatibility](#status-compatibility)
31
+ - [Api Reference](#api-reference)
32
+ - [Tests](#tests)
33
+ - [Code Quality](#code-quality)
34
+ - [Versioning](#versioning)
35
+ - [Changelog](#changelog)
36
+ - [Migration Notes](#migration-notes)
37
+ - [Roadmap](#roadmap)
38
+ - [Security](#security)
39
+ - [Privacy](#privacy)
40
+ - [Support](#support)
41
+ - [Contribution Guidelines](#contribution-guidelines)
42
+ - [Maintainers](#maintainers)
43
+ - [License](#license)
44
+ - [Useful Links](#useful-links)
45
+ - [Suite Integration](#suite-integration)
46
+ - [Compatibility Matrix](#compatibility-matrix)
47
+ - [Dependencies](#dependencies)
48
+ - [Suite Signature](#suite-signature)
49
+
50
+
51
+ ## Status & Compatibility
52
+
53
+ **Maturity**: Production-ready
54
+
55
+ **Python Support**: >=3.10
56
+
57
+ **OS Support**: Linux, macOS, Windows
58
+
59
+ **Status**: Actively maintained
60
+
61
+ ## API Reference
62
+
63
+ Full API documentation is available in the source code docstrings.
64
+
65
+ Key modules and classes are documented with type hints for better IDE support.
66
+
67
+ ## Tests
68
+
69
+ This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
70
+
71
+ ### Installation
72
+
73
+ First, install the required testing dependencies:
74
+ ```bash
75
+ .venv/bin/python -m pip install pytest pytest-cov
76
+ ```
77
+
78
+ ### Basic Usage
79
+
80
+ Run all tests with coverage:
81
+ ```bash
82
+ .venv/bin/python -m pytest --cov --cov-report=html
83
+ ```
84
+
85
+ ### Common Commands
86
+ ```bash
87
+ # Run tests with coverage for a specific module
88
+ .venv/bin/python -m pytest --cov=your_module
89
+
90
+ # Show which lines are not covered
91
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
92
+
93
+ # Generate an HTML coverage report
94
+ .venv/bin/python -m pytest --cov=your_module --cov-report=html
95
+
96
+ # Combine terminal and HTML reports
97
+ .venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
98
+
99
+ # Run specific test file with coverage
100
+ .venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
101
+ ```
102
+
103
+ ### Viewing HTML Reports
104
+
105
+ After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
106
+
107
+ ### Coverage Threshold
108
+
109
+ To enforce a minimum coverage percentage:
110
+ ```bash
111
+ .venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
112
+ ```
113
+
114
+ This will cause the test suite to fail if coverage drops below 80%.
115
+
116
+ ## Code Quality & Typing
117
+
118
+ All the suite packages follow strict quality standards:
119
+
120
+ - **Type hints**: Full type coverage with mypy validation
121
+ - **Code formatting**: Enforced with black and isort
122
+ - **Linting**: Comprehensive checks with custom scripts and tools
123
+ - **Testing**: High test coverage requirements
124
+
125
+ These standards ensure reliability and maintainability across the suite.
126
+
127
+ ## Versioning & Compatibility Policy
128
+
129
+ Wexample packages follow **Semantic Versioning** (SemVer):
130
+
131
+ - **MAJOR**: Breaking changes
132
+ - **MINOR**: New features, backward compatible
133
+ - **PATCH**: Bug fixes, backward compatible
134
+
135
+ We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
136
+
137
+ ## Changelog
138
+
139
+ See [CHANGELOG.md](CHANGELOG.md) for detailed version history and release notes.
140
+
141
+ Major changes are documented with migration guides when applicable.
142
+
143
+ ## Migration Notes
144
+
145
+ When upgrading between major versions, refer to the migration guides in the documentation.
146
+
147
+ Breaking changes are clearly documented with upgrade paths and examples.
148
+
149
+ ## Known Limitations & Roadmap
150
+
151
+ Current limitations and planned features are tracked in the GitHub issues.
152
+
153
+ See the [project roadmap](https://github.com/wexample/python-wex_addon_dev_flutter/issues) for upcoming features and improvements.
154
+
155
+ ## Security Policy
156
+
157
+ ### Reporting Vulnerabilities
158
+
159
+ If you discover a security vulnerability, please email contact@wexample.com.
160
+
161
+ **Do not** open public issues for security vulnerabilities.
162
+
163
+ We take security seriously and will respond promptly to verified reports.
164
+
165
+ ## Privacy & Telemetry
166
+
167
+ This package does **not** collect any telemetry or usage data.
168
+
169
+ Your privacy is respected — no data is transmitted to external services.
170
+
171
+ ## Support Channels
172
+
173
+ - **GitHub Issues**: Bug reports and feature requests
174
+ - **GitHub Discussions**: Questions and community support
175
+ - **Documentation**: Comprehensive guides and API reference
176
+ - **Email**: contact@wexample.com for general inquiries
177
+
178
+ Community support is available through GitHub Discussions.
179
+
180
+ ## Contribution Guidelines
181
+
182
+ We welcome contributions to the Wexample suite!
183
+
184
+ ### How to Contribute
185
+
186
+ 1. **Fork** the repository
187
+ 2. **Create** a feature branch
188
+ 3. **Make** your changes
189
+ 4. **Test** thoroughly
190
+ 5. **Submit** a pull request
191
+
192
+ ## Maintainers & Authors
193
+
194
+ Maintained by the Wexample team and community contributors.
195
+
196
+ See [CONTRIBUTORS.md](CONTRIBUTORS.md) for the full list of contributors.
197
+
198
+ ## License
199
+
200
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
201
+
202
+ Free to use in both personal and commercial projects.
203
+
204
+ ## Useful Links
205
+
206
+ - **Homepage**: https://github.com/wexample/python-wex-addon-dev-flutter
207
+ - **Documentation**: [docs.wexample.com](https://docs.wexample.com)
208
+ - **Issue Tracker**: https://github.com/wexample/python-wex-addon-dev-flutter/issues
209
+ - **Discussions**: https://github.com/wexample/python-wex-addon-dev-flutter/discussions
210
+ - **PyPI**: [pypi.org/project/wexample-wex-addon-dev-flutter](https://pypi.org/project/wexample-wex-addon-dev-flutter/)
211
+
212
+ ## Integration in the Suite
213
+
214
+ This package is part of the **Wexample Suite** — a collection of high-quality Python packages designed to work seamlessly together.
215
+
216
+ ### Related Packages
217
+
218
+ The suite includes packages for configuration management, file handling, prompts, and more. Each package can be used independently or as part of the integrated suite.
219
+
220
+ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
221
+
222
+ ## Compatibility Matrix
223
+
224
+ This package is part of the Wexample suite and is compatible with other suite packages.
225
+
226
+ Refer to each package's documentation for specific version compatibility requirements.
227
+
228
+ ## Dependencies
229
+
230
+ - attrs: >=23.1.0
231
+ - cattrs: >=23.1.0
232
+ - wexample-filestate-flutter: ==0.0.13
233
+ - wexample-wex-addon-app: ==0.0.54
234
+ - wexample-wex-core: ==6.0.66
235
+
236
+
237
+ # About us
238
+
239
+ [Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
240
+
241
+ This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
242
+
243
+ Wexample cultivates a culture of mastery. Each package, each contribution carries the mark of a community that values precision, ethics, and innovation — a community proud to shape the future of digital craftsmanship.
244
+
@@ -0,0 +1,16 @@
1
+ wexample_wex_addon_dev_flutter-0.0.56.dist-info/METADATA,sha256=dxTRsbf_AjoLZPVcnMLPcZLv79SNGObGbHAbuNx-pto,7991
2
+ wexample_wex_addon_dev_flutter-0.0.56.dist-info/WHEEL,sha256=tsUv_t7BDeJeRHaSrczbGeuK-TtDpGsWi_JfpzD255I,90
3
+ wexample_wex_addon_dev_flutter-0.0.56.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ wexample_wex_addon_dev_flutter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ wexample_wex_addon_dev_flutter/__pycache__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ wexample_wex_addon_dev_flutter/config_value/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
7
+ wexample_wex_addon_dev_flutter/config_value/flutter_package_readme_config_value.py,sha256=XoXbhKWxueB87rMNmHvurdI7zgmVPq6KqSKPuGVk0nc,443
8
+ wexample_wex_addon_dev_flutter/file/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
9
+ wexample_wex_addon_dev_flutter/file/flutter_pubspec_yaml_file.py,sha256=4IP5PZOrp9ofZvn4DpamXizkqK2HijKhdVkzR4pjmC0,729
10
+ wexample_wex_addon_dev_flutter/flutter_addon_manager.py,sha256=UYqbhrOSYEVXOExveQdyy717r3VD6lMAG7NZX10JTyE,177
11
+ wexample_wex_addon_dev_flutter/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
+ wexample_wex_addon_dev_flutter/workdir/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
13
+ wexample_wex_addon_dev_flutter/workdir/flutter_package_workdir.py,sha256=oAzPxYiEzGM6cwTIgpEVOidpMnxqjViFj0v9YzIDVQ8,1039
14
+ wexample_wex_addon_dev_flutter/workdir/flutter_packages_suite_workdir.py,sha256=sxWWzpk65KwKP4TkemzKCANkRdCJNfl9DqIaFZAWiSU,844
15
+ wexample_wex_addon_dev_flutter/workdir/flutter_workdir.py,sha256=5UhKrCI_Zh4iWm-c8rCh-QZvBNOi6x4_GQZj5-gdabc,4210
16
+ wexample_wex_addon_dev_flutter-0.0.56.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: pdm-backend (2.4.6)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+
3
+ [gui_scripts]
4
+