Package jsondata :: Module jsonpatch
[hide private]
[frames] | no frames]

Module jsonpatch

source code

The JSONPatch module provides for the alteration of JSON data compliant to RFC6902.


Version: 0.2.21

Author: Arno-Can Uestuensoez

Copyright: Copyright (C) 2015-2016 Arno-Can Uestuensoez @Ingenieurbuero Arno-Can Uestuensoez

License: Artistic-License-2.0 + Forced-Fairplay-Constraints

Classes [hide private]
  unicode
str(object='') -> string
  JSONPatchItem
Record entry for list of patch tasks.
  JSONPatchItemRaw
Adds native patch strings or an unsorted dict for RFC6902.
  JSONPatchFilter
Filtering capabilities on the entries of patch lists.
  JSONPatch
Representation of a JSONPatch task list for RFC6902.
Functions [hide private]
 
getOp(x)
Converts input into corresponding enumeration.
[apisource code
Variables [hide private]
  __maintainer__ = 'Arno-Can Uestuensoez'
  __uuid__ = '63b597d6-4ada-4880-9f99-f5e0961351fb'
  _interactive = False
  RFC6902_ADD = 1
  RFC6902_COPY = 2
  RFC6902_MOVE = 3
  RFC6902_REMOVE = 4
  RFC6902_REPLACE = 5
  RFC6902_TEST = 6
  op2str = {1: 'add', 2: 'copy', 3: 'move', 4: 'remove', 5: 'rep...
  str2op = {'add': 1, 'copy': 2, 'move': 3, 'remove': 4, 'replac...
  __package__ = None
hash(x)
Variables Details [hide private]

op2str

Value:
{1: 'add', 2: 'copy', 3: 'move', 4: 'remove', 5: 'replace', 6: 'test'}

str2op

Value:
{'add': 1, 'copy': 2, 'move': 3, 'remove': 4, 'replace': 5, 'test': 6}