aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-04-07 04:29:30 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-04-07 09:58:08 +0000
commit787b675c5d9985aa2fa3b528f4893eb44dd44d56 (patch)
tree01f16999a1bbbf228b957f0879288db6593af760
parent85fbf348e3ef734661a3b37f2e298dd120ab9911 (diff)
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-partial-json-parser/Makefile23
-rw-r--r--textproc/py-partial-json-parser/distinfo3
-rw-r--r--textproc/py-partial-json-parser/pkg-descr3
4 files changed, 30 insertions, 0 deletions
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.