From e319aea5a45c598a44f35b4e58131d977509e4f3 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 21 Jan 2022 12:29:36 -0800 Subject: [PATCH] add doc version info --- jc/__init__.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/jc/__init__.py b/jc/__init__.py index ff2d7e66..d3c6e20a 100644 --- a/jc/__init__.py +++ b/jc/__init__.py @@ -5,18 +5,22 @@ This package serializes the output of many standard unix command line tools to dictionaries and lists of dictionaries. -Interactive Documentation +## Interactive Documentation >>> help(jc) >>> help(jc.lib) >>> help(jc.util) >>> jc.get_help('parser_module_name') -Online Documentation +## Online Documentation +Latest: https://github.com/kellyjonbrazil/jc/tree/master/docs -Example: +Specific version (replace - e.g. `1.17.7`): +https://github.com/kellyjonbrazil/jc/tree/v/docs + +## Example: >>> import subprocess >>> import jc @@ -39,7 +43,9 @@ modules directly: >>> data [{'id': 64612, 'opcode': 'QUERY', 'status': 'NOERROR', ...}] -Available Functions (use `help(jc.lib)` for details): +## Available Functions + +Use `help(jc.lib)` for details: parse(parser_module_name: str, data: str | iterable) High-level API to easily access the parser. This API will find both