MCPcopy Create free account
hub / github.com/apache/qpid-proton / put_map

Method put_map

python/proton/_data.py:847–861  ·  view source on GitHub ↗

Puts a map value. Elements may be filled by entering the map node and putting alternating key value pairs. >>> data = Data() >>> data.put_map() >>> data.enter() >>> data.put_string("key") >>> data.put_string("value")

(self)

Source from the content-addressed store, hash-verified

845 self._check(pn_data_put_list(self._data))
846
847 def put_map(self) -> None:
848 """
849 Puts a map value. Elements may be filled by entering the map node
850 and putting alternating key value pairs.
851
852 >>> data = Data()
853 >>> data.put_map()
854 >>> data.enter()
855 >>> data.put_string("key")
856 >>> data.put_string("value")
857 >>> data.exit()
858
859 :raise: :exc:`DataException` if there is a Proton error.
860 """
861 self._check(pn_data_put_map(self._data))
862
863 def put_array(self, described: bool, element_type: int) -> None:
864 """

Callers 5

put_dictMethod · 0.95
testCopyMethod · 0.80
__call__Method · 0.80
putMethod · 0.80
ProtonClass · 0.80

Calls 2

_checkMethod · 0.95
pn_data_put_mapFunction · 0.85

Tested by

no test coverage detected