skip to navigation
skip to content

yajs 1.0.2

A small wrapper around YAJL's lexer


yajs is a simple package that provides a wrapper to the YAJL JSON lexer functions that allow tokenization of streams of JSON data without having to buffer up the whole data.


>>> from cStringIO import StringIO
>>> from yajs import tokenize
>>> for token in tokenize(StringIO('[1, 2, 3]')):
...     print token
('start_array', None)
('value', 1)
('value', 2)
('value', 3)
('end_array', None)
File Type Py Version Uploaded on Size
yajs-1.0.2-py2-none-macosx_10_11_intel.whl (md5) Python Wheel 2.7 2016-04-21 35KB
yajs-1.0.2.tar.gz (md5) Source 2016-04-21 35KB