sofia-deploy 1.0.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,107 @@
1
+ Metadata-Version: 2.4
2
+ Name: sofia-deploy
3
+ Version: 1.0.0
4
+ Summary: Sofia — interactive Linux deployer for Angular / React / Vite / Node apps (nginx + SSL + systemd)
5
+ Author-email: Sofia <sofia@users.noreply.github.com>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/Orbit-it/sofia-deploy
8
+ Project-URL: Documentation, https://github.com/Orbit-it/sofia-deploy#readme
9
+ Project-URL: Issues, https://github.com/Orbit-it/sofia-deploy/issues
10
+ Keywords: deploy,nginx,letsencrypt,systemd,angular,react,vite,nodejs,sofia
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.9
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: System :: Systems Administration
21
+ Requires-Python: >=3.9
22
+ Description-Content-Type: text/markdown
23
+ License-File: LICENSE
24
+ Dynamic: license-file
25
+
26
+ # Sofia
27
+
28
+ Interactive Linux deployer for **Angular**, **React**, **Vite** and **Node.js** apps.
29
+
30
+ SSH into your server, run Sofia, answer a few questions — it installs Node, nginx,
31
+ Let’s Encrypt, systemd, builds your app and goes live.
32
+
33
+ > PyPI name is `sofia-deploy` (`sofia` was already taken).
34
+ > CLI and Python import remain **`sofia`**.
35
+
36
+ ## Install
37
+
38
+ ```bash
39
+ pip install sofia-deploy
40
+ # or with root for system-wide CLI:
41
+ sudo pip install sofia-deploy
42
+ ```
43
+
44
+ ## Usage (on the target server)
45
+
46
+ ```bash
47
+ cd /path/to/your/app
48
+ sudo sofia
49
+ ```
50
+
51
+ Sofia will:
52
+
53
+ 1. Detect Angular / React / Vite / Node from `package.json`
54
+ 2. Ask domain, SSL email, port, build/start commands
55
+ 3. Install dependencies (Node, nginx, certbot)
56
+ 4. Build the app
57
+ 5. Configure **systemd** + **nginx** reverse proxy (or static hosting)
58
+ 6. Issue a **Let’s Encrypt** certificate
59
+
60
+ ### Non-interactive
61
+
62
+ ```bash
63
+ sudo sofia --non-interactive --config sofia.env
64
+ ```
65
+
66
+ ### Python API
67
+
68
+ ```python
69
+ from sofia import DeployConfig, deploy
70
+
71
+ cfg = DeployConfig(
72
+ project_root="/var/www/myapp",
73
+ app_name="myapp",
74
+ domain="example.com",
75
+ email="admin@example.com",
76
+ framework="vite", # angular | react | vite | node
77
+ serve_mode="static", # static | node
78
+ build_command="npm ci && npm run build",
79
+ static_root="dist",
80
+ enable_ssl=True,
81
+ )
82
+ deploy(cfg)
83
+ ```
84
+
85
+ ## Supported project types
86
+
87
+ | Framework | Typical build | Serve mode |
88
+ |-----------|---------------|------------|
89
+ | Angular | `ng build` | `node` (custom server) or `static` |
90
+ | React (CRA) | `npm run build` | `static` → `build/` |
91
+ | Vite / Vite+React | `npm run build` | `static` → `dist/` |
92
+ | Node API / full stack | custom | `node` → `npm start` / `node server.js` |
93
+
94
+ ## Requirements
95
+
96
+ - Linux (Amazon Linux, Ubuntu, Debian, RHEL/Rocky)
97
+ - Root (`sudo`)
98
+ - DNS A/AAAA pointing to the server
99
+ - Ports **80** and **443** open
100
+
101
+ ## Publish (maintainers)
102
+
103
+ ```bash
104
+ python -m pip install build twine
105
+ python -m build
106
+ twine upload dist/*
107
+ ```
@@ -0,0 +1,28 @@
1
+ sofia/__init__.py,sha256=4VXZAK8RwsJKrvyPCV3uJ7JJbGfinMUPxzmx0urTDx4,198
2
+ sofia/__main__.py,sha256=MHKZ_ae3fSLGTLUUMOx15fWdeOnJSHhq-zslRP5F5Lc,79
3
+ sofia/build.py,sha256=PqdBd2IRN6dlBJhoz7FyLqWGXHSeHSP-WkYGl71rE6E,1576
4
+ sofia/cli.py,sha256=ByZP_CtJbGGlo_RDMH36Ln8P9vLPR8vYYuUeZTlVIVY,6953
5
+ sofia/config.py,sha256=VYnVdyfk7hdCAuAyG6mbvRNEC702EmlKWWb913Q4QP8,3579
6
+ sofia/console.py,sha256=6euNS_tHWqVhiMvZC1ebDv7Scyrn9IzEYbqXYHl7lgI,2047
7
+ sofia/deploy.py,sha256=Rd7v33yojrmQdu0Xy9m2MTUuwxTRTnJxfis3zCk2SIw,3532
8
+ sofia/detect.py,sha256=oV-4mtsB522oKJi_yU7lGqtd2tQ9A-Ak-mQfpSGOvds,4665
9
+ sofia/nginx_setup.py,sha256=6eUR9xRgSIZ81CDPMOmZ4xLlWDJe4MKyZ26IXywBOvU,2378
10
+ sofia/node_runtime.py,sha256=1xTl9caeIxp53AD2U_5WvDrFzCcOS3VcZ9QITrH5q9k,2976
11
+ sofia/packages.py,sha256=p_oM5DBXyPTw_Hyks_zdRhTF6IFD_VXAL0Kb7f_P_Is,2652
12
+ sofia/ssl_setup.py,sha256=n__YDSUCEyoZa93VCrHv2mbG1Kg6ky7rlVbSXYT43PE,2376
13
+ sofia/system.py,sha256=0uMPmZXVruxsAgv3HzZzTl3jxaaYylKVWMmyj8MpcH8,4234
14
+ sofia/systemd_setup.py,sha256=7Ygn3i_GhpwJwn8ZGF-8rJ5E_KgVtap2-RiWHkkKq98,1708
15
+ sofia/templates_util.py,sha256=twTnEAz7oOkwteOZCK-UpSo07lFUWdUi3_ZvoEro6RQ,624
16
+ sofia/templates/__init__.py,sha256=og4YB2ARLcpnwI234p2_0jTOE4bRS1MfspcETRAafPc,28
17
+ sofia/templates/app.service.tpl,sha256=7c2ywyN8FeDU8Z9T4DDwKrn5VSqGrIKjTojWZinxCyw,366
18
+ sofia/templates/nginx-proxy-http.conf.tpl,sha256=altlFOFZDEZxUtPcwOTcRqmWVO9AGvIjiai57WszeLY,663
19
+ sofia/templates/nginx-proxy-ssl.conf.tpl,sha256=r6E9SzFx1AElru9uxGU0YpsIY594nAw7ZeKthhitA6I,1324
20
+ sofia/templates/nginx-static-http.conf.tpl,sha256=4e9P_BK86UqVF8T61BGWi6nao0SPg8iB026NFgUJLYo,331
21
+ sofia/templates/nginx-static-ssl.conf.tpl,sha256=olLzApV2Dirq0lDD0nQXdPyQkzeWt3c3kVW0zC6fpow,859
22
+ sofia/templates/options-ssl-nginx.conf,sha256=F7rsd4wFVxvrDN6wvBxto1ltRNH-Vn5_7g7--AqGDQE,398
23
+ sofia_deploy-1.0.0.dist-info/licenses/LICENSE,sha256=oPocjlr2zpObFsdrY4o0dHnIuqYaB_9RNZULj60tMcc,1062
24
+ sofia_deploy-1.0.0.dist-info/METADATA,sha256=U2LaD1YXFt8I6dDmUzXzJHVzmjCibJKLp56J3skQJP4,3087
25
+ sofia_deploy-1.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
26
+ sofia_deploy-1.0.0.dist-info/entry_points.txt,sha256=k8vIqKShAPVPXF07MDJ5zrGKqGDqip-tm47A_VcelZc,41
27
+ sofia_deploy-1.0.0.dist-info/top_level.txt,sha256=g1vjhsPb79JEDFZCEnhX_iEvpGgbiKkcxBfUcAoEVKA,6
28
+ sofia_deploy-1.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ sofia = sofia.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sofia
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ sofia