### hypothesmith.from_grammar Source: https://github.com/zac-hd/hypothesmith/blob/master/README.md Generates syntactically-valid Python source code based on the grammar. ```APIDOC ## hypothesmith.from_grammar(start="file_input", *, auto_target=True) ### Description Generates syntactically-valid Python source code based on the grammar. Valid values for start are "single_input", "file_input", or "eval_input". ### Parameters - **start** (str) - Optional - The grammar start symbol. Defaults to "file_input". - **auto_target** (bool) - Optional - If True, uses hypothesis.target() internally to drive towards larger and more complex examples. Defaults to True. ``` -------------------------------- ### hypothesmith.from_node Source: https://github.com/zac-hd/hypothesmith/blob/master/README.md Generates syntactically-valid Python source code based on the node types defined by the LibCST project. ```APIDOC ## hypothesmith.from_node(node=libcst.Module, *, auto_target=True) ### Description Generates syntactically-valid Python source code based on the node types defined by the LibCST project. You can pass any subtype of libcst.CSTNode. ### Parameters - **node** (libcst.CSTNode) - Optional - The LibCST node type to generate. Defaults to libcst.Module. - **auto_target** (bool) - Optional - If True, uses hypothesis.target() internally to drive towards larger and more complex examples. Defaults to True. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.