Skip to content

0.11.0

Compare
Choose a tag to compare
@shadeofblue shadeofblue released this 29 Jun 15:14

Changelog

The main feature of yapapi 0.11 is the addition of the manifest creation helper. It can be used to deploy those payloads that require a manifest but don't require a manifest signature - e.g. vm payloads using outgoing network connections that are whitelisted on provider nodes.

Deploying such payloads should be almost as straightforward as those that don't require manifests.

Example usage:

import base64
import json
from yapapi.payload import vm
from yapapi.payload.manifest import Manifest

async def generate_manifest():
    manifest_obj = await Manifest.generate(
        "05270a8a938ff5f5e30b0e61bc983a8c3e286c5cd414a32e1a077657",
        outbound_urls=["http://bor.golem.network"]
    )

    manifest = json.dumps(manifest_obj.dict(by_alias=True))

    payload = await vm.manifest(
        base64.b64encode(manifest.encode("utf-8")).decode("ascii"),
        capabilities=["vpn", "manifest-support"]
    )

    ...

Major Features

Minor Features

Fixes

Maintenance

Full Changelog: 0.10.1...0.11.0