Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
omega5300 committed May 6, 2023
1 parent 032bbfb commit 2e043bc
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 25 deletions.
27 changes: 19 additions & 8 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def network(self):

table.title = 'newtwork speedtest'

table.field_names = ["date", "ping", "download", "upload"]
table.field_names = ["hora", "ping", "bajada", "subida"]

st.get_best_server()

Expand All @@ -28,14 +28,25 @@ def network(self):
print(table)

def system(self):
uname = platform.uname()
system_table = PrettyTable()
os = platform.uname()

system_table.header = False

system_table.add_rows([
["Sistema", os.system],
["Lanzamiento", os.release],
["Versión", os.version],
["Arquitectura", os.machine],
["Procesador", os.processor]
])

if os.system == 'Windows':
system_table.add_row(["Edicion", platform.win32_edition()])
else:
return

print(f"System: {uname.system}")
print(f"Node Name: {uname.node}")
print(f"Release: {uname.release}")
print(f"Version: {uname.version}")
print(f"Machine: {uname.machine}")
print(f"Processor: {uname.processor}")
print(system_table)

if __name__ == '__main__':
fire.Fire(Commands)
15 changes: 0 additions & 15 deletions demo.py

This file was deleted.

30 changes: 30 additions & 0 deletions desarrollo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# mejorar o agregar

para mejorar el desarrollo debes conocer python y conocer virtual-env

se recomienda usar virtualenv para desarrollar el bot "se debe usar python3 no python2" pip o pip3 install virtualenv

``` bash
# windows
python -m venv venv

# linux y mac
python3 -m venv venv
```

para activar vitrualenv:
* windows: .\venv\scripts\activate.bat
* linux y mac: source ./venv/bin/activate

## install python module:
luego de activar el virtualenv lo siguiente es ejecutar lo siguiente.
### opcion 1
>pip install -r requirements.txt
### opcion 2
>pip3 install -r requirements.txt
## compilar app
``` bash
pyinstaller --onefile app.py -n=stack-supreme
```
25 changes: 23 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
# stack-supreme

[![Creative Commons License](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)](http://creativecommons.org/licenses/by-nc-sa/4.0/)

este conjunto de herramientas de terminal esta basado en:
- hardware information de stack-analyze npm 1.1.0:
solo la parte de version de sistema operativo
- speedtest nueva para la nueva version de stack analyze npm 1.2.5

desarrollado por omega5300 stack-analyze
desarrollado por omega5300 de stack-analyze

usos de programa:

**como powershell**
``` powershell
./stack-supreme <commando>
```

**simbolo de sistema o conocido como cmd**
``` bat
stack-supreme <commando>
```

## commandos disponibles

| commandos | descripcion |
| ----------- | ----------- |
| network | comprobar su velocidad de subida, bajada y ping de tu red |
| system | muestra la version de sistema operativo |

licencia CC-BY-NC-SA
> este sotfware es para fines no comerciales.

0 comments on commit 2e043bc

Please sign in to comment.