golemfactory/golem-core-python

Port/reimplemnt Payload along with `yapapi.payload.vm` and other `yapapi.payload` artifacts in golem-core:

Closed this issue · 1 comments

  • refactor golem-core's Package.from_image_hash so it doesn't spin asyncio event loop
  • refactor yappai's Package.resolve_url() so it returns plain url instead of str decorated with prefix and sufix

Examples

Preview Give feedback

Question from initial state of this issue:

Q: what is the reason AutodecoratingModel exists?
A: It's used in declarative way to describe stuff payload/model payment strategy

Q: is there a reason to mix properties and constrains as a collection on the same level (instead of having two separated collections)?
A: It's handy just to throw your needs in one place, where specific mapping to props and constraints are handled automagically