golemfactory / yapapi

Python high-level API for Golem.
https://yapapi.readthedocs.io/en/stable/
GNU Lesser General Public License v3.0
49 stars 22 forks source link

analyze the `vm.repo` et al #1055

Open shadeofblue opened 1 year ago

shadeofblue commented 1 year ago

related: https://github.com/golemfactory/yapapi/pull/1044

johny-b commented 1 year ago

Suggestion:

# This can create any payload, and is rarely used directly
payload = Payload(**kwargs)

# Creates VM payloads and uses internally Payload()
# (this is a non-async replacement for `vm.repo()`)
payload = Payload.vm(image_hash, **kwargs)

# Other functions might be implemented in the future
payload = Payload.whatever(any, args)

also related: #404

cryptobench commented 1 year ago

1044 now distinguishes between image_hash and image_name