Skip to main content

API and console tool which wraps Folding@Home Client API for Pause/Restart/Power commands

Project description

Folding@Home Client API

This package allows you to manage a Folding@Home client via mocking the same API calls your browser makes when using the FAHViewer local web portal.

Install

# deactivate any virtual environments (venv, conda)
cd /tmp
git clone https://github.com/nitrag/folding-at-home-api-python.git
cd folding-at-home-api-python
python3 setup.py install

Usage

Arguments Description
--host Hostname or IP Address
--https Default is to use HTTP, use HTTPS instead
--port If you want to override the default port (80)
--pause Pauses FAH
--resume Resume's FAH

CLI Examples

Pause

folding-at-home --host 192.168.1.176 --pause 

Resume

folding-at-home --host 192.168.1.176 --resume 

Full Power

folding-at-home --host 192.168.1.176 --power FULL 

Python examples

from folding_at_home.api import FAHClientAPI
folding = FAHClientAPI(host=host)
folding.resume()
folding.set_power(power_level='LIGHT')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

folding_at_home-1.4.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

folding_at_home-1.4.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file folding_at_home-1.4.0.tar.gz.

File metadata

  • Download URL: folding_at_home-1.4.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.4

File hashes

Hashes for folding_at_home-1.4.0.tar.gz
Algorithm Hash digest
SHA256 20d83fbdab82116ee1f4961539cc7c7f2b6c082b5ac056e547b07588c95f52b5
MD5 0b9ded61f663ad6c2abe433986c7bd79
BLAKE2b-256 9b8b9c1b8e7c50f495c7d294ce6ff7d490ccf7848d5789e1a475315863645ff8

See more details on using hashes here.

File details

Details for the file folding_at_home-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: folding_at_home-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.4

File hashes

Hashes for folding_at_home-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 20d0e8323cda0b5dfc097d4fdfccce1159058146e0ddcfc85a27486ad68917a9
MD5 4e7fb89e5453be1842adaefc610cc39a
BLAKE2b-256 c507bec8fb6d7911b7f4e1eff0b59992323246877eab741dec1b4c47a0dcbd9c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page