wexample-wex-addon-services-collab 0.0.3__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.
- wexample_wex_addon_services_collab-0.0.3/PKG-INFO +164 -0
- wexample_wex_addon_services_collab-0.0.3/README.md +147 -0
- wexample_wex_addon_services_collab-0.0.3/pyproject.toml +82 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/__init__.py +7 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/py.typed +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/commands/__init__.py +1 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/commands/service/__init__.py +1 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/commands/service/install.py +35 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/docker/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/docker/docker-compose.yml +16 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/config.php +7 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/data/.gitkeep +1 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/data/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/docker/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/docker/docker-compose.yml +5 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/env/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/env/dev/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/env/dev/docker/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/env/dev/docker/docker-compose.yml +4 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/env/prod/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/env/prod/docker/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/env/prod/docker/docker-compose.yml +4 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/extra-addons/.gitkeep +1 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/samples/extra-addons/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/nextcloud/service.yml +8 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/docker/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/docker/docker-compose.yml +15 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/data/.gitkeep +1 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/data/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/docker/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/docker/docker-compose.yml +5 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/env/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/env/prod/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/env/prod/docker/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/env/prod/docker/docker-compose.yml +5 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/logs/.gitkeep +1 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/samples/logs/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/onlyoffice/service.yml +7 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/docker/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/docker/docker-compose.yml +14 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/samples/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/samples/docker/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/samples/docker/docker-compose.yml +10 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/samples/hubot/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/samples/hubot/scripts/.gitkeep +1 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/samples/hubot/scripts/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/samples/uploads/.gitkeep +1 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/samples/uploads/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/rocketchat/service.yml +8 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/synapse/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/synapse/app_service.py +31 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/synapse/commands/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/synapse/commands/service/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/synapse/commands/service/install.py +30 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/synapse/commands/service/ready.py +39 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/synapse/docker/__init__.py +0 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/synapse/docker/docker-compose.yml +27 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/synapse/service.yml +5 -0
- wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services_collab_addon_manager.py +15 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: wexample-wex-addon-services-collab
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: Collaboration services (rocketchat, nextcloud, onlyoffice...) 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
|
+
Requires-Python: >=3.10
|
|
11
|
+
Requires-Dist: wexample-wex-addon-app>=1.0.0
|
|
12
|
+
Requires-Dist: wexample-wex-core>=7.0.0
|
|
13
|
+
Provides-Extra: dev
|
|
14
|
+
Requires-Dist: pytest; extra == "dev"
|
|
15
|
+
Requires-Dist: pytest-cov; extra == "dev"
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# wex_addon_services_collab
|
|
19
|
+
|
|
20
|
+
Version: 0.0.3
|
|
21
|
+
|
|
22
|
+
Collaboration services (rocketchat, nextcloud, onlyoffice...) for wex
|
|
23
|
+
|
|
24
|
+
## Table of Contents
|
|
25
|
+
|
|
26
|
+
- [Tests](#tests)
|
|
27
|
+
- [Suite Integration](#suite-integration)
|
|
28
|
+
- [Dependencies](#dependencies)
|
|
29
|
+
- [Versioning](#versioning)
|
|
30
|
+
- [License](#license)
|
|
31
|
+
- [Suite Integration](#suite-integration)
|
|
32
|
+
- [Suite Signature](#suite-signature)
|
|
33
|
+
- [Roadmap](#roadmap)
|
|
34
|
+
- [Status Compatibility](#status-compatibility)
|
|
35
|
+
- [Useful Links](#useful-links)
|
|
36
|
+
- [Migration Notes](#migration-notes)
|
|
37
|
+
|
|
38
|
+
## Tests
|
|
39
|
+
|
|
40
|
+
This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
|
|
41
|
+
|
|
42
|
+
### Installation
|
|
43
|
+
|
|
44
|
+
First, install the required testing dependencies:
|
|
45
|
+
```bash
|
|
46
|
+
.venv/bin/python -m pip install pytest pytest-cov
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
### Basic Usage
|
|
50
|
+
|
|
51
|
+
Run all tests with coverage:
|
|
52
|
+
```bash
|
|
53
|
+
.venv/bin/python -m pytest --cov --cov-report=html
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Common Commands
|
|
57
|
+
```bash
|
|
58
|
+
# Run tests with coverage for a specific module
|
|
59
|
+
.venv/bin/python -m pytest --cov=your_module
|
|
60
|
+
|
|
61
|
+
# Show which lines are not covered
|
|
62
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
|
|
63
|
+
|
|
64
|
+
# Generate an HTML coverage report
|
|
65
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=html
|
|
66
|
+
|
|
67
|
+
# Combine terminal and HTML reports
|
|
68
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
|
|
69
|
+
|
|
70
|
+
# Run specific test file with coverage
|
|
71
|
+
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Viewing HTML Reports
|
|
75
|
+
|
|
76
|
+
After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
|
|
77
|
+
|
|
78
|
+
### Coverage Threshold
|
|
79
|
+
|
|
80
|
+
To enforce a minimum coverage percentage:
|
|
81
|
+
```bash
|
|
82
|
+
.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
This will cause the test suite to fail if coverage drops below 80%.
|
|
86
|
+
|
|
87
|
+
## Integration in the Suite
|
|
88
|
+
|
|
89
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
90
|
+
|
|
91
|
+
### Related Packages
|
|
92
|
+
|
|
93
|
+
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.
|
|
94
|
+
|
|
95
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
96
|
+
|
|
97
|
+
## Dependencies
|
|
98
|
+
|
|
99
|
+
- wexample-wex-addon-app: >=1.0.0
|
|
100
|
+
- wexample-wex-core: >=7.0.0
|
|
101
|
+
|
|
102
|
+
## Versioning & Compatibility Policy
|
|
103
|
+
|
|
104
|
+
Wexample packages follow **Semantic Versioning** (SemVer):
|
|
105
|
+
|
|
106
|
+
- **MAJOR**: Breaking changes
|
|
107
|
+
- **MINOR**: New features, backward compatible
|
|
108
|
+
- **PATCH**: Bug fixes, backward compatible
|
|
109
|
+
|
|
110
|
+
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
|
|
111
|
+
|
|
112
|
+
## License
|
|
113
|
+
|
|
114
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
115
|
+
|
|
116
|
+
Free to use in both personal and commercial projects.
|
|
117
|
+
|
|
118
|
+
## Integration in the Suite
|
|
119
|
+
|
|
120
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
121
|
+
|
|
122
|
+
### Related Packages
|
|
123
|
+
|
|
124
|
+
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.
|
|
125
|
+
|
|
126
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
127
|
+
|
|
128
|
+
# About us
|
|
129
|
+
|
|
130
|
+
[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.
|
|
131
|
+
|
|
132
|
+
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.
|
|
133
|
+
|
|
134
|
+
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.
|
|
135
|
+
|
|
136
|
+
## Known Limitations & Roadmap
|
|
137
|
+
|
|
138
|
+
Current limitations and planned features are tracked in the GitHub issues.
|
|
139
|
+
|
|
140
|
+
See the [project roadmap](https://github.com/wexample/python-wex_addon_services_collab/issues) for upcoming features and improvements.
|
|
141
|
+
|
|
142
|
+
## Status & Compatibility
|
|
143
|
+
|
|
144
|
+
**Maturity**: Production-ready
|
|
145
|
+
|
|
146
|
+
**Python Support**: >=3.10
|
|
147
|
+
|
|
148
|
+
**OS Support**: Linux, macOS, Windows
|
|
149
|
+
|
|
150
|
+
**Status**: Actively maintained
|
|
151
|
+
|
|
152
|
+
## Useful Links
|
|
153
|
+
|
|
154
|
+
- **Homepage**: https://github.com/wexample/python-wex-addon-services-collab
|
|
155
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
156
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-services-collab/issues
|
|
157
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-services-collab/discussions
|
|
158
|
+
- **PyPI**: [pypi.org/project/wex_addon_services_collab](https://pypi.org/project/wex_addon_services_collab/)
|
|
159
|
+
|
|
160
|
+
## Migration Notes
|
|
161
|
+
|
|
162
|
+
When upgrading between major versions, refer to the migration guides in the documentation.
|
|
163
|
+
|
|
164
|
+
Breaking changes are clearly documented with upgrade paths and examples.
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
# wex_addon_services_collab
|
|
2
|
+
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
|
|
5
|
+
Collaboration services (rocketchat, nextcloud, onlyoffice...) for wex
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Tests](#tests)
|
|
10
|
+
- [Suite Integration](#suite-integration)
|
|
11
|
+
- [Dependencies](#dependencies)
|
|
12
|
+
- [Versioning](#versioning)
|
|
13
|
+
- [License](#license)
|
|
14
|
+
- [Suite Integration](#suite-integration)
|
|
15
|
+
- [Suite Signature](#suite-signature)
|
|
16
|
+
- [Roadmap](#roadmap)
|
|
17
|
+
- [Status Compatibility](#status-compatibility)
|
|
18
|
+
- [Useful Links](#useful-links)
|
|
19
|
+
- [Migration Notes](#migration-notes)
|
|
20
|
+
|
|
21
|
+
## Tests
|
|
22
|
+
|
|
23
|
+
This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
|
|
24
|
+
|
|
25
|
+
### Installation
|
|
26
|
+
|
|
27
|
+
First, install the required testing dependencies:
|
|
28
|
+
```bash
|
|
29
|
+
.venv/bin/python -m pip install pytest pytest-cov
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Basic Usage
|
|
33
|
+
|
|
34
|
+
Run all tests with coverage:
|
|
35
|
+
```bash
|
|
36
|
+
.venv/bin/python -m pytest --cov --cov-report=html
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Common Commands
|
|
40
|
+
```bash
|
|
41
|
+
# Run tests with coverage for a specific module
|
|
42
|
+
.venv/bin/python -m pytest --cov=your_module
|
|
43
|
+
|
|
44
|
+
# Show which lines are not covered
|
|
45
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing
|
|
46
|
+
|
|
47
|
+
# Generate an HTML coverage report
|
|
48
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=html
|
|
49
|
+
|
|
50
|
+
# Combine terminal and HTML reports
|
|
51
|
+
.venv/bin/python -m pytest --cov=your_module --cov-report=term-missing --cov-report=html
|
|
52
|
+
|
|
53
|
+
# Run specific test file with coverage
|
|
54
|
+
.venv/bin/python -m pytest tests/test_file.py --cov=your_module --cov-report=term-missing
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### Viewing HTML Reports
|
|
58
|
+
|
|
59
|
+
After generating an HTML report, open `htmlcov/index.html` in your browser to view detailed line-by-line coverage information.
|
|
60
|
+
|
|
61
|
+
### Coverage Threshold
|
|
62
|
+
|
|
63
|
+
To enforce a minimum coverage percentage:
|
|
64
|
+
```bash
|
|
65
|
+
.venv/bin/python -m pytest --cov=your_module --cov-fail-under=80
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
This will cause the test suite to fail if coverage drops below 80%.
|
|
69
|
+
|
|
70
|
+
## Integration in the Suite
|
|
71
|
+
|
|
72
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
73
|
+
|
|
74
|
+
### Related Packages
|
|
75
|
+
|
|
76
|
+
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.
|
|
77
|
+
|
|
78
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
79
|
+
|
|
80
|
+
## Dependencies
|
|
81
|
+
|
|
82
|
+
- wexample-wex-addon-app: >=1.0.0
|
|
83
|
+
- wexample-wex-core: >=7.0.0
|
|
84
|
+
|
|
85
|
+
## Versioning & Compatibility Policy
|
|
86
|
+
|
|
87
|
+
Wexample packages follow **Semantic Versioning** (SemVer):
|
|
88
|
+
|
|
89
|
+
- **MAJOR**: Breaking changes
|
|
90
|
+
- **MINOR**: New features, backward compatible
|
|
91
|
+
- **PATCH**: Bug fixes, backward compatible
|
|
92
|
+
|
|
93
|
+
We maintain backward compatibility within major versions and provide clear migration guides for breaking changes.
|
|
94
|
+
|
|
95
|
+
## License
|
|
96
|
+
|
|
97
|
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
98
|
+
|
|
99
|
+
Free to use in both personal and commercial projects.
|
|
100
|
+
|
|
101
|
+
## Integration in the Suite
|
|
102
|
+
|
|
103
|
+
This package is part of the Wexample Suite — a collection of high-quality, modular tools designed to work seamlessly together across multiple languages and environments.
|
|
104
|
+
|
|
105
|
+
### Related Packages
|
|
106
|
+
|
|
107
|
+
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.
|
|
108
|
+
|
|
109
|
+
Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
|
|
110
|
+
|
|
111
|
+
# About us
|
|
112
|
+
|
|
113
|
+
[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.
|
|
114
|
+
|
|
115
|
+
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.
|
|
116
|
+
|
|
117
|
+
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.
|
|
118
|
+
|
|
119
|
+
## Known Limitations & Roadmap
|
|
120
|
+
|
|
121
|
+
Current limitations and planned features are tracked in the GitHub issues.
|
|
122
|
+
|
|
123
|
+
See the [project roadmap](https://github.com/wexample/python-wex_addon_services_collab/issues) for upcoming features and improvements.
|
|
124
|
+
|
|
125
|
+
## Status & Compatibility
|
|
126
|
+
|
|
127
|
+
**Maturity**: Production-ready
|
|
128
|
+
|
|
129
|
+
**Python Support**: >=3.10
|
|
130
|
+
|
|
131
|
+
**OS Support**: Linux, macOS, Windows
|
|
132
|
+
|
|
133
|
+
**Status**: Actively maintained
|
|
134
|
+
|
|
135
|
+
## Useful Links
|
|
136
|
+
|
|
137
|
+
- **Homepage**: https://github.com/wexample/python-wex-addon-services-collab
|
|
138
|
+
- **Documentation**: [docs.wexample.com](https://docs.wexample.com)
|
|
139
|
+
- **Issue Tracker**: https://github.com/wexample/python-wex-addon-services-collab/issues
|
|
140
|
+
- **Discussions**: https://github.com/wexample/python-wex-addon-services-collab/discussions
|
|
141
|
+
- **PyPI**: [pypi.org/project/wex_addon_services_collab](https://pypi.org/project/wex_addon_services_collab/)
|
|
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.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = [
|
|
3
|
+
"pdm-backend",
|
|
4
|
+
]
|
|
5
|
+
build-backend = "pdm.backend"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "wexample-wex-addon-services-collab"
|
|
9
|
+
version = "0.0.3"
|
|
10
|
+
description = "Collaboration services (rocketchat, nextcloud, onlyoffice...) for wex"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "weeger", email = "contact@wexample.com" },
|
|
13
|
+
]
|
|
14
|
+
requires-python = ">=3.10"
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
|
+
"Operating System :: OS Independent",
|
|
19
|
+
]
|
|
20
|
+
dependencies = [
|
|
21
|
+
"wexample-wex-addon-app>=1.0.0",
|
|
22
|
+
"wexample-wex-core>=7.0.0",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[project.readme]
|
|
26
|
+
file = "README.md"
|
|
27
|
+
content-type = "text/markdown"
|
|
28
|
+
|
|
29
|
+
[project.license]
|
|
30
|
+
text = "MIT"
|
|
31
|
+
|
|
32
|
+
[project.optional-dependencies]
|
|
33
|
+
dev = [
|
|
34
|
+
"pytest",
|
|
35
|
+
"pytest-cov",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[tool.setuptools.packages.find]
|
|
39
|
+
include = [
|
|
40
|
+
"*",
|
|
41
|
+
]
|
|
42
|
+
exclude = [
|
|
43
|
+
"wexample_wex_addon_services_collab.testing*",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
[tool.pdm]
|
|
47
|
+
distribution = true
|
|
48
|
+
|
|
49
|
+
[tool.pdm.build]
|
|
50
|
+
package-dir = "src"
|
|
51
|
+
packages = [
|
|
52
|
+
{ include = "wexample_wex_addon_services_collab", from = "src" },
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[tool.pytest.ini_options]
|
|
56
|
+
pythonpath = [
|
|
57
|
+
"src",
|
|
58
|
+
]
|
|
59
|
+
testpaths = [
|
|
60
|
+
"tests",
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
[tool.coverage.run]
|
|
64
|
+
source = [
|
|
65
|
+
"wexample_wex_addon_services_collab",
|
|
66
|
+
]
|
|
67
|
+
omit = [
|
|
68
|
+
"*/tests/*",
|
|
69
|
+
"*/.venv/*",
|
|
70
|
+
"*/venv/*",
|
|
71
|
+
]
|
|
72
|
+
|
|
73
|
+
[tool.coverage.report]
|
|
74
|
+
exclude_lines = [
|
|
75
|
+
"pragma: no cover",
|
|
76
|
+
"def __repr__",
|
|
77
|
+
"raise AssertionError",
|
|
78
|
+
"raise NotImplementedError",
|
|
79
|
+
"if __name__ == .__main__.:",
|
|
80
|
+
"if TYPE_CHECKING:",
|
|
81
|
+
"@abstractmethod",
|
|
82
|
+
]
|
|
File without changes
|
wexample_wex_addon_services_collab-0.0.3/src/wexample_wex_addon_services_collab/services/__init__.py
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
|
|
6
|
+
from wexample_wex_core.decorator.command import command
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from wexample_wex_addon_app.service.app_service import AppService
|
|
10
|
+
from wexample_wex_core.context.execution_context import ExecutionContext
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@command(
|
|
14
|
+
type=COMMAND_TYPE_SERVICE,
|
|
15
|
+
description="Configure nextcloud service in app config",
|
|
16
|
+
)
|
|
17
|
+
def nextcloud__service__install(
|
|
18
|
+
context: ExecutionContext,
|
|
19
|
+
service: AppService,
|
|
20
|
+
) -> None:
|
|
21
|
+
from wexample_helpers.helpers.string import string_random_password
|
|
22
|
+
|
|
23
|
+
config_file = service.app_workdir.get_config_file()
|
|
24
|
+
config = config_file.read_config()
|
|
25
|
+
|
|
26
|
+
config.set_by_path(f"service.{service.name}.admin.user", "admin")
|
|
27
|
+
config.set_by_path(
|
|
28
|
+
f"service.{service.name}.admin.password",
|
|
29
|
+
string_random_password(),
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
config_file.write_config(config)
|
|
33
|
+
service.app_workdir.get_runtime_config(rebuild=True)
|
|
34
|
+
|
|
35
|
+
context.io.log("Configured nextcloud service defaults")
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
services:
|
|
2
|
+
nextcloud:
|
|
3
|
+
image: nextcloud:28.0.1
|
|
4
|
+
container_name: ${APP_PROJECT_NAME}_nextcloud
|
|
5
|
+
environment:
|
|
6
|
+
- MARIA_HOST=${SERVICE_MARIA_HOST}
|
|
7
|
+
- MARIA_DATABASE=${SERVICE_MARIA_NAME}
|
|
8
|
+
- MARIA_USER=${SERVICE_MARIA_USER}
|
|
9
|
+
- MARIA_PASSWORD=${SERVICE_MARIA_PASSWORD}
|
|
10
|
+
volumes:
|
|
11
|
+
- ${APP_PATH}data:/var/www/html
|
|
12
|
+
- ${APP_PATH}extra-addons:/mnt/extra-addons
|
|
13
|
+
- ${APP_PATH}config.php:/var/www/html/config/wex.config.php
|
|
14
|
+
extends:
|
|
15
|
+
file: ${SERVICE_DEFAULT_COMPOSE}
|
|
16
|
+
service: default
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
services:
|
|
2
|
+
onlyoffice:
|
|
3
|
+
image: onlyoffice/documentserver:7.4.1
|
|
4
|
+
container_name: ${APP_PROJECT_NAME}_onlyoffice
|
|
5
|
+
ports:
|
|
6
|
+
- "5222:5222"
|
|
7
|
+
environment:
|
|
8
|
+
- VIRTUAL_HOST=${APP_DOMAINS_STRING}
|
|
9
|
+
- VIRTUAL_PORT=80
|
|
10
|
+
volumes:
|
|
11
|
+
- ${APP_PATH}logs:/var/log/onlyoffice
|
|
12
|
+
- ${APP_PATH}data:/var/www/onlyoffice/Data
|
|
13
|
+
extends:
|
|
14
|
+
file: ${SERVICE_DEFAULT_COMPOSE}
|
|
15
|
+
service: default
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
services:
|
|
2
|
+
rocketchat:
|
|
3
|
+
image: rocket.chat:6.4.1
|
|
4
|
+
container_name: ${APP_PROJECT_NAME}_rocketchat
|
|
5
|
+
environment:
|
|
6
|
+
- ROOT_URL=http://${APP_DOMAIN}
|
|
7
|
+
- MONGO_URL=mongodb://${APP_PROJECT_NAME}_mongo:27017/rocketchat
|
|
8
|
+
- MONGO_OPLOG_URL=mongodb://${APP_PROJECT_NAME}_mongo:27017/local
|
|
9
|
+
- MAIL_URL=smtp://smtp.mailgun.org
|
|
10
|
+
volumes:
|
|
11
|
+
- ${APP_PATH}uploads:/app/uploads
|
|
12
|
+
extends:
|
|
13
|
+
file: ${SERVICE_DEFAULT_COMPOSE}
|
|
14
|
+
service: default
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
services:
|
|
2
|
+
rocketchat:
|
|
3
|
+
extends:
|
|
4
|
+
file: ${SERVICE_ROCKETCHAT_COMPOSE}
|
|
5
|
+
service: rocketchat
|
|
6
|
+
environment:
|
|
7
|
+
- VIRTUAL_HOST=${APP_DOMAINS_STRING}
|
|
8
|
+
- LETSENCRYPT_HOST=${APP_DOMAINS_STRING}
|
|
9
|
+
- LETSENCRYPT_EMAIL=${APP_EMAIL}
|
|
10
|
+
- ROOT_URL=http://${APP_DOMAIN}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from wexample_wex_addon_app.service.app_service import AppService as BaseAppService
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class AppService(BaseAppService):
|
|
7
|
+
def get_workdir_contribution(self) -> dict:
|
|
8
|
+
from wexample_filestate.const.disk import DiskItemType
|
|
9
|
+
|
|
10
|
+
# Synapse container runs as uid 991 (synapse user)
|
|
11
|
+
return {
|
|
12
|
+
"children": [
|
|
13
|
+
{
|
|
14
|
+
"name": "synapse",
|
|
15
|
+
"type": DiskItemType.DIRECTORY,
|
|
16
|
+
"should_exist": True,
|
|
17
|
+
"children": [
|
|
18
|
+
{
|
|
19
|
+
"name": "data",
|
|
20
|
+
"type": DiskItemType.DIRECTORY,
|
|
21
|
+
"should_exist": True,
|
|
22
|
+
"mode": {
|
|
23
|
+
"owner": "991:991",
|
|
24
|
+
"permissions": "755",
|
|
25
|
+
"recursive": True,
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
|
|
6
|
+
from wexample_wex_core.decorator.command import command
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from wexample_wex_addon_app.service.app_service import AppService
|
|
10
|
+
from wexample_wex_core.context.execution_context import ExecutionContext
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@command(
|
|
14
|
+
type=COMMAND_TYPE_SERVICE, description="Configure synapse service in app config"
|
|
15
|
+
)
|
|
16
|
+
def synapse__service__install(
|
|
17
|
+
context: ExecutionContext,
|
|
18
|
+
service: AppService,
|
|
19
|
+
) -> None:
|
|
20
|
+
app_name = service.app_workdir.get_config().search("global.name").get_str()
|
|
21
|
+
config_file = service.app_workdir.get_config_file()
|
|
22
|
+
config = config_file.read_config()
|
|
23
|
+
|
|
24
|
+
config.set_by_path(f"service.{service.name}.host", f"{app_name}_{service.name}")
|
|
25
|
+
config.set_by_path(f"service.{service.name}.port", 8008)
|
|
26
|
+
|
|
27
|
+
config_file.write_config(config)
|
|
28
|
+
service.app_workdir.get_runtime_config(rebuild=True)
|
|
29
|
+
|
|
30
|
+
context.io.log(f"Configured synapse service for app '{app_name}'")
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import TYPE_CHECKING
|
|
4
|
+
|
|
5
|
+
from wexample_wex_core.const.globals import COMMAND_TYPE_SERVICE
|
|
6
|
+
from wexample_wex_core.decorator.command import command
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from wexample_app.response.boolean_response import BooleanResponse
|
|
10
|
+
from wexample_wex_addon_app.service.app_service import AppService
|
|
11
|
+
from wexample_wex_core.context.execution_context import ExecutionContext
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@command(type=COMMAND_TYPE_SERVICE, description="Check if synapse homeserver is ready")
|
|
15
|
+
def synapse__service__ready(
|
|
16
|
+
context: ExecutionContext,
|
|
17
|
+
service: AppService,
|
|
18
|
+
) -> BooleanResponse:
|
|
19
|
+
import subprocess
|
|
20
|
+
|
|
21
|
+
from wexample_app.response.boolean_response import BooleanResponse
|
|
22
|
+
|
|
23
|
+
runtime = service.app_workdir.get_runtime_config()
|
|
24
|
+
app_project_name = runtime.search("app.project_name").get_str()
|
|
25
|
+
container_name = f"{app_project_name}_{service.name}"
|
|
26
|
+
|
|
27
|
+
result = subprocess.run(
|
|
28
|
+
[
|
|
29
|
+
"docker",
|
|
30
|
+
"exec",
|
|
31
|
+
container_name,
|
|
32
|
+
"curl",
|
|
33
|
+
"-sf",
|
|
34
|
+
"http://localhost:8008/health",
|
|
35
|
+
],
|
|
36
|
+
capture_output=True,
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
return BooleanResponse(kernel=context.kernel, content=result.returncode == 0)
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
services:
|
|
2
|
+
synapse:
|
|
3
|
+
container_name: ${APP_PROJECT_NAME}_synapse
|
|
4
|
+
image: matrixdotorg/synapse:latest
|
|
5
|
+
extends:
|
|
6
|
+
file: ${SERVICE_DEFAULT_COMPOSE}
|
|
7
|
+
service: default
|
|
8
|
+
networks:
|
|
9
|
+
- wex_net
|
|
10
|
+
|
|
11
|
+
element:
|
|
12
|
+
container_name: ${APP_PROJECT_NAME}_element
|
|
13
|
+
image: vectorim/element-web:latest
|
|
14
|
+
extends:
|
|
15
|
+
file: ${SERVICE_DEFAULT_COMPOSE}
|
|
16
|
+
service: default
|
|
17
|
+
networks:
|
|
18
|
+
- wex_net
|
|
19
|
+
|
|
20
|
+
synapse_admin:
|
|
21
|
+
container_name: ${APP_PROJECT_NAME}_synapse_admin
|
|
22
|
+
image: awesometechnologies/synapse-admin:latest
|
|
23
|
+
extends:
|
|
24
|
+
file: ${SERVICE_DEFAULT_COMPOSE}
|
|
25
|
+
service: default
|
|
26
|
+
networks:
|
|
27
|
+
- wex_net
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
from wexample_helpers.decorator.base_class import base_class
|
|
6
|
+
from wexample_wex_core.common.abstract_addon_manager import AbstractAddonManager
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@base_class
|
|
10
|
+
class ServicesCollabAddonManager(AbstractAddonManager):
|
|
11
|
+
@classmethod
|
|
12
|
+
def get_package_module(cls) -> Any:
|
|
13
|
+
import wexample_wex_addon_services_collab
|
|
14
|
+
|
|
15
|
+
return wexample_wex_addon_services_collab
|