pyrophone.jq
JSON byte-stream filtering with the optional PyPI jq binding.
Classes
| Name | Description |
|---|---|
JQ | Apply a jq program to each JSON payload, emitting zero or more results. |
JQclass#
class JQ(Node)Bases: Node
Apply a jq program to each JSON payload, emitting zero or more results.
Each input is one complete JSON value encoded as bytes. Results are emitted individually as compact UTF-8 JSON, preserving jq order and backpressure. Unlike the one-to-one Transform base, jq can filter or expand messages. Compilation and evaluation use synchronous bindings on the runtime loop.
exprattributeclass attributeinstance attribute#
expr = Property[str](
title='jq expression',
description='jq expression applied to each JSON message, for example .count += 1. Live changes take effect on the next input message.'
)in_portattributeclass attributeinstance attribute#
in_port = Input[bytes](description='One complete JSON value per payload.')out_portattributeclass attributeinstance attribute#
out_port = Output[bytes](description='One JSON-encoded payload per jq result.')Inherited from pyrophone._inspection.Printable
printmethod#
Inherited from
pyrophone._inspection.PrintableView sourcedef print(file: TextIO | None = None) -> NoneWrite a pretty multiline description, followed by a newline.