dStats 0.1.0__py3-none-any.whl → 1.0.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- dStats/server.py +27 -0
- {dStats-0.1.0.dist-info → dStats-1.0.0.dist-info}/METADATA +12 -1
- {dStats-0.1.0.dist-info → dStats-1.0.0.dist-info}/RECORD +7 -5
- dStats-1.0.0.dist-info/entry_points.txt +2 -0
- {dStats-0.1.0.dist-info → dStats-1.0.0.dist-info}/LICENSE +0 -0
- {dStats-0.1.0.dist-info → dStats-1.0.0.dist-info}/WHEEL +0 -0
- {dStats-0.1.0.dist-info → dStats-1.0.0.dist-info}/top_level.txt +0 -0
dStats/server.py
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
import os
|
2
|
+
import sys
|
3
|
+
import subprocess
|
4
|
+
from daphne.cli import CommandLineInterface
|
5
|
+
|
6
|
+
def main():
|
7
|
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dStats.settings')
|
8
|
+
|
9
|
+
# Construct the command to run Daphne
|
10
|
+
command = [
|
11
|
+
'daphne',
|
12
|
+
'-b', '0.0.0.0',
|
13
|
+
'-p', '2743',
|
14
|
+
'dStats.asgi:application'
|
15
|
+
]
|
16
|
+
try:
|
17
|
+
# Run the command
|
18
|
+
subprocess.run(command)
|
19
|
+
except KeyboardInterrupt:
|
20
|
+
print("\ndStats server stopped by user.")
|
21
|
+
print("Bye bye!")
|
22
|
+
sys.exit(0)
|
23
|
+
except Exception as e:
|
24
|
+
print(f"Error: {e}")
|
25
|
+
|
26
|
+
if __name__ == '__main__':
|
27
|
+
main()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: dStats
|
3
|
-
Version:
|
3
|
+
Version: 1.0.0
|
4
4
|
Summary: A real-time web-based monitoring tool that provides performance stats for Docker containers and visualizes their network connectivity graph
|
5
5
|
Home-page: https://github.com/Arifcse21/dStats
|
6
6
|
Author: Abdullah Al Arif
|
@@ -32,6 +32,17 @@ Dynamic: summary
|
|
32
32
|
**dStats** is a real-time web-based monitoring tool that provides performance stats for Docker containers and visualizes their network connectivity graph.
|
33
33
|
|
34
34
|
---
|
35
|
+
## Run the Python pip package
|
36
|
+
```bash
|
37
|
+
pip install dStats
|
38
|
+
```
|
39
|
+
Run the server:
|
40
|
+
```bash
|
41
|
+
dstats.server
|
42
|
+
```
|
43
|
+
Open your browser and go to:
|
44
|
+
**http://localhost:2743**
|
45
|
+
---
|
35
46
|
|
36
47
|
## **Deploy Container Directly**
|
37
48
|
Pull and run the container from Docker Hub:
|
@@ -1,11 +1,13 @@
|
|
1
1
|
dStats/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
dStats/asgi.py,sha256=MSQjGWX7GgrxE5_GvTsz8PRIiXwgCcx3PIkkUsQ1_tU,389
|
3
|
+
dStats/server.py,sha256=ryTsnYssq3uDYAEknd79M_5PTVqENiFahKzUdX4ULc4,623
|
3
4
|
dStats/settings.py,sha256=D73YEbwOWk54QosU21YvjSTVJvxkHTqUXiel76Nxpl4,3379
|
4
5
|
dStats/urls.py,sha256=R7CHnIif6hO8wr-C_HH7ew3-ZT8KtnE31YO9XT1Q8kU,816
|
5
6
|
dStats/views.py,sha256=mjxkwpwwZcS2rAemyaLzfrEOx3WmMHTj3LFGW5ruUwI,9427
|
6
7
|
dStats/wsgi.py,sha256=5CVIfhfO5NEUV3gXOmrPPjLNkeararRk6fCzkghNI_Q,389
|
7
|
-
dStats-
|
8
|
-
dStats-
|
9
|
-
dStats-
|
10
|
-
dStats-
|
11
|
-
dStats-
|
8
|
+
dStats-1.0.0.dist-info/LICENSE,sha256=qjNhYHFWgrHF5vENj51WBRO85HtL38pwfTIg8huGj08,483
|
9
|
+
dStats-1.0.0.dist-info/METADATA,sha256=nykCOc3s_qjR-oTmQO5H2oOcad5Mh1JsaPR2WrtcSbI,3971
|
10
|
+
dStats-1.0.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
11
|
+
dStats-1.0.0.dist-info/entry_points.txt,sha256=6qO7FbB1d_Tp79tZ7gVU5T87g0C-anmdBlJcNEmsBng,53
|
12
|
+
dStats-1.0.0.dist-info/top_level.txt,sha256=ZqX7qLq-LiHI4j3UAw9S9kHfeD094Jtxc5sdnrcNhU8,7
|
13
|
+
dStats-1.0.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|