pycsamt.jones.validation#

Functions

is_j_file(file, *[, deep])

Convenience wrapper around IsJ._assert_j().

Classes

IsJ()

Abstract base for A.G.

class pycsamt.jones.validation.IsJ[source]#

Bases: ABC

Abstract base for A.G. Jones J-format validation helpers.

Subclasses implement :pyattr:`is_valid`. The static method _assert_j() provides a robust, file-level validator that accepts either a path or an existing IsJ instance. The check is heuristic, fast and tolerant of minor formatting issues (e.g., non-canonical head order).

abstract property is_valid: bool[source]#

Return True when the instance is structurally valid.

pycsamt.jones.validation.is_j_file(file, *, deep=True)[source]#

Convenience wrapper around IsJ._assert_j().

Parameters:
Return type:

bool