Date: Tue, 22 Jan 2019 15:58:23 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r490958 - in head/textproc: . py-jsonslicer Message-ID: <201901221558.x0MFwN8x094888@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Tue Jan 22 15:58:23 2019 New Revision: 490958 URL: https://svnweb.freebsd.org/changeset/ports/490958 Log: JsonSlicer performs a stream or iterative, pull JSON parsing, which means it does not load whole JSON into memory and is able to parse very large JSON files or streams. The module is written in C and uses YAJL JSON parsing library, so it's also quite fast. JsonSlicer takes a path of JSON map keys or array indexes, and provides iterator interface which yields JSON data matching given path as complete Python objects. WWW: https://pypi.org/project/jsonslicer/ Added: head/textproc/py-jsonslicer/ head/textproc/py-jsonslicer/Makefile (contents, props changed) head/textproc/py-jsonslicer/distinfo (contents, props changed) head/textproc/py-jsonslicer/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Tue Jan 22 15:57:53 2019 (r490957) +++ head/textproc/Makefile Tue Jan 22 15:58:23 2019 (r490958) @@ -1316,6 +1316,7 @@ SUBDIR += py-hyperestraier-python SUBDIR += py-hypua2jamo SUBDIR += py-jaxml + SUBDIR += py-jsonslicer SUBDIR += py-jtextfsm SUBDIR += py-junit-xml SUBDIR += py-laserhammer Added: head/textproc/py-jsonslicer/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-jsonslicer/Makefile Tue Jan 22 15:58:23 2019 (r490958) @@ -0,0 +1,27 @@ +# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= jsonslicer +PORTVERSION= 0.1.0 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Stream JSON parser for Python + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libyajl.so:devel/yajl + +USES= python:3.5+ pkgconfig +USE_PYTHON= autoplist distutils + +# pydistutils problem, it uses CC for compiling C++ code +CC= ${CXX} + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test + +.include <bsd.port.mk> Added: head/textproc/py-jsonslicer/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-jsonslicer/distinfo Tue Jan 22 15:58:23 2019 (r490958) @@ -0,0 +1,3 @@ +TIMESTAMP = 1548164974 +SHA256 (jsonslicer-0.1.0.tar.gz) = 9e2e4b9e0cb03b7b5519c5289f5b1b9b43ec69f0d0c617a264f650fc3d9c99bd +SIZE (jsonslicer-0.1.0.tar.gz) = 21458 Added: head/textproc/py-jsonslicer/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-jsonslicer/pkg-descr Tue Jan 22 15:58:23 2019 (r490958) @@ -0,0 +1,10 @@ +JsonSlicer performs a stream or iterative, pull JSON parsing, which +means it does not load whole JSON into memory and is able to parse +very large JSON files or streams. The module is written in C and +uses YAJL JSON parsing library, so it's also quite fast. + +JsonSlicer takes a path of JSON map keys or array indexes, and +provides iterator interface which yields JSON data matching given +path as complete Python objects. + +WWW: https://pypi.org/project/jsonslicer/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901221558.x0MFwN8x094888>