add graphs

This commit is contained in:
Roger Filomeno 2025-01-23 02:04:13 +08:00
parent e8802b676c
commit e5180b9d7b
7 changed files with 48 additions and 2 deletions

1
.python-version Normal file
View File

@ -0,0 +1 @@
3.11

View File

@ -1 +1,22 @@
# crystalwire
![alt text](image.png)
## Crystalwire
Monitor bandwidth usage, per process!
'crystalwire' is a simple command-line tool that provides real-time monitoring of network bandwidth usage for each running process. It uses the `psutil` library to gather system information and displays the results in a user-friendly format.
### Installation
To install 'crystalwire', you can use pip:
``cmd
pip install -r requirements.txt
``
### Usage
Once installed, you can run 'crystalwire' from the command line:
``cmd
python -m crystalwire.main
``

View File

@ -159,7 +159,8 @@ def print_pid2traffic():
for i in range(40):
print("\r\033[3A\033[3A")
print("CrystalWire 1.0 http://github.com/rpfilomeno/crystalwire", end="\n")
print("💎 \033[1mCrystalWire\033[0m ✨ 1.0 \033[3mhttp://github.com/rpfilomeno/crystalwire\033[0m\n")
plot(df.head(3))
stat(printing_df)
# update the global df to our dataframe

6
hello.py Normal file
View File

@ -0,0 +1,6 @@
def main():
print("Hello from crystalwire!")
if __name__ == "__main__":
main()

BIN
image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 KiB

7
pyproject.toml Normal file
View File

@ -0,0 +1,7 @@
[project]
name = "crystalwire"
version = "0.1.0"
description = "Monitor bandwidth usage, per process!
readme = "README.md"
requires-python = ">=3.11"
dependencies = []

10
requirements.txt Normal file
View File

@ -0,0 +1,10 @@
numpy==2.2.1
pandas==2.2.3
plotille==5.0.0
psutil==6.1.1
python-dateutil==2.9.0.post0
pytz==2024.2
scapy==2.6.1
setuptools==75.8.0
six==1.17.0
tzdata==2024.2