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

Module JSONPointer

source code

Provides classes for the JSONPointer definition in accordance to RFC6901.

The provided class JSONPointer internally stores and applies pointer data as a list of keys and indexes with the additional cooperative caching of the pointed in-memory node reference for fast access on data provided by the packages 'json' and 'jsonschema'. Requests for the string representation are transformed into a pointer path in accordance to RFC6901.

The JSONPointer class combines fast in-memory operations and pointer arithmetics with standards compliant path strings at the API.

The JSONPointer class by itself is focused on the path pointer itself, though the provided operations do not touch the content value. The pointer provides the hook where the value has to be inserted.


Version: 0.2.14

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]
  JSONPointerException
  JSONPointer
Represents exactly one JSONPointer in compliance with IETF RFC6901.
Variables [hide private]
  __maintainer__ = 'Arno-Can Uestuensoez'
  __uuid__ = '63b597d6-4ada-4880-9f99-f5e0961351fb'
  version = '2.7'
  _interactive = False
  NOTATION_JSON = 0
JSON notation in accordance to RFC7159
  NOTATION_HTTP_FRAGMENT = 1
JSON notation in accordance to RFC7159 with RFC3986.
  VALID_NODE_TYPE = (<type 'dict'>, <type 'list'>, <type 'str'>,...
Valid types of in-memory JSON node types.
  CHARSET_UTF = 0
Unicode.
  CHARSET_STR = 1
Python string.
  __package__ = 'jsondata'
Variables Details [hide private]

VALID_NODE_TYPE

Valid types of in-memory JSON node types.

Value:
(<type 'dict'>,
 <type 'list'>,
 <type 'str'>,
 <type 'unicode'>,
 <type 'int'>,
 <type 'float'>,
 <type 'bool'>,
 <type 'NoneType'>)