fadenstack 0.4.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.
- fadenstack-0.4.2/.gitignore +39 -0
- fadenstack-0.4.2/LICENSE +187 -0
- fadenstack-0.4.2/NOTICE +15 -0
- fadenstack-0.4.2/OFFICIAL.md +9 -0
- fadenstack-0.4.2/PKG-INFO +304 -0
- fadenstack-0.4.2/README.md +269 -0
- fadenstack-0.4.2/hatch_build.py +86 -0
- fadenstack-0.4.2/pyproject.toml +109 -0
- fadenstack-0.4.2/src/faden_cli/__init__.py +16 -0
- fadenstack-0.4.2/src/faden_cli/__main__.py +9 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/.gitignore +25 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/LICENSE +187 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/NOTICE +15 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/OFFICIAL.md +9 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/README.md +16 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/agent-binaries/.gitignore +5 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/alloy/config.alloy +40 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/clickhouse/config.d/system-logs.xml +26 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/docker-compose.gpu.yaml +34 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/docker-compose.yaml +998 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/grafana/dashboards/templates/vllm-runtime.json +2099 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/grafana/provisioning/dashboards/dashboard.yml +10 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/grafana/provisioning/dashboards/json/faden-overview.json +211 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/grafana/provisioning/datasources/ds.yaml +9 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/grafana/provisioning/datasources/prometheus.yaml +15 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/initdb/01-init.sql +32 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/loki/local-config.yaml +32 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/nginx/locations.conf +245 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/nginx/maintenance.html +239 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/nginx/nginx-tls.conf +79 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/nginx/nginx.conf +44 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/nginx/rate-limits.conf +42 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/nginx/security-headers.conf +22 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/nginx/select-config.sh +37 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/prometheus/prometheus.yml +40 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/rabbitmq/definitions.json.example +37 -0
- fadenstack-0.4.2/src/faden_cli/bundle/shared/tls/README.md +30 -0
- fadenstack-0.4.2/src/faden_cli/cli.py +158 -0
- fadenstack-0.4.2/src/faden_cli/commands/__init__.py +1 -0
- fadenstack-0.4.2/src/faden_cli/commands/admin.py +161 -0
- fadenstack-0.4.2/src/faden_cli/commands/backup.py +159 -0
- fadenstack-0.4.2/src/faden_cli/commands/config.py +146 -0
- fadenstack-0.4.2/src/faden_cli/commands/deploy.py +949 -0
- fadenstack-0.4.2/src/faden_cli/commands/dev/__init__.py +1 -0
- fadenstack-0.4.2/src/faden_cli/commands/dev/dev_doctor.py +46 -0
- fadenstack-0.4.2/src/faden_cli/commands/dev/dev_down.py +241 -0
- fadenstack-0.4.2/src/faden_cli/commands/dev/dev_group.py +24 -0
- fadenstack-0.4.2/src/faden_cli/commands/dev/dev_init.py +710 -0
- fadenstack-0.4.2/src/faden_cli/commands/dev/dev_pull.py +297 -0
- fadenstack-0.4.2/src/faden_cli/commands/dev/dev_status.py +151 -0
- fadenstack-0.4.2/src/faden_cli/commands/dev/dev_up.py +1392 -0
- fadenstack-0.4.2/src/faden_cli/commands/doctor.py +225 -0
- fadenstack-0.4.2/src/faden_cli/commands/down.py +75 -0
- fadenstack-0.4.2/src/faden_cli/commands/logs_cmd.py +41 -0
- fadenstack-0.4.2/src/faden_cli/commands/maintenance.py +74 -0
- fadenstack-0.4.2/src/faden_cli/commands/module.py +113 -0
- fadenstack-0.4.2/src/faden_cli/commands/observe.py +95 -0
- fadenstack-0.4.2/src/faden_cli/commands/ports.py +91 -0
- fadenstack-0.4.2/src/faden_cli/commands/rebuild.py +158 -0
- fadenstack-0.4.2/src/faden_cli/commands/restore.py +139 -0
- fadenstack-0.4.2/src/faden_cli/commands/runtime_images.py +174 -0
- fadenstack-0.4.2/src/faden_cli/commands/status.py +71 -0
- fadenstack-0.4.2/src/faden_cli/commands/tls.py +722 -0
- fadenstack-0.4.2/src/faden_cli/commands/tune.py +37 -0
- fadenstack-0.4.2/src/faden_cli/commands/up.py +64 -0
- fadenstack-0.4.2/src/faden_cli/commands/upgrade.py +470 -0
- fadenstack-0.4.2/src/faden_cli/commands/version.py +78 -0
- fadenstack-0.4.2/src/faden_cli/core/__init__.py +1 -0
- fadenstack-0.4.2/src/faden_cli/core/api_client.py +77 -0
- fadenstack-0.4.2/src/faden_cli/core/backup.py +717 -0
- fadenstack-0.4.2/src/faden_cli/core/bootstrap.py +291 -0
- fadenstack-0.4.2/src/faden_cli/core/bundle.py +110 -0
- fadenstack-0.4.2/src/faden_cli/core/clickhouse.py +61 -0
- fadenstack-0.4.2/src/faden_cli/core/compose.py +484 -0
- fadenstack-0.4.2/src/faden_cli/core/console.py +106 -0
- fadenstack-0.4.2/src/faden_cli/core/detect.py +580 -0
- fadenstack-0.4.2/src/faden_cli/core/dev_modules.py +149 -0
- fadenstack-0.4.2/src/faden_cli/core/docker_env.py +147 -0
- fadenstack-0.4.2/src/faden_cli/core/edge.py +94 -0
- fadenstack-0.4.2/src/faden_cli/core/env_gen.py +598 -0
- fadenstack-0.4.2/src/faden_cli/core/git.py +219 -0
- fadenstack-0.4.2/src/faden_cli/core/install.py +288 -0
- fadenstack-0.4.2/src/faden_cli/core/installation.py +186 -0
- fadenstack-0.4.2/src/faden_cli/core/local_node.py +719 -0
- fadenstack-0.4.2/src/faden_cli/core/maintenance.py +82 -0
- fadenstack-0.4.2/src/faden_cli/core/private_files.py +133 -0
- fadenstack-0.4.2/src/faden_cli/core/registry.py +574 -0
- fadenstack-0.4.2/src/faden_cli/core/release_feed.py +342 -0
- fadenstack-0.4.2/src/faden_cli/core/rmq.py +135 -0
- fadenstack-0.4.2/src/faden_cli/core/runtime_images.py +309 -0
- fadenstack-0.4.2/src/faden_cli/core/schedule.py +278 -0
- fadenstack-0.4.2/src/faden_cli/core/settings.py +159 -0
- fadenstack-0.4.2/src/faden_cli/core/sysinfo.py +303 -0
- fadenstack-0.4.2/src/faden_cli/core/tls.py +790 -0
- fadenstack-0.4.2/src/faden_cli/core/tune.py +154 -0
- fadenstack-0.4.2/src/faden_cli/core/update_check.py +254 -0
- fadenstack-0.4.2/src/faden_cli/core/workspace.py +155 -0
- fadenstack-0.4.2/src/faden_cli/templates/env.j2 +33 -0
- fadenstack-0.4.2/src/faden_cli/tui/__init__.py +1 -0
- fadenstack-0.4.2/src/faden_cli/tui/widgets/__init__.py +1 -0
- fadenstack-0.4.2/src/faden_cli/tui/wizard/__init__.py +1 -0
- fadenstack-0.4.2/tests/conftest.py +49 -0
- fadenstack-0.4.2/tests/test_backup_schedule.py +134 -0
- fadenstack-0.4.2/tests/test_backup_tls.py +78 -0
- fadenstack-0.4.2/tests/test_backup_volumes.py +89 -0
- fadenstack-0.4.2/tests/test_bootstrap_token.py +132 -0
- fadenstack-0.4.2/tests/test_cli_output_encoding.py +89 -0
- fadenstack-0.4.2/tests/test_dev_env_loopback.py +149 -0
- fadenstack-0.4.2/tests/test_dev_modules.py +151 -0
- fadenstack-0.4.2/tests/test_dev_up_port_holders.py +291 -0
- fadenstack-0.4.2/tests/test_dev_up_reclaim.py +155 -0
- fadenstack-0.4.2/tests/test_dev_up_service_hosts.py +159 -0
- fadenstack-0.4.2/tests/test_dev_up_terminal.py +106 -0
- fadenstack-0.4.2/tests/test_docker_env.py +100 -0
- fadenstack-0.4.2/tests/test_doctor_ports.py +70 -0
- fadenstack-0.4.2/tests/test_edge.py +28 -0
- fadenstack-0.4.2/tests/test_generated_env_reaches_compose.py +32 -0
- fadenstack-0.4.2/tests/test_installation.py +129 -0
- fadenstack-0.4.2/tests/test_internal_token_env.py +34 -0
- fadenstack-0.4.2/tests/test_main.py +26 -0
- fadenstack-0.4.2/tests/test_maintenance.py +89 -0
- fadenstack-0.4.2/tests/test_module_env.py +122 -0
- fadenstack-0.4.2/tests/test_postgres_logins.py +93 -0
- fadenstack-0.4.2/tests/test_private_files.py +251 -0
- fadenstack-0.4.2/tests/test_registry_gateway_env.py +58 -0
- fadenstack-0.4.2/tests/test_release_bundle.py +169 -0
- fadenstack-0.4.2/tests/test_release_feed.py +196 -0
- fadenstack-0.4.2/tests/test_required_env.py +158 -0
- fadenstack-0.4.2/tests/test_runtime_images.py +249 -0
- fadenstack-0.4.2/tests/test_shared_compose_ports.py +84 -0
- fadenstack-0.4.2/tests/test_tls.py +468 -0
- fadenstack-0.4.2/tests/test_tls_renew.py +228 -0
- fadenstack-0.4.2/tests/test_tune.py +111 -0
- fadenstack-0.4.2/tests/test_tune_memory.py +112 -0
- fadenstack-0.4.2/tests/test_update_check.py +254 -0
- fadenstack-0.4.2/tests/test_update_feed.py +70 -0
- fadenstack-0.4.2/tests/test_upgrade_housekeeping.py +129 -0
- fadenstack-0.4.2/tests/test_upgrade_rabbitmq.py +68 -0
- fadenstack-0.4.2/tests/test_workspace_detection.py +116 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.egg-info/
|
|
6
|
+
dist/
|
|
7
|
+
build/
|
|
8
|
+
*.egg
|
|
9
|
+
.eggs/
|
|
10
|
+
*.spec
|
|
11
|
+
|
|
12
|
+
# Virtual environment
|
|
13
|
+
.venv/
|
|
14
|
+
venv/
|
|
15
|
+
env/
|
|
16
|
+
|
|
17
|
+
# uv
|
|
18
|
+
uv.lock
|
|
19
|
+
|
|
20
|
+
# IDE
|
|
21
|
+
.idea/
|
|
22
|
+
.vscode/
|
|
23
|
+
*.swp
|
|
24
|
+
*.swo
|
|
25
|
+
|
|
26
|
+
# OS
|
|
27
|
+
.DS_Store
|
|
28
|
+
Thumbs.db
|
|
29
|
+
|
|
30
|
+
# Testing
|
|
31
|
+
.coverage
|
|
32
|
+
htmlcov/
|
|
33
|
+
.pytest_cache/
|
|
34
|
+
|
|
35
|
+
# mypy
|
|
36
|
+
.mypy_cache/
|
|
37
|
+
|
|
38
|
+
# ruff
|
|
39
|
+
.ruff_cache/
|
fadenstack-0.4.2/LICENSE
ADDED
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
fadenstack-0.4.2/NOTICE
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Fadenstack CLI
|
|
2
|
+
|
|
3
|
+
Copyright 2026 Emagin8 UG (haftungsbeschränkt) and contributors.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
you may not use this file except in compliance with the License.
|
|
7
|
+
You may obtain a copy of the License at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
See the License for the specific language governing permissions and
|
|
15
|
+
limitations under the License.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Brand and Official Releases
|
|
2
|
+
|
|
3
|
+
This repository is the upstream project for "Fadenstack" CLI.
|
|
4
|
+
|
|
5
|
+
- You may fork and modify the code under the Apache 2.0 License.
|
|
6
|
+
- Please do not present modified forks as the official "Fadenstack" project.
|
|
7
|
+
- Please do not use the Fadenstack name or logo in a way that implies endorsement or an official relationship.
|
|
8
|
+
|
|
9
|
+
Official releases are published only from this GitHub organization/repository.
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: fadenstack
|
|
3
|
+
Version: 0.4.2
|
|
4
|
+
Summary: CLI installer and management tool for the Fadenstack platform
|
|
5
|
+
Project-URL: Homepage, https://fadenstack.github.io
|
|
6
|
+
Project-URL: Repository, https://github.com/fadenstack/fadenstack
|
|
7
|
+
Project-URL: Documentation, https://fadenstack.github.io/docs
|
|
8
|
+
Project-URL: Issues, https://github.com/fadenstack/fadenstack/issues
|
|
9
|
+
Author-email: Sachith Liyanagama <liyanagama@outlook.de>
|
|
10
|
+
Maintainer-email: Sachith Liyanagama <liyanagama@outlook.de>
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
License-File: NOTICE
|
|
14
|
+
Keywords: ai,cli,docker,infrastructure,llm
|
|
15
|
+
Classifier: Development Status :: 3 - Alpha
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: Intended Audience :: System Administrators
|
|
18
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Topic :: System :: Installation/Setup
|
|
22
|
+
Classifier: Topic :: System :: Systems Administration
|
|
23
|
+
Requires-Python: <4.0,>=3.12
|
|
24
|
+
Requires-Dist: click<9,>=8.1
|
|
25
|
+
Requires-Dist: cryptography>=43
|
|
26
|
+
Requires-Dist: httpx<1,>=0.27
|
|
27
|
+
Requires-Dist: inquirerpy<1,>=0.3
|
|
28
|
+
Requires-Dist: jinja2<4,>=3.1
|
|
29
|
+
Requires-Dist: packaging>=23
|
|
30
|
+
Requires-Dist: psutil<7,>=6.0
|
|
31
|
+
Requires-Dist: pyyaml<7,>=6.0
|
|
32
|
+
Requires-Dist: rich<14,>=13.0
|
|
33
|
+
Requires-Dist: textual<2,>=1.0
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
|
|
36
|
+
# Fadenstack
|
|
37
|
+
|
|
38
|
+
[](https://pypi.org/project/fadenstack/)
|
|
39
|
+
[](https://pypi.org/project/fadenstack/)
|
|
40
|
+
[](https://github.com/fadenstack/fadenstack/blob/main/cli/LICENSE)
|
|
41
|
+
|
|
42
|
+
The single entry point to **deploy, configure, and manage** the
|
|
43
|
+
[fadenstack](https://fadenstack.com) platform — an open-source LLM gateway
|
|
44
|
+
that routes, secures, and observes traffic across local runtimes and remote
|
|
45
|
+
providers.
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
pipx install fadenstack # or: uv tool install fadenstack
|
|
49
|
+
faden deploy # installs Fadenstack into ~/fadenstack and starts it
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The CLI carries the deployment files of its release and runs that release's
|
|
53
|
+
published images: `fadenstack 0.4.2` deploys Fadenstack 0.4.2. To upgrade,
|
|
54
|
+
upgrade the CLI and run `faden upgrade`. See
|
|
55
|
+
[Installing Fadenstack](https://github.com/fadenstack/fadenstack/blob/main/docs/help/pages/operate/installing.md).
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Features
|
|
60
|
+
|
|
61
|
+
- **One-command production deploy** — pre-flight checks, `.env` generation,
|
|
62
|
+
the release's images, database migrations, and service startup.
|
|
63
|
+
- **Upgrade, backup and restore** — `faden upgrade` backs up every database,
|
|
64
|
+
moves the install to the CLI's release and keeps your settings.
|
|
65
|
+
- **Auto-tuning** — detects host CPU / RAM and computes optimal worker counts,
|
|
66
|
+
DB pool sizes, and queue channel pools.
|
|
67
|
+
- **Module management** — enable / disable optional services
|
|
68
|
+
(PII redaction, MCP tools, skills) via Docker Compose profiles.
|
|
69
|
+
- **GPU detection** — `faden doctor` lists the host's GPUs; `faden deploy`
|
|
70
|
+
adds the NVIDIA GPU overlay when the host has an NVIDIA runtime.
|
|
71
|
+
- **Developer workflow** — clone all repos, install deps, run infra + migrations,
|
|
72
|
+
and generate a VS Code workspace in one command.
|
|
73
|
+
- **Rich terminal UI** — tables, progress bars, and themed output powered by
|
|
74
|
+
[Rich](https://github.com/Textualize/rich).
|
|
75
|
+
- **Command abbreviation** — type `faden st` instead of `faden status`.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Requirements
|
|
80
|
+
|
|
81
|
+
| Dependency | Minimum |
|
|
82
|
+
| -------------- | ------- |
|
|
83
|
+
| Python | 3.12 |
|
|
84
|
+
| Docker Engine | 24.0 |
|
|
85
|
+
| Docker Compose | v2 |
|
|
86
|
+
|
|
87
|
+
Git is only needed to deploy from a source checkout (`--build`) or for the
|
|
88
|
+
developer workflow.
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Installation
|
|
93
|
+
|
|
94
|
+
### From PyPI
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
pip install fadenstack
|
|
98
|
+
|
|
99
|
+
# or with uv
|
|
100
|
+
uv tool install fadenstack
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### From source
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
git clone https://github.com/fadenstack/fadenstack.git
|
|
107
|
+
cd fadenstack/cli
|
|
108
|
+
uv sync # install deps + editable entry point
|
|
109
|
+
uv run faden --help
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Verify
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
faden version
|
|
116
|
+
faden doctor
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Quick start
|
|
122
|
+
|
|
123
|
+
### Production deployment
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Full deploy — pre-flight, env gen, pull this release's images, migrate, start
|
|
127
|
+
faden deploy # into ~/fadenstack
|
|
128
|
+
faden deploy /opt/faden # into a directory of your choice
|
|
129
|
+
|
|
130
|
+
# Enable optional modules
|
|
131
|
+
faden deploy --modules pii,mcp
|
|
132
|
+
|
|
133
|
+
# From a source checkout: build the images instead of pulling them
|
|
134
|
+
faden deploy --build
|
|
135
|
+
|
|
136
|
+
# Upgrade to the CLI's release (backs up first), back up, restore
|
|
137
|
+
faden upgrade
|
|
138
|
+
faden backup
|
|
139
|
+
faden restore ~/fadenstack/backups/<time>
|
|
140
|
+
|
|
141
|
+
# Provision node-agent on this host during deploy
|
|
142
|
+
faden deploy /opt/faden --local-node
|
|
143
|
+
|
|
144
|
+
# Provision node-agent on remote host over SSH
|
|
145
|
+
faden deploy /opt/faden --local-node --local-node-host ubuntu@10.0.0.12
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Day-to-day operations
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
faden up # start all services
|
|
152
|
+
faden up --build faden-gateway # rebuild a single service
|
|
153
|
+
faden down # stop all services
|
|
154
|
+
faden down --volumes # stop + remove volumes
|
|
155
|
+
faden status # service table
|
|
156
|
+
faden logs -f # tail all logs
|
|
157
|
+
faden logs -f faden-backend # tail one service
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Modules
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
faden module list # show available modules
|
|
164
|
+
faden module enable pii skills # enable modules
|
|
165
|
+
faden module disable mcp # disable a module
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Configuration
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
faden config show # print current config
|
|
172
|
+
faden config set dev.branch main # update a value (dot-notation)
|
|
173
|
+
faden config edit # open in $EDITOR
|
|
174
|
+
faden config path # print config file location
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Auto-tuning
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
faden tune # detect resources, write .env
|
|
181
|
+
faden tune --profile prod # production-grade sizing
|
|
182
|
+
faden tune --dry-run # preview without writing
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
### Admin utilities
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
faden admin reset-password --email admin@localhost
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### Developer workflow
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
# Bootstrap everything — clone repos, install deps, start infra,
|
|
195
|
+
# run migrations, generate VS Code workspace
|
|
196
|
+
faden dev init ~/projects/fadenstack
|
|
197
|
+
faden dev init ~/projects/fadenstack --ssh # SSH cloning
|
|
198
|
+
faden dev init ~/projects/fadenstack --overwrite # re-clone existing repos
|
|
199
|
+
|
|
200
|
+
# Start / stop / status
|
|
201
|
+
faden dev up # on this machine only (127.0.0.1)
|
|
202
|
+
faden dev up --lan # on every interface, for one run
|
|
203
|
+
faden dev up --backend-only
|
|
204
|
+
faden dev up --modules pii,mcp,skills # also run the optional modules
|
|
205
|
+
faden dev up --local-node
|
|
206
|
+
faden dev up --local-node --local-node-host ubuntu@10.0.0.12
|
|
207
|
+
faden dev down
|
|
208
|
+
faden dev status
|
|
209
|
+
|
|
210
|
+
# Check dev prerequisites (optionally auto-install missing tools)
|
|
211
|
+
faden dev doctor
|
|
212
|
+
faden dev doctor --install --yes
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
`--modules` runs PII (8003), MCP (8007) and skills (8008) on the host beside
|
|
216
|
+
the backend, and points the gateway and backend at them. Without it, the
|
|
217
|
+
modules switched on with `faden module enable` run; the others are switched
|
|
218
|
+
off in the gateway and backend. See
|
|
219
|
+
[What happens to a request](../docs/help/pages/administer/requests.md).
|
|
220
|
+
|
|
221
|
+
`--local-node` installs a systemd unit by default and requires sudo on Linux.
|
|
222
|
+
Use `--local-node-no-sudo` to skip privileged systemd setup.
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Command reference
|
|
227
|
+
|
|
228
|
+
| Command | Description |
|
|
229
|
+
| -------------------------------------------- | ------------------------------------------------------------- |
|
|
230
|
+
| `faden version` | Print CLI, Python, Docker, and Compose versions |
|
|
231
|
+
| `faden doctor` | Run system health checks (OS, RAM, disk, Docker, GPU, ports) |
|
|
232
|
+
| `faden deploy [DIR]` | Full production deployment with pre-flight checks |
|
|
233
|
+
| `faden upgrade` | Back up, move to the CLI's release, restart with health gate |
|
|
234
|
+
| `faden backup` / `faden restore DIR` | Dump every database and `.env` / put them back |
|
|
235
|
+
| `faden maintenance on\|off\|status` | Show the maintenance page instead of the platform (`-m` note) |
|
|
236
|
+
| `faden deploy [DIR] --local-node` | Deploy + provision node-agent (local or SSH host) |
|
|
237
|
+
| `faden up [SERVICES...]` | Start services (supports `--build`, `--pull`) |
|
|
238
|
+
| `faden down` | Stop and remove containers (`--volumes`, `--all`) |
|
|
239
|
+
| `faden status` | Show service state, health, and ports (`--json`) |
|
|
240
|
+
| `faden logs [SERVICES...]` | Stream logs (`-f`, `-n`, `--timestamps`) |
|
|
241
|
+
| `faden config show\|set\|edit\|path\|init` | Manage YAML configuration |
|
|
242
|
+
| `faden module list\|enable\|disable` | Toggle optional platform modules |
|
|
243
|
+
| `faden tune` | Auto-tune worker and pool settings (`--profile`, `--dry-run`) |
|
|
244
|
+
| `faden admin reset-password` | Reset a user password directly in the database |
|
|
245
|
+
| `faden dev init [DIR]` | Bootstrap full developer workspace |
|
|
246
|
+
| `faden dev up` | Start backend, worker, gateway, and frontend dev servers |
|
|
247
|
+
| `faden dev up --lan` | The same, reachable from the network (dev mode signs anyone in as admin) |
|
|
248
|
+
| `faden dev up --modules pii,mcp,skills` | Also run the optional modules on the host |
|
|
249
|
+
| `faden dev up --local-node` | Start dev services and provision node-agent |
|
|
250
|
+
| `faden dev down` | Stop all dev processes |
|
|
251
|
+
| `faden dev status` | Show repo branches, infra, and dev processes |
|
|
252
|
+
| `faden dev doctor` | Check dev prerequisites (`--install`) |
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## Project structure
|
|
257
|
+
|
|
258
|
+
```
|
|
259
|
+
cli/
|
|
260
|
+
├── pyproject.toml
|
|
261
|
+
├── src/
|
|
262
|
+
│ └── faden_cli/
|
|
263
|
+
│ ├── cli.py # Click root group + AliasedGroup
|
|
264
|
+
│ ├── commands/
|
|
265
|
+
│ │ ├── version.py # version
|
|
266
|
+
│ │ ├── doctor.py # doctor
|
|
267
|
+
│ │ ├── deploy.py # deploy
|
|
268
|
+
│ │ ├── up.py # up
|
|
269
|
+
│ │ ├── down.py # down
|
|
270
|
+
│ │ ├── status.py # status
|
|
271
|
+
│ │ ├── logs_cmd.py # logs
|
|
272
|
+
│ │ ├── config.py # config group
|
|
273
|
+
│ │ ├── module.py # module group
|
|
274
|
+
│ │ ├── tune.py # tune
|
|
275
|
+
│ │ ├── admin.py # admin group
|
|
276
|
+
│ │ └── dev/ # developer workflow
|
|
277
|
+
│ │ ├── dev_init.py
|
|
278
|
+
│ │ ├── dev_up.py
|
|
279
|
+
│ │ ├── dev_status.py
|
|
280
|
+
│ │ └── dev_doctor.py
|
|
281
|
+
│ ├── core/ # shared utilities
|
|
282
|
+
│ │ ├── compose.py # Docker Compose wrapper
|
|
283
|
+
│ │ ├── detect.py # OS / GPU / port detection
|
|
284
|
+
│ │ ├── settings.py # YAML config (~/.config/faden/)
|
|
285
|
+
│ │ ├── api_client.py # Backend REST client (httpx)
|
|
286
|
+
│ │ ├── bootstrap.py # First-admin bootstrap
|
|
287
|
+
│ │ ├── env_gen.py # .env generation (Jinja2)
|
|
288
|
+
│ │ ├── git.py # Git clone / checkout helpers
|
|
289
|
+
│ │ ├── install.py # Cross-platform tool installer
|
|
290
|
+
│ │ ├── registry.py # Central metadata registry
|
|
291
|
+
│ │ ├── sysinfo.py # Resource detection + tuning
|
|
292
|
+
│ │ └── console.py # Rich themed output
|
|
293
|
+
│ ├── tui/ # Textual TUI wizard
|
|
294
|
+
│ └── templates/ # Jinja2 .env templates
|
|
295
|
+
└── tests/
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
---
|
|
299
|
+
|
|
300
|
+
## License
|
|
301
|
+
|
|
302
|
+
Apache License 2.0 — see [LICENSE](LICENSE) for details.
|
|
303
|
+
|
|
304
|
+
Part of the [fadenstack](https://github.com/fadenstack) project.
|