jq Operators¶
pdum.plumbum.jq ¶
Attributes¶
__all__
module-attribute
¶
__all__ = [
"Field",
"FieldWildcard",
"Index",
"IndexWildcard",
"JsonArray",
"JsonObject",
"JsonScalar",
"JsonValue",
"PathElement",
"PathSyntaxError",
"PathToken",
"ResolvedPath",
"apply_path",
"coalesce",
"contains",
"count_by",
"delete_path",
"ensure_resolved_path",
"explode",
"field",
"flatten",
"get_path",
"group_by",
"iter_paths",
"keys",
"match",
"merge",
"parse_path",
"pick",
"pluck",
"project",
"remove",
"resolve_path",
"set_path",
"set_value",
"stats",
"sum_by",
"transform",
"transform_path",
"unwind",
"values",
"walk",
"walk_tree",
"aexplode",
"aunwind",
"agroup_by",
"acount_by",
"asum_by",
"astats",
"where_equals",
"where_exists",
"where_type",
"zip_fields",
]
Classes¶
FieldWildcard
dataclass
¶
IndexWildcard
dataclass
¶
PathSyntaxError ¶
Bases: ValueError
Raised when a path expression cannot be parsed.
Functions¶
parse_path ¶
parse_path(expression)
Parse a dotted path expression into path tokens.
Supported syntax:
- foo.bar: field access
- items[0]: numeric index
- items[] or []: index wildcard
- *: field wildcard
- Optional leading . is ignored
Modules¶
paths ¶
Attributes¶
Classes¶
PathSyntaxError ¶
Bases: ValueError
Raised when a path expression cannot be parsed.
Functions¶
parse_path ¶
parse_path(expression)
Parse a dotted path expression into path tokens.
Supported syntax:
- foo.bar: field access
- items[0]: numeric index
- items[] or []: index wildcard
- *: field wildcard
- Optional leading . is ignored