Open shadeofblue opened 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
image_hash
and image_name
image
andimage_hash
in the function signaturerelated: https://github.com/golemfactory/yapapi/pull/1044