Home
last modified time | relevance | path

Searched refs:yaml_compat (Results 1 – 2 of 2) sorted by relevance

/zcbor-3.5.0-3.4.0/zcbor/
Dzcbor.py1581 def decode_str_yaml(self, yaml_str, yaml_compat=False): argument
1583 obj = self._from_yaml_obj(yaml_obj) if yaml_compat else yaml_obj
1667 def from_yaml(self, yaml_str, yaml_compat=False): argument
1669 obj = self._from_yaml_obj(yaml_obj) if yaml_compat else yaml_obj
1674 def obj_to_yaml(self, obj, yaml_compat=False): argument
1676 yaml_obj = self._to_yaml_obj(obj) if yaml_compat else obj
1680 def str_to_yaml(self, cbor_str, yaml_compat=False): argument
1681 return self.obj_to_yaml(loads(cbor_str), yaml_compat=yaml_compat)
1684 def from_json(self, json_str, yaml_compat=False): argument
1686 obj = self._from_yaml_obj(json_obj) if yaml_compat else json_obj
[all …]
/zcbor-3.5.0-3.4.0/tests/scripts/
Dtest_zcbor.py650 decoded = cddl.decode_str_yaml(test_yaml, yaml_compat=True)
653 encoded = cddl.str_to_yaml(cddl.from_yaml(test_yaml, yaml_compat=True), yaml_compat=True)