From 6962b9ee8a52c924dc2de6b79ddeea3636e80fe4 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Wed, 19 Jan 2022 22:24:59 -0800 Subject: [PATCH] formatting --- docs/lib.md | 7 ++++--- jc/lib.py | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/lib.md b/docs/lib.md index c7f9bbe3..a8a65017 100644 --- a/docs/lib.md +++ b/docs/lib.md @@ -34,7 +34,7 @@ You can also use the lower-level parser modules directly: >>> import jc.parsers.date >>> jc.parsers.date.parse('Tue Jan 18 10:23:07 PST 2022') -Though, accessing plugin parsers directly is a bit more involved, so +Though, accessing plugin parsers directly is a bit more cumbersome, so this higher-level API is recommended. Here is how you can access plugin parsers without this API: @@ -49,13 +49,14 @@ parsers without this API: Parameters: - parser_mod_name: (string) Name of the parser module + parser_mod_name: (string) name of the parser module - data: (string or Data to parse (string for normal + data: (string or data to parse (string for normal iterator) parsers, iterator of strings for streaming parsers) raw: (boolean) output preprocessed JSON if True + quiet: (boolean) suppress warning messages if True ignore_exceptions: (boolean) ignore parsing exceptions if True diff --git a/jc/lib.py b/jc/lib.py index 09fc2d25..39985c77 100644 --- a/jc/lib.py +++ b/jc/lib.py @@ -152,7 +152,7 @@ def parse(parser_mod_name, data, >>> import jc.parsers.date >>> jc.parsers.date.parse('Tue Jan 18 10:23:07 PST 2022') - Though, accessing plugin parsers directly is a bit more involved, so + Though, accessing plugin parsers directly is a bit more cumbersome, so this higher-level API is recommended. Here is how you can access plugin parsers without this API: @@ -167,13 +167,14 @@ def parse(parser_mod_name, data, Parameters: - parser_mod_name: (string) Name of the parser module + parser_mod_name: (string) name of the parser module - data: (string or Data to parse (string for normal + data: (string or data to parse (string for normal iterator) parsers, iterator of strings for streaming parsers) raw: (boolean) output preprocessed JSON if True + quiet: (boolean) suppress warning messages if True ignore_exceptions: (boolean) ignore parsing exceptions if True