wnm 0.0.4__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.
Potentially problematic release.
This version of wnm might be problematic. Click here for more details.
- wnm-0.0.4/PKG-INFO +76 -0
- wnm-0.0.4/README.md +47 -0
- wnm-0.0.4/pyproject.toml +38 -0
- wnm-0.0.4/requirements-dev.txt +4 -0
- wnm-0.0.4/requirements.txt +6 -0
- wnm-0.0.4/setup.cfg +7 -0
- wnm-0.0.4/wnm/__init__.py +3 -0
- wnm-0.0.4/wnm/__main__.py +976 -0
- wnm-0.0.4/wnm/config.py +3 -0
- wnm-0.0.4/wnm/models.py +192 -0
- wnm-0.0.4/wnm.egg-info/PKG-INFO +76 -0
- wnm-0.0.4/wnm.egg-info/SOURCES.txt +15 -0
- wnm-0.0.4/wnm.egg-info/dependency_links.txt +1 -0
- wnm-0.0.4/wnm.egg-info/entry_points.txt +2 -0
- wnm-0.0.4/wnm.egg-info/requires.txt +12 -0
- wnm-0.0.4/wnm.egg-info/top_level.txt +3 -0
wnm-0.0.4/PKG-INFO
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: wnm
|
|
3
|
+
Version: 0.0.4
|
|
4
|
+
Summary: Manager for Autonomi nodes
|
|
5
|
+
Author-email: Troy Johnson <troy@weave.sh>
|
|
6
|
+
License: GPL-3.0
|
|
7
|
+
Keywords: Autonomi,antnode,weave,xd7
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
12
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
15
|
+
Classifier: Topic :: System :: Distributed Computing
|
|
16
|
+
Requires-Python: >=3.12.3
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
Requires-Dist: requests
|
|
19
|
+
Requires-Dist: packaging
|
|
20
|
+
Requires-Dist: sqlalchemy
|
|
21
|
+
Requires-Dist: alembic
|
|
22
|
+
Requires-Dist: json-fix
|
|
23
|
+
Requires-Dist: psutil
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: black; extra == "dev"
|
|
26
|
+
Requires-Dist: isort; extra == "dev"
|
|
27
|
+
Requires-Dist: build; extra == "dev"
|
|
28
|
+
Requires-Dist: twine; extra == "dev"
|
|
29
|
+
|
|
30
|
+
# Weave Node Manager
|
|
31
|
+
|
|
32
|
+
## Overview
|
|
33
|
+
Weave Node Manager (wnm) is a Python application designed to manage nodes for decentralized networks.
|
|
34
|
+
|
|
35
|
+
## Features
|
|
36
|
+
- Update node metrics and statuses.
|
|
37
|
+
- Manage systemd services and ufw firewall for linux nodes.
|
|
38
|
+
- Support for configuration via YAML, JSON, or command-line parameters.
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
1. Clone the repository:
|
|
42
|
+
```
|
|
43
|
+
git clone https://github.com/iweave/weave-node-manager.git
|
|
44
|
+
```
|
|
45
|
+
2. Navigate to the project directory:
|
|
46
|
+
```
|
|
47
|
+
cd weave-node-manager
|
|
48
|
+
3. Create a virtual environment
|
|
49
|
+
```
|
|
50
|
+
python3 -m venv .venv
|
|
51
|
+
```
|
|
52
|
+
4. Activate the virtual environment
|
|
53
|
+
```
|
|
54
|
+
. .venv/bin/activate
|
|
55
|
+
```
|
|
56
|
+
5. Install the required dependencies:
|
|
57
|
+
```
|
|
58
|
+
pip install -r requirements.txt
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## Configuration
|
|
62
|
+
Configuration can be done through a `.env` file, YAML, or JSON files. The application will prioritize these configurations over default values.
|
|
63
|
+
|
|
64
|
+
Upon finding an existing installation of [anm - aatonnomicc node manager](https://github.com/safenetforum-community/NTracking/tree/main/anm), wnm will disable anm and take over management of the cluster. The /var/antctl/config is only read on first ingestion, configuration priority then moves to the `.env` file or a named configuration file.
|
|
65
|
+
|
|
66
|
+
## Usage
|
|
67
|
+
To run the application, execute the following command:
|
|
68
|
+
```
|
|
69
|
+
python main.py
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## Contributing
|
|
73
|
+
Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.
|
|
74
|
+
|
|
75
|
+
## License
|
|
76
|
+
This project is licensed under the MIT License. See the LICENSE file for more details.
|
wnm-0.0.4/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Weave Node Manager
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
Weave Node Manager (wnm) is a Python application designed to manage nodes for decentralized networks.
|
|
5
|
+
|
|
6
|
+
## Features
|
|
7
|
+
- Update node metrics and statuses.
|
|
8
|
+
- Manage systemd services and ufw firewall for linux nodes.
|
|
9
|
+
- Support for configuration via YAML, JSON, or command-line parameters.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
1. Clone the repository:
|
|
13
|
+
```
|
|
14
|
+
git clone https://github.com/iweave/weave-node-manager.git
|
|
15
|
+
```
|
|
16
|
+
2. Navigate to the project directory:
|
|
17
|
+
```
|
|
18
|
+
cd weave-node-manager
|
|
19
|
+
3. Create a virtual environment
|
|
20
|
+
```
|
|
21
|
+
python3 -m venv .venv
|
|
22
|
+
```
|
|
23
|
+
4. Activate the virtual environment
|
|
24
|
+
```
|
|
25
|
+
. .venv/bin/activate
|
|
26
|
+
```
|
|
27
|
+
5. Install the required dependencies:
|
|
28
|
+
```
|
|
29
|
+
pip install -r requirements.txt
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Configuration
|
|
33
|
+
Configuration can be done through a `.env` file, YAML, or JSON files. The application will prioritize these configurations over default values.
|
|
34
|
+
|
|
35
|
+
Upon finding an existing installation of [anm - aatonnomicc node manager](https://github.com/safenetforum-community/NTracking/tree/main/anm), wnm will disable anm and take over management of the cluster. The /var/antctl/config is only read on first ingestion, configuration priority then moves to the `.env` file or a named configuration file.
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
To run the application, execute the following command:
|
|
39
|
+
```
|
|
40
|
+
python main.py
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Contributing
|
|
44
|
+
Contributions are welcome! Please submit a pull request or open an issue for any enhancements or bug fixes.
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
This project is licensed under the MIT License. See the LICENSE file for more details.
|
wnm-0.0.4/pyproject.toml
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "wnm"
|
|
7
|
+
authors = [
|
|
8
|
+
{name = "Troy Johnson", email = "troy@weave.sh"}
|
|
9
|
+
]
|
|
10
|
+
description = "Manager for Autonomi nodes"
|
|
11
|
+
license = {text = "GPL-3.0"}
|
|
12
|
+
keywords = ["Autonomi", "antnode", "weave", "xd7"]
|
|
13
|
+
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
14
|
+
readme = "README.md"
|
|
15
|
+
requires-python = ">=3.12.3"
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 3 - Alpha",
|
|
18
|
+
"Environment :: Console",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
|
21
|
+
"Operating System :: POSIX :: Linux",
|
|
22
|
+
"Programming Language :: Python :: 3.12",
|
|
23
|
+
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
24
|
+
"Topic :: System :: Distributed Computing",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
[project.scripts]
|
|
29
|
+
wnm = "wnm.__main__:main"
|
|
30
|
+
|
|
31
|
+
[tool.setuptools.dynamic]
|
|
32
|
+
dependencies = { file = ["requirements.txt"] }
|
|
33
|
+
optional-dependencies.dev = { file = ["requirements-dev.txt"] }
|
|
34
|
+
version = {attr = "wnm.__version__"}
|
|
35
|
+
|
|
36
|
+
[tool.setuptools.packages.find]
|
|
37
|
+
where = ["."]
|
|
38
|
+
|
wnm-0.0.4/setup.cfg
ADDED