polywrap_manifest.deserialize module

This module contains functions for deserializing msgpack encoded wrap manifests.

polywrap_manifest.deserialize.deserialize_wrap_manifest(manifest: bytes, options: DeserializeManifestOptions | None = None) WrapManifest[source]

Deserialize a wrap manifest from bytes.

Parameters:
  • manifest – The manifest to deserialize.

  • options – Options for deserialization. Defaults to None.

Raises:
  • MsgpackDecodeError – If the manifest could not be decoded.

  • DeserializeManifestError – If the manifest could not be deserialized.

  • NotImplementedError – If no_validate is set to true or the manifest version is not implemented.

Returns:

The Result of deserialized manifest.

Return type:

AnyWrapManifest