Module crowdin_api.api_resources.dictionaries.types

Classes

class DictionaryPatchPath (*args, **kwargs)

dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)

Ancestors

  • builtins.dict

Class variables

var op : PatchOperation
var path : str
class DictionaryPatchRequest (*args, **kwargs)

Dictionary JSON Patch operation.

op is "add" or "remove". path points to a word, e.g. "/words/0" (word index) or "/words/-" (append, with "add"). value is required for "add" (a word or a list of words). To remove several words in one request, specify the word indexes in reverse order.

Ancestors

  • builtins.dict

Class variables

var op : PatchOperation
var path : str
var value : Union[str, Iterable[str]]