AQIT 0.1.0
Loading...
Searching...
No Matches
aquin.setup_cli Namespace Reference

Functions

str _utc_now ()
dict[str, Any] _gpu_summary ()
dict[str, Any] _sshd_listening ()
list[str] _local_ips ()
Path _ensure_aquin_home ()
dict[str, Any] _start_daemon (int port, float wait_s=40.0)
Path _write_machine_record (dict[str, Any] payload)
str _tunnel_block (int port, str user, str host)
None cmd_setup (list[str] args)

Function Documentation

◆ _ensure_aquin_home()

Path _ensure_aquin_home ( )
protected

Definition at line 99 of file setup_cli.py.

Referenced by _write_machine_record().

◆ _gpu_summary()

dict[str, Any] _gpu_summary ( )
protected

Definition at line 30 of file setup_cli.py.

Referenced by cmd_setup().

◆ _local_ips()

list[str] _local_ips ( )
protected

Definition at line 86 of file setup_cli.py.

Referenced by cmd_setup().

◆ _sshd_listening()

dict[str, Any] _sshd_listening ( )
protected
Best-effort: is something listening on port 22? (OpenSSH usually).

Definition at line 52 of file setup_cli.py.

Referenced by cmd_setup().

◆ _start_daemon()

dict[str, Any] _start_daemon ( int port,
float wait_s = 40.0 )
protected

Definition at line 105 of file setup_cli.py.

Referenced by cmd_setup().

◆ _tunnel_block()

str _tunnel_block ( int port,
str user,
str host )
protected

Definition at line 139 of file setup_cli.py.

Referenced by cmd_setup().

◆ _utc_now()

str _utc_now ( )
protected

Definition at line 26 of file setup_cli.py.

Referenced by cmd_setup().

◆ _write_machine_record()

Path _write_machine_record ( dict[str, Any] payload)
protected

Definition at line 132 of file setup_cli.py.

References _ensure_aquin_home().

Referenced by cmd_setup().

◆ cmd_setup()

None cmd_setup ( list[str] args)
aquin setup machine  :  prepare this host for local or remote (desktop tunnel) compute.

Definition at line 161 of file setup_cli.py.

References _gpu_summary(), _local_ips(), _sshd_listening(), _start_daemon(), _tunnel_block(), _utc_now(), _write_machine_record(), and cmd_setup().

Referenced by cmd_setup().