dargslan-toolkit 1.0.0__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.
- dargslan_toolkit-1.0.0/LICENSE +21 -0
- dargslan_toolkit-1.0.0/PKG-INFO +133 -0
- dargslan_toolkit-1.0.0/README.md +101 -0
- dargslan_toolkit-1.0.0/dargslan_toolkit/__init__.py +82 -0
- dargslan_toolkit-1.0.0/dargslan_toolkit/cli.py +75 -0
- dargslan_toolkit-1.0.0/dargslan_toolkit.egg-info/PKG-INFO +133 -0
- dargslan_toolkit-1.0.0/dargslan_toolkit.egg-info/SOURCES.txt +11 -0
- dargslan_toolkit-1.0.0/dargslan_toolkit.egg-info/dependency_links.txt +1 -0
- dargslan_toolkit-1.0.0/dargslan_toolkit.egg-info/entry_points.txt +2 -0
- dargslan_toolkit-1.0.0/dargslan_toolkit.egg-info/requires.txt +5 -0
- dargslan_toolkit-1.0.0/dargslan_toolkit.egg-info/top_level.txt +1 -0
- dargslan_toolkit-1.0.0/pyproject.toml +42 -0
- dargslan_toolkit-1.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Dargslan
|
|
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,133 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dargslan-toolkit
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Complete Linux sysadmin toolkit — system info, log parsing, network scanning, firewall audit, and Docker health checks in one package
|
|
5
|
+
Author-email: Dargslan <info@dargslan.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://dargslan.com
|
|
8
|
+
Project-URL: Documentation, https://dargslan.com/blog
|
|
9
|
+
Project-URL: Repository, https://github.com/Dargslan
|
|
10
|
+
Project-URL: Free Cheat Sheets, https://dargslan.com/cheat-sheets
|
|
11
|
+
Project-URL: Linux & DevOps Books, https://dargslan.com/books
|
|
12
|
+
Project-URL: Blog & Tutorials, https://dargslan.com/blog
|
|
13
|
+
Keywords: linux,sysadmin,devops,toolkit,monitoring,security,docker,network,firewall,log-parser
|
|
14
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
15
|
+
Classifier: Intended Audience :: System Administrators
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Topic :: System :: Systems Administration
|
|
20
|
+
Classifier: Topic :: System :: Monitoring
|
|
21
|
+
Classifier: Topic :: System :: Networking
|
|
22
|
+
Classifier: Topic :: Security
|
|
23
|
+
Requires-Python: >=3.7
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: dargslan-sysinfo>=1.0.0
|
|
27
|
+
Requires-Dist: dargslan-log-parser>=1.0.0
|
|
28
|
+
Requires-Dist: dargslan-net-scanner>=1.0.0
|
|
29
|
+
Requires-Dist: dargslan-firewall-audit>=1.0.0
|
|
30
|
+
Requires-Dist: dargslan-docker-health>=1.0.0
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# dargslan-toolkit
|
|
34
|
+
|
|
35
|
+
**The Complete Linux Sysadmin Toolkit** — Install everything you need for Linux server management with a single command. System monitoring, log analysis, network scanning, firewall auditing, and Docker health checks.
|
|
36
|
+
|
|
37
|
+
[](https://pypi.org/project/dargslan-toolkit/)
|
|
38
|
+
[](https://opensource.org/licenses/MIT)
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install dargslan-toolkit
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This installs all 5 Dargslan tools:
|
|
47
|
+
|
|
48
|
+
| Tool | Command | Description |
|
|
49
|
+
|------|---------|-------------|
|
|
50
|
+
| [dargslan-sysinfo](https://pypi.org/project/dargslan-sysinfo/) | `dargslan-sysinfo` | CPU, memory, disk, network monitoring |
|
|
51
|
+
| [dargslan-log-parser](https://pypi.org/project/dargslan-log-parser/) | `dargslan-logs` | Parse syslog, auth.log, nginx logs |
|
|
52
|
+
| [dargslan-net-scanner](https://pypi.org/project/dargslan-net-scanner/) | `dargslan-netscan` | Ping sweep, TCP port scanning |
|
|
53
|
+
| [dargslan-firewall-audit](https://pypi.org/project/dargslan-firewall-audit/) | `dargslan-fwaudit` | iptables/nftables rule auditing |
|
|
54
|
+
| [dargslan-docker-health](https://pypi.org/project/dargslan-docker-health/) | `dargslan-docker` | Container health & resource monitoring |
|
|
55
|
+
|
|
56
|
+
## Quick Start
|
|
57
|
+
|
|
58
|
+
### Unified CLI
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Full system overview
|
|
62
|
+
dargslan overview
|
|
63
|
+
|
|
64
|
+
# Individual tools
|
|
65
|
+
dargslan sysinfo
|
|
66
|
+
dargslan logs auth /var/log/auth.log
|
|
67
|
+
dargslan netscan quick 192.168.1.1
|
|
68
|
+
dargslan firewall
|
|
69
|
+
dargslan docker
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Python API
|
|
73
|
+
|
|
74
|
+
```python
|
|
75
|
+
from dargslan_toolkit import Toolkit
|
|
76
|
+
|
|
77
|
+
tk = Toolkit()
|
|
78
|
+
|
|
79
|
+
# Full system audit
|
|
80
|
+
report = tk.full_audit()
|
|
81
|
+
|
|
82
|
+
# Individual modules
|
|
83
|
+
from dargslan_sysinfo import SystemInfo
|
|
84
|
+
from dargslan_log_parser import LogParser
|
|
85
|
+
from dargslan_net_scanner import NetScanner
|
|
86
|
+
from dargslan_firewall_audit import FirewallAudit
|
|
87
|
+
from dargslan_docker_health import DockerHealth
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Use Cases
|
|
91
|
+
|
|
92
|
+
- **Daily server health checks** — Quick overview of all system metrics
|
|
93
|
+
- **Security audits** — Firewall rules + open ports + auth log analysis
|
|
94
|
+
- **Incident response** — Log parsing + network scanning in one toolkit
|
|
95
|
+
- **Infrastructure monitoring** — Docker + system resources + network
|
|
96
|
+
- **Compliance checks** — Automated firewall and security auditing
|
|
97
|
+
|
|
98
|
+
## Why dargslan-toolkit?
|
|
99
|
+
|
|
100
|
+
- **Zero external dependencies** — Only Python standard library
|
|
101
|
+
- **5 tools, 1 install** — Everything a Linux sysadmin needs
|
|
102
|
+
- **CLI + Python API** — Use from terminal or import in scripts
|
|
103
|
+
- **Lightweight** — Minimal footprint, fast execution
|
|
104
|
+
- **Production tested** — Used on real Linux servers
|
|
105
|
+
|
|
106
|
+
## More Resources
|
|
107
|
+
|
|
108
|
+
- [Linux & DevOps eBooks](https://dargslan.com/books) — 210+ professional eBooks for sysadmins
|
|
109
|
+
- [Free Cheat Sheets](https://dargslan.com/cheat-sheets) — Linux, Docker, Kubernetes, Ansible quick references
|
|
110
|
+
- [Blog & Tutorials](https://dargslan.com/blog) — 300+ in-depth Linux and DevOps guides
|
|
111
|
+
- [Free Tools](https://dargslan.com/tools) — Linux Distro Finder, IT Career Path Calculator, and more
|
|
112
|
+
|
|
113
|
+
## Individual Packages
|
|
114
|
+
|
|
115
|
+
Each tool is also available as a standalone package:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
pip install dargslan-sysinfo
|
|
119
|
+
pip install dargslan-log-parser
|
|
120
|
+
pip install dargslan-net-scanner
|
|
121
|
+
pip install dargslan-firewall-audit
|
|
122
|
+
pip install dargslan-docker-health
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## License
|
|
126
|
+
|
|
127
|
+
MIT License — see [LICENSE](LICENSE) for details.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
**Made with care by [Dargslan](https://dargslan.com)** — Your source for Linux & DevOps knowledge.
|
|
132
|
+
|
|
133
|
+
[Website](https://dargslan.com) | [eBooks](https://dargslan.com/books) | [Cheat Sheets](https://dargslan.com/cheat-sheets) | [Blog](https://dargslan.com/blog) | [GitHub](https://github.com/Dargslan)
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# dargslan-toolkit
|
|
2
|
+
|
|
3
|
+
**The Complete Linux Sysadmin Toolkit** — Install everything you need for Linux server management with a single command. System monitoring, log analysis, network scanning, firewall auditing, and Docker health checks.
|
|
4
|
+
|
|
5
|
+
[](https://pypi.org/project/dargslan-toolkit/)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
pip install dargslan-toolkit
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
This installs all 5 Dargslan tools:
|
|
15
|
+
|
|
16
|
+
| Tool | Command | Description |
|
|
17
|
+
|------|---------|-------------|
|
|
18
|
+
| [dargslan-sysinfo](https://pypi.org/project/dargslan-sysinfo/) | `dargslan-sysinfo` | CPU, memory, disk, network monitoring |
|
|
19
|
+
| [dargslan-log-parser](https://pypi.org/project/dargslan-log-parser/) | `dargslan-logs` | Parse syslog, auth.log, nginx logs |
|
|
20
|
+
| [dargslan-net-scanner](https://pypi.org/project/dargslan-net-scanner/) | `dargslan-netscan` | Ping sweep, TCP port scanning |
|
|
21
|
+
| [dargslan-firewall-audit](https://pypi.org/project/dargslan-firewall-audit/) | `dargslan-fwaudit` | iptables/nftables rule auditing |
|
|
22
|
+
| [dargslan-docker-health](https://pypi.org/project/dargslan-docker-health/) | `dargslan-docker` | Container health & resource monitoring |
|
|
23
|
+
|
|
24
|
+
## Quick Start
|
|
25
|
+
|
|
26
|
+
### Unified CLI
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Full system overview
|
|
30
|
+
dargslan overview
|
|
31
|
+
|
|
32
|
+
# Individual tools
|
|
33
|
+
dargslan sysinfo
|
|
34
|
+
dargslan logs auth /var/log/auth.log
|
|
35
|
+
dargslan netscan quick 192.168.1.1
|
|
36
|
+
dargslan firewall
|
|
37
|
+
dargslan docker
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Python API
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
from dargslan_toolkit import Toolkit
|
|
44
|
+
|
|
45
|
+
tk = Toolkit()
|
|
46
|
+
|
|
47
|
+
# Full system audit
|
|
48
|
+
report = tk.full_audit()
|
|
49
|
+
|
|
50
|
+
# Individual modules
|
|
51
|
+
from dargslan_sysinfo import SystemInfo
|
|
52
|
+
from dargslan_log_parser import LogParser
|
|
53
|
+
from dargslan_net_scanner import NetScanner
|
|
54
|
+
from dargslan_firewall_audit import FirewallAudit
|
|
55
|
+
from dargslan_docker_health import DockerHealth
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Use Cases
|
|
59
|
+
|
|
60
|
+
- **Daily server health checks** — Quick overview of all system metrics
|
|
61
|
+
- **Security audits** — Firewall rules + open ports + auth log analysis
|
|
62
|
+
- **Incident response** — Log parsing + network scanning in one toolkit
|
|
63
|
+
- **Infrastructure monitoring** — Docker + system resources + network
|
|
64
|
+
- **Compliance checks** — Automated firewall and security auditing
|
|
65
|
+
|
|
66
|
+
## Why dargslan-toolkit?
|
|
67
|
+
|
|
68
|
+
- **Zero external dependencies** — Only Python standard library
|
|
69
|
+
- **5 tools, 1 install** — Everything a Linux sysadmin needs
|
|
70
|
+
- **CLI + Python API** — Use from terminal or import in scripts
|
|
71
|
+
- **Lightweight** — Minimal footprint, fast execution
|
|
72
|
+
- **Production tested** — Used on real Linux servers
|
|
73
|
+
|
|
74
|
+
## More Resources
|
|
75
|
+
|
|
76
|
+
- [Linux & DevOps eBooks](https://dargslan.com/books) — 210+ professional eBooks for sysadmins
|
|
77
|
+
- [Free Cheat Sheets](https://dargslan.com/cheat-sheets) — Linux, Docker, Kubernetes, Ansible quick references
|
|
78
|
+
- [Blog & Tutorials](https://dargslan.com/blog) — 300+ in-depth Linux and DevOps guides
|
|
79
|
+
- [Free Tools](https://dargslan.com/tools) — Linux Distro Finder, IT Career Path Calculator, and more
|
|
80
|
+
|
|
81
|
+
## Individual Packages
|
|
82
|
+
|
|
83
|
+
Each tool is also available as a standalone package:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
pip install dargslan-sysinfo
|
|
87
|
+
pip install dargslan-log-parser
|
|
88
|
+
pip install dargslan-net-scanner
|
|
89
|
+
pip install dargslan-firewall-audit
|
|
90
|
+
pip install dargslan-docker-health
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## License
|
|
94
|
+
|
|
95
|
+
MIT License — see [LICENSE](LICENSE) for details.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
**Made with care by [Dargslan](https://dargslan.com)** — Your source for Linux & DevOps knowledge.
|
|
100
|
+
|
|
101
|
+
[Website](https://dargslan.com) | [eBooks](https://dargslan.com/books) | [Cheat Sheets](https://dargslan.com/cheat-sheets) | [Blog](https://dargslan.com/blog) | [GitHub](https://github.com/Dargslan)
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""
|
|
2
|
+
dargslan-toolkit — The Complete Linux Sysadmin Toolkit
|
|
3
|
+
|
|
4
|
+
Install all Dargslan tools with: pip install dargslan-toolkit
|
|
5
|
+
|
|
6
|
+
Includes:
|
|
7
|
+
- dargslan-sysinfo: System information & monitoring
|
|
8
|
+
- dargslan-log-parser: Log file analysis
|
|
9
|
+
- dargslan-net-scanner: Network scanning
|
|
10
|
+
- dargslan-firewall-audit: Firewall auditing
|
|
11
|
+
- dargslan-docker-health: Docker health checks
|
|
12
|
+
|
|
13
|
+
Homepage: https://dargslan.com
|
|
14
|
+
Free Cheat Sheets: https://dargslan.com/cheat-sheets
|
|
15
|
+
Linux & DevOps Books: https://dargslan.com/books
|
|
16
|
+
Blog: https://dargslan.com/blog
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
__version__ = "1.0.0"
|
|
20
|
+
__author__ = "Dargslan"
|
|
21
|
+
__url__ = "https://dargslan.com"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class Toolkit:
|
|
25
|
+
"""Unified access to all Dargslan tools."""
|
|
26
|
+
|
|
27
|
+
def __init__(self):
|
|
28
|
+
self._sysinfo = None
|
|
29
|
+
self._log_parser = None
|
|
30
|
+
self._net_scanner = None
|
|
31
|
+
self._firewall_audit = None
|
|
32
|
+
self._docker_health = None
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def sysinfo(self):
|
|
36
|
+
if self._sysinfo is None:
|
|
37
|
+
from dargslan_sysinfo import SystemInfo
|
|
38
|
+
self._sysinfo = SystemInfo()
|
|
39
|
+
return self._sysinfo
|
|
40
|
+
|
|
41
|
+
@property
|
|
42
|
+
def logs(self):
|
|
43
|
+
if self._log_parser is None:
|
|
44
|
+
from dargslan_log_parser import LogParser
|
|
45
|
+
self._log_parser = LogParser()
|
|
46
|
+
return self._log_parser
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def network(self):
|
|
50
|
+
if self._net_scanner is None:
|
|
51
|
+
from dargslan_net_scanner import NetScanner
|
|
52
|
+
self._net_scanner = NetScanner()
|
|
53
|
+
return self._net_scanner
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def firewall(self):
|
|
57
|
+
if self._firewall_audit is None:
|
|
58
|
+
from dargslan_firewall_audit import FirewallAudit
|
|
59
|
+
self._firewall_audit = FirewallAudit()
|
|
60
|
+
return self._firewall_audit
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def docker(self):
|
|
64
|
+
if self._docker_health is None:
|
|
65
|
+
from dargslan_docker_health import DockerHealth
|
|
66
|
+
self._docker_health = DockerHealth()
|
|
67
|
+
return self._docker_health
|
|
68
|
+
|
|
69
|
+
def full_audit(self):
|
|
70
|
+
"""Run a complete system audit using all tools."""
|
|
71
|
+
return {
|
|
72
|
+
"system": self.sysinfo.full_report(),
|
|
73
|
+
"firewall": self.firewall.full_audit(),
|
|
74
|
+
"docker": self.docker.check_all(),
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
def quick_overview(self):
|
|
78
|
+
"""Print a quick system overview."""
|
|
79
|
+
self.sysinfo.print_report(["os", "cpu", "memory", "disk"])
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
__all__ = ["Toolkit"]
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Unified CLI for dargslan-toolkit — https://dargslan.com
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
import sys
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def main():
|
|
10
|
+
parser = argparse.ArgumentParser(
|
|
11
|
+
description="Dargslan Toolkit — Complete Linux Sysadmin Toolset",
|
|
12
|
+
epilog="More tools and eBooks at https://dargslan.com",
|
|
13
|
+
)
|
|
14
|
+
sub = parser.add_subparsers(dest="tool")
|
|
15
|
+
|
|
16
|
+
sub.add_parser("overview", help="Quick system overview")
|
|
17
|
+
sub.add_parser("sysinfo", help="Full system information")
|
|
18
|
+
sub.add_parser("firewall", help="Firewall audit")
|
|
19
|
+
sub.add_parser("docker", help="Docker health check")
|
|
20
|
+
|
|
21
|
+
logs_p = sub.add_parser("logs", help="Log parser")
|
|
22
|
+
logs_p.add_argument("log_type", choices=["auth", "nginx", "syslog"])
|
|
23
|
+
logs_p.add_argument("file", help="Path to log file")
|
|
24
|
+
|
|
25
|
+
net_p = sub.add_parser("netscan", help="Network scanner")
|
|
26
|
+
net_p.add_argument("action", choices=["quick", "ping"])
|
|
27
|
+
net_p.add_argument("target", help="Host or subnet")
|
|
28
|
+
|
|
29
|
+
sub.add_parser("version", help="Show version info")
|
|
30
|
+
|
|
31
|
+
args = parser.parse_args()
|
|
32
|
+
|
|
33
|
+
if args.tool == "overview":
|
|
34
|
+
from dargslan_toolkit import Toolkit
|
|
35
|
+
tk = Toolkit()
|
|
36
|
+
tk.quick_overview()
|
|
37
|
+
|
|
38
|
+
elif args.tool == "sysinfo":
|
|
39
|
+
from dargslan_sysinfo import SystemInfo
|
|
40
|
+
SystemInfo().print_report(["os", "cpu", "memory", "disk", "network", "processes"])
|
|
41
|
+
|
|
42
|
+
elif args.tool == "firewall":
|
|
43
|
+
from dargslan_firewall_audit import FirewallAudit
|
|
44
|
+
FirewallAudit().print_audit()
|
|
45
|
+
|
|
46
|
+
elif args.tool == "docker":
|
|
47
|
+
from dargslan_docker_health import DockerHealth
|
|
48
|
+
DockerHealth().print_status()
|
|
49
|
+
|
|
50
|
+
elif args.tool == "logs":
|
|
51
|
+
from dargslan_log_parser import LogParser
|
|
52
|
+
LogParser().print_summary(args.file, args.log_type)
|
|
53
|
+
|
|
54
|
+
elif args.tool == "netscan":
|
|
55
|
+
from dargslan_net_scanner import NetScanner
|
|
56
|
+
scanner = NetScanner()
|
|
57
|
+
if args.action == "quick":
|
|
58
|
+
scanner.print_scan(args.target)
|
|
59
|
+
elif args.action == "ping":
|
|
60
|
+
alive = scanner.ping_sweep(args.target)
|
|
61
|
+
print(f"Alive hosts ({len(alive)}):")
|
|
62
|
+
for h in alive:
|
|
63
|
+
print(f" {h}")
|
|
64
|
+
|
|
65
|
+
elif args.tool == "version":
|
|
66
|
+
from dargslan_toolkit import __version__
|
|
67
|
+
print(f"dargslan-toolkit v{__version__}")
|
|
68
|
+
print("https://dargslan.com")
|
|
69
|
+
|
|
70
|
+
else:
|
|
71
|
+
parser.print_help()
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
if __name__ == "__main__":
|
|
75
|
+
main()
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: dargslan-toolkit
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Complete Linux sysadmin toolkit — system info, log parsing, network scanning, firewall audit, and Docker health checks in one package
|
|
5
|
+
Author-email: Dargslan <info@dargslan.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://dargslan.com
|
|
8
|
+
Project-URL: Documentation, https://dargslan.com/blog
|
|
9
|
+
Project-URL: Repository, https://github.com/Dargslan
|
|
10
|
+
Project-URL: Free Cheat Sheets, https://dargslan.com/cheat-sheets
|
|
11
|
+
Project-URL: Linux & DevOps Books, https://dargslan.com/books
|
|
12
|
+
Project-URL: Blog & Tutorials, https://dargslan.com/blog
|
|
13
|
+
Keywords: linux,sysadmin,devops,toolkit,monitoring,security,docker,network,firewall,log-parser
|
|
14
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
15
|
+
Classifier: Intended Audience :: System Administrators
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Topic :: System :: Systems Administration
|
|
20
|
+
Classifier: Topic :: System :: Monitoring
|
|
21
|
+
Classifier: Topic :: System :: Networking
|
|
22
|
+
Classifier: Topic :: Security
|
|
23
|
+
Requires-Python: >=3.7
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: dargslan-sysinfo>=1.0.0
|
|
27
|
+
Requires-Dist: dargslan-log-parser>=1.0.0
|
|
28
|
+
Requires-Dist: dargslan-net-scanner>=1.0.0
|
|
29
|
+
Requires-Dist: dargslan-firewall-audit>=1.0.0
|
|
30
|
+
Requires-Dist: dargslan-docker-health>=1.0.0
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# dargslan-toolkit
|
|
34
|
+
|
|
35
|
+
**The Complete Linux Sysadmin Toolkit** — Install everything you need for Linux server management with a single command. System monitoring, log analysis, network scanning, firewall auditing, and Docker health checks.
|
|
36
|
+
|
|
37
|
+
[](https://pypi.org/project/dargslan-toolkit/)
|
|
38
|
+
[](https://opensource.org/licenses/MIT)
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install dargslan-toolkit
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
This installs all 5 Dargslan tools:
|
|
47
|
+
|
|
48
|
+
| Tool | Command | Description |
|
|
49
|
+
|------|---------|-------------|
|
|
50
|
+
| [dargslan-sysinfo](https://pypi.org/project/dargslan-sysinfo/) | `dargslan-sysinfo` | CPU, memory, disk, network monitoring |
|
|
51
|
+
| [dargslan-log-parser](https://pypi.org/project/dargslan-log-parser/) | `dargslan-logs` | Parse syslog, auth.log, nginx logs |
|
|
52
|
+
| [dargslan-net-scanner](https://pypi.org/project/dargslan-net-scanner/) | `dargslan-netscan` | Ping sweep, TCP port scanning |
|
|
53
|
+
| [dargslan-firewall-audit](https://pypi.org/project/dargslan-firewall-audit/) | `dargslan-fwaudit` | iptables/nftables rule auditing |
|
|
54
|
+
| [dargslan-docker-health](https://pypi.org/project/dargslan-docker-health/) | `dargslan-docker` | Container health & resource monitoring |
|
|
55
|
+
|
|
56
|
+
## Quick Start
|
|
57
|
+
|
|
58
|
+
### Unified CLI
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
# Full system overview
|
|
62
|
+
dargslan overview
|
|
63
|
+
|
|
64
|
+
# Individual tools
|
|
65
|
+
dargslan sysinfo
|
|
66
|
+
dargslan logs auth /var/log/auth.log
|
|
67
|
+
dargslan netscan quick 192.168.1.1
|
|
68
|
+
dargslan firewall
|
|
69
|
+
dargslan docker
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Python API
|
|
73
|
+
|
|
74
|
+
```python
|
|
75
|
+
from dargslan_toolkit import Toolkit
|
|
76
|
+
|
|
77
|
+
tk = Toolkit()
|
|
78
|
+
|
|
79
|
+
# Full system audit
|
|
80
|
+
report = tk.full_audit()
|
|
81
|
+
|
|
82
|
+
# Individual modules
|
|
83
|
+
from dargslan_sysinfo import SystemInfo
|
|
84
|
+
from dargslan_log_parser import LogParser
|
|
85
|
+
from dargslan_net_scanner import NetScanner
|
|
86
|
+
from dargslan_firewall_audit import FirewallAudit
|
|
87
|
+
from dargslan_docker_health import DockerHealth
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Use Cases
|
|
91
|
+
|
|
92
|
+
- **Daily server health checks** — Quick overview of all system metrics
|
|
93
|
+
- **Security audits** — Firewall rules + open ports + auth log analysis
|
|
94
|
+
- **Incident response** — Log parsing + network scanning in one toolkit
|
|
95
|
+
- **Infrastructure monitoring** — Docker + system resources + network
|
|
96
|
+
- **Compliance checks** — Automated firewall and security auditing
|
|
97
|
+
|
|
98
|
+
## Why dargslan-toolkit?
|
|
99
|
+
|
|
100
|
+
- **Zero external dependencies** — Only Python standard library
|
|
101
|
+
- **5 tools, 1 install** — Everything a Linux sysadmin needs
|
|
102
|
+
- **CLI + Python API** — Use from terminal or import in scripts
|
|
103
|
+
- **Lightweight** — Minimal footprint, fast execution
|
|
104
|
+
- **Production tested** — Used on real Linux servers
|
|
105
|
+
|
|
106
|
+
## More Resources
|
|
107
|
+
|
|
108
|
+
- [Linux & DevOps eBooks](https://dargslan.com/books) — 210+ professional eBooks for sysadmins
|
|
109
|
+
- [Free Cheat Sheets](https://dargslan.com/cheat-sheets) — Linux, Docker, Kubernetes, Ansible quick references
|
|
110
|
+
- [Blog & Tutorials](https://dargslan.com/blog) — 300+ in-depth Linux and DevOps guides
|
|
111
|
+
- [Free Tools](https://dargslan.com/tools) — Linux Distro Finder, IT Career Path Calculator, and more
|
|
112
|
+
|
|
113
|
+
## Individual Packages
|
|
114
|
+
|
|
115
|
+
Each tool is also available as a standalone package:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
pip install dargslan-sysinfo
|
|
119
|
+
pip install dargslan-log-parser
|
|
120
|
+
pip install dargslan-net-scanner
|
|
121
|
+
pip install dargslan-firewall-audit
|
|
122
|
+
pip install dargslan-docker-health
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## License
|
|
126
|
+
|
|
127
|
+
MIT License — see [LICENSE](LICENSE) for details.
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
**Made with care by [Dargslan](https://dargslan.com)** — Your source for Linux & DevOps knowledge.
|
|
132
|
+
|
|
133
|
+
[Website](https://dargslan.com) | [eBooks](https://dargslan.com/books) | [Cheat Sheets](https://dargslan.com/cheat-sheets) | [Blog](https://dargslan.com/blog) | [GitHub](https://github.com/Dargslan)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
dargslan_toolkit/__init__.py
|
|
5
|
+
dargslan_toolkit/cli.py
|
|
6
|
+
dargslan_toolkit.egg-info/PKG-INFO
|
|
7
|
+
dargslan_toolkit.egg-info/SOURCES.txt
|
|
8
|
+
dargslan_toolkit.egg-info/dependency_links.txt
|
|
9
|
+
dargslan_toolkit.egg-info/entry_points.txt
|
|
10
|
+
dargslan_toolkit.egg-info/requires.txt
|
|
11
|
+
dargslan_toolkit.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
dargslan_toolkit
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "dargslan-toolkit"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "Complete Linux sysadmin toolkit — system info, log parsing, network scanning, firewall audit, and Docker health checks in one package"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = {text = "MIT"}
|
|
11
|
+
requires-python = ">=3.7"
|
|
12
|
+
authors = [{name = "Dargslan", email = "info@dargslan.com"}]
|
|
13
|
+
keywords = ["linux", "sysadmin", "devops", "toolkit", "monitoring", "security", "docker", "network", "firewall", "log-parser"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 5 - Production/Stable",
|
|
16
|
+
"Intended Audience :: System Administrators",
|
|
17
|
+
"License :: OSI Approved :: MIT License",
|
|
18
|
+
"Operating System :: POSIX :: Linux",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Topic :: System :: Systems Administration",
|
|
21
|
+
"Topic :: System :: Monitoring",
|
|
22
|
+
"Topic :: System :: Networking",
|
|
23
|
+
"Topic :: Security",
|
|
24
|
+
]
|
|
25
|
+
dependencies = [
|
|
26
|
+
"dargslan-sysinfo>=1.0.0",
|
|
27
|
+
"dargslan-log-parser>=1.0.0",
|
|
28
|
+
"dargslan-net-scanner>=1.0.0",
|
|
29
|
+
"dargslan-firewall-audit>=1.0.0",
|
|
30
|
+
"dargslan-docker-health>=1.0.0",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[project.urls]
|
|
34
|
+
Homepage = "https://dargslan.com"
|
|
35
|
+
Documentation = "https://dargslan.com/blog"
|
|
36
|
+
Repository = "https://github.com/Dargslan"
|
|
37
|
+
"Free Cheat Sheets" = "https://dargslan.com/cheat-sheets"
|
|
38
|
+
"Linux & DevOps Books" = "https://dargslan.com/books"
|
|
39
|
+
"Blog & Tutorials" = "https://dargslan.com/blog"
|
|
40
|
+
|
|
41
|
+
[project.scripts]
|
|
42
|
+
dargslan = "dargslan_toolkit.cli:main"
|