Previous topic

Soap 1.1

Next topic

Client Transports

This Page

MessagePack

The spyne.protocol.msgpack module contains implementations for protocols that use MessagePack as serializer.

Initially released in 2.8.0-rc.

This module is EXPERIMENTAL. You may not recognize the code here next time you look at it.

class spyne.protocol.msgpack.MessagePackDocument(app=None, validator=None, mime_type=None, skip_depth=0)[source]

Bases: spyne.protocol.dictobj.DictDocument

An integration class for the msgpack protocol.

create_in_document(ctx, in_string_encoding=None)[source]

Sets ctx.in_document, using ctx.in_string.

Parameters:
  • ctx – The MethodContext object
  • in_string_encoding – MessagePack is a binary protocol. So this argument is ignored.
spyne.protocol.msgpack.MessagePackObject

DEPRECATED. Use spyne.protocol.msgpack.MessagePackDocument instead

alias of MessagePackDocument

class spyne.protocol.msgpack.MessagePackRpc(app=None, validator=None, mime_type=None, skip_depth=0)[source]

Bases: spyne.protocol.msgpack.MessagePackDocument

An integration class for the msgpack-rpc protocol.

create_in_document(ctx, in_string_encoding=None)[source]

Sets ctx.in_document, using ctx.in_string.

Parameters:
  • ctx – The MethodContext object
  • in_string_encoding – MessagePack is a binary protocol. So this argument is ignored.