dStats 0.1.0__tar.gz → 1.0.0__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: dStats
3
- Version: 0.1.0
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:
@@ -4,6 +4,17 @@
4
4
  **dStats** is a real-time web-based monitoring tool that provides performance stats for Docker containers and visualizes their network connectivity graph.
5
5
 
6
6
  ---
7
+ ## Run the Python pip package
8
+ ```bash
9
+ pip install dStats
10
+ ```
11
+ Run the server:
12
+ ```bash
13
+ dstats.server
14
+ ```
15
+ Open your browser and go to:
16
+ **http://localhost:2743**
17
+ ---
7
18
 
8
19
  ## **Deploy Container Directly**
9
20
  Pull and run the container from Docker Hub:
@@ -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: 0.1.0
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:
@@ -3,6 +3,7 @@ README.md
3
3
  setup.py
4
4
  dStats/__init__.py
5
5
  dStats/asgi.py
6
+ dStats/server.py
6
7
  dStats/settings.py
7
8
  dStats/urls.py
8
9
  dStats/views.py
@@ -10,5 +11,6 @@ dStats/wsgi.py
10
11
  dStats.egg-info/PKG-INFO
11
12
  dStats.egg-info/SOURCES.txt
12
13
  dStats.egg-info/dependency_links.txt
14
+ dStats.egg-info/entry_points.txt
13
15
  dStats.egg-info/requires.txt
14
16
  dStats.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ dStats.server = dStats.server:main
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="dStats",
5
- version="0.1.0",
5
+ version="1.0.0",
6
6
  packages=find_packages(),
7
7
  include_package_data=True,
8
8
  description="A real-time web-based monitoring tool that provides performance stats for Docker containers and visualizes their network connectivity graph",
@@ -10,7 +10,7 @@ setup(
10
10
  long_description_content_type="text/markdown",
11
11
  author="Abdullah Al Arif",
12
12
  author_email="arifcse21@gmail.com",
13
- url="https://github.com/Arifcse21/dStats", # Optional: URL to your repository
13
+ url="https://github.com/Arifcse21/dStats",
14
14
  install_requires=[
15
15
  "Django>=5.1.4",
16
16
  "graphviz>=0.20.3",
@@ -24,4 +24,9 @@ setup(
24
24
  "Operating System :: OS Independent",
25
25
  ],
26
26
  python_requires=">=3.12.3",
27
+ entry_points={
28
+ 'console_scripts': [
29
+ 'dStats.server=dStats.server:main',
30
+ ],
31
+ },
27
32
  )
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes