Command line utility for controlling foldingathome version 8
Project description
lufah
Little Utility for FAH v8
A python command line utility for macOS, Linux, Windows
Requirements
- python 3.8 or later
Install from PyPI
Install in isolated user environment (preferred):
pip install pipx
pipx install lufah
Or
pip install lufah
Uninstall
pip install pipx
pipx uninstall lufah
Or
pip uninstall lufah
Install from source
macOS / Linux / Windows
git clone https://github.com/kbernhagen/lufah.git
cd lufah
make install-user
Uninstall from source
git clone https://github.com/kbernhagen/lufah.git
cd lufah
make uninstall-user
Usage
Note that lufah uses unencrypted, direct websocket connections. This is what Web Control uses to connect to the local client. This has security implications if you enable direct remote access on a client. See HOWTO: Allow v8 Client Remote Control
lufah -h
Usage: lufah [OPTIONS] COMMAND [ARGS]...
Little Utility for FAH v8
Options:
-a, --address ADDRESS [host][:port][/group] or
[host][:port],[host][:port]... Use "." for localhost.
Group name must not be url-encoded, but may need
escaping from shell. Can be a comma-separated list of
hosts for commands units, info, fold, finish, pause
[default: localhost:7396]
-v, --verbose
-d, --debug
--version Show version and exit.
--install-completion Install completion for the current shell.
--show-completion Show completion for the current shell, to copy it or
customize the installation.
-h, --help Show this message and exit.
Commands:
fold Start folding in specified group or all groups.
finish Finish folding and pause specified group or all groups.
pause Pause folding in specified group or all groups.
unpause (Deprecated) alias for fold
wait-until-paused Run until specified group or all groups are paused.
config Get or set config values.
create-group Create group if it does not exist.
dump-all Dump all paused units in specified group or all groups.
enable-all-gpus Enable all unclaimed gpus in specified group.
state Show json snapshot of client state.
status (Deprecated) alias for state
get Show json value at dot-separated key path in client...
groups Show json array of resource group names.
info Show host and client info.
log Show client log.
top Show top-like updating units table.
units Show table of all units by machine name and group.
watch Show incoming messages.
link-account Link to account by token.
unlink-account Unlink account.
restart-account Restart account/node connection.
start Start local client service.
stop Stop local client service.
lufah config -h
Usage: lufah config [OPTIONS] COMMAND [ARGS]...
Get or set config values.
Other than for account settings (user, team, passkey, cause), a group must
be specified if there is more than one group.
Example: lufah -a / config cpus 0
Options:
-h, --help Show this message and exit.
Commands:
beta Enable beta work units.
cause Set cause preference.
checkpoint (Deprecated) Set requested CPU WU checkpoint frequency in
minutes.
cpus Set number of cpus to allocate to resource group.
cuda Enable CUDA for WUs in specified group.
fold-anon (Deprecated) Fold anonymously.
keep-awake Prevent system sleep while folding and not on battery.
key Set project key for internal beta testing of new projects.
on-battery Fold even if on battery.
on-idle Only fold while user is idle.
passkey Set passkey token for quick return bonus points.
priority (Deprecated) Set preferred core task priority.
team Set team number.
user Set folding user name, up to 100 bytes.
Examples
lufah units
lufah -a //rg2 finish
lufah -a /mygpu1 config cpus 0
lufah -a host1,host2,host3 units
lufah -a host1,host2,host3 info
Notes
If not given, the default command is "units".
If there are multiple groups, config requires a group name, except for account settings (user, team, passkey, cause).
For command lufah -a /groupname config cpus N
, N is not limited to unused cpus across groups.
Group "/" is taken to mean the default group, which is "".
For a group name actually starting with "/", use prefix "//".
Example: lufah -a somehost//rg1 finish
An error may not be shown if connection times out.
Commands start and stop are macOS-only.
The top
command is glitchy on Windows when the window is resized.
Type space to force a redraw.
Example Output
lufah -a .,panda.local units
--------------------------------------------------------------------------------
Project CPUs GPUs Core Status Progress PPD ETA Deadline
--------------------------------------------------------------------------------
Panda/ Run
18494 4 0 0xa8 Running 89.0% 178413 26m 39s 3d 8h
Sanctuary/ Paused
Sanctuary/tcore Run Wait 16m 21s
11901 2 0 0xfe Dumped 0.0% 0 28m 48s 5h 59m
Sanctuary/aux Finish
12421 8 0 0xa8 Finishing 48.1% 237945 14h 15m 4d 10h
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lufah-0.8.0.tar.gz
.
File metadata
- Download URL: lufah-0.8.0.tar.gz
- Upload date:
- Size: 91.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc449e7cbdd80e49967a8269f91547c0abd4af2edc27d11ff1b8fb810bcd5971 |
|
MD5 | 6fa15095b046cc6f8ecbe9b9a149ca30 |
|
BLAKE2b-256 | d75059bb1c3d8e861c0c431203ff88e59a3d46e3f9a25ea8875ef65781805786 |
File details
Details for the file lufah-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: lufah-0.8.0-py3-none-any.whl
- Upload date:
- Size: 41.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09a772ff1dfa77bd680737d2cc9d9a3e615f3d8985e0bd150d29ae03f867d56b |
|
MD5 | d614eebe123155cac549f1a3f041b8cc |
|
BLAKE2b-256 | ff3b0ae3869b7b65884c9c1d8fa53efb91441b5b9d1430afe70b20abe5930d3b |