Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Apr 2026 09:58:18 +0000
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 787b675c5d99 - main - textproc/py-partial-json-parser: New port: Parse partial JSON generated by LLMs
Message-ID:  <69d4d53a.47e42.1ef0ebc7@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=787b675c5d9985aa2fa3b528f4893eb44dd44d56

commit 787b675c5d9985aa2fa3b528f4893eb44dd44d56
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-04-07 04:29:30 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-04-07 09:58:08 +0000

    textproc/py-partial-json-parser: New port: Parse partial JSON generated by LLMs
---
 textproc/Makefile                         |  1 +
 textproc/py-partial-json-parser/Makefile  | 23 +++++++++++++++++++++++
 textproc/py-partial-json-parser/distinfo  |  3 +++
 textproc/py-partial-json-parser/pkg-descr |  3 +++
 4 files changed, 30 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 98895813138b..29f54b2da25d 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1536,6 +1536,7 @@
     SUBDIR += py-parsel
     SUBDIR += py-parsimonious
     SUBDIR += py-parso
+    SUBDIR += py-partial-json-parser
     SUBDIR += py-patiencediff
     SUBDIR += py-pdf2docx
     SUBDIR += py-pdfminer.six
diff --git a/textproc/py-partial-json-parser/Makefile b/textproc/py-partial-json-parser/Makefile
new file mode 100644
index 000000000000..b4feb7f33e42
--- /dev/null
+++ b/textproc/py-partial-json-parser/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	partial-json-parser
+DISTVERSION=	0.2.1.1.post7
+CATEGORIES=	textproc python # machine-learning
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:C/[-_.]+/_/g}-${DISTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Parse partial JSON generated by LLMs
+WWW=		https://promplate.dev/partial-json-parser \
+		https://github.com/promplate/partial-json-parser
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}rich>0:textproc/py-rich@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-partial-json-parser/distinfo b/textproc/py-partial-json-parser/distinfo
new file mode 100644
index 000000000000..43e083a8c816
--- /dev/null
+++ b/textproc/py-partial-json-parser/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1775500352
+SHA256 (partial_json_parser-0.2.1.1.post7.tar.gz) = 86590e1ba6bcb6739a2dfc17d2323f028cb5884f4c6ce23db376999132c9a922
+SIZE (partial_json_parser-0.2.1.1.post7.tar.gz) = 10296
diff --git a/textproc/py-partial-json-parser/pkg-descr b/textproc/py-partial-json-parser/pkg-descr
new file mode 100644
index 000000000000..60eeffcec01a
--- /dev/null
+++ b/textproc/py-partial-json-parser/pkg-descr
@@ -0,0 +1,3 @@
+partial-json-parser is a lightweight Python library for parsing partial
+JSON strings. It handles incomplete JSON data, which is useful for streaming
+scenarios where JSON is received incrementally.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69d4d53a.47e42.1ef0ebc7>