From 0c1be7cc11ec75a5738483d68d053e702eb34fc1 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 4 Mar 2022 16:29:36 -0800 Subject: [PATCH] reduce dig example size --- README.md | 11 ++--------- templates/readme_template | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 42b194d1..1d804634 100644 --- a/README.md +++ b/README.md @@ -53,16 +53,9 @@ will be a python dictionary, or list of dictionaries, instead of JSON: >>> cmd_output = subprocess.check_output(['dig', 'example.com'], text=True) >>> data = jc.parse('dig', cmd_output) >>> ->>> data -[{'id': 64612, 'opcode': 'QUERY', 'status': 'NOERROR', 'flags': ['qr', 'rd', -'ra'], 'query_num': 1, 'answer_num': 1, 'authority_num': 0, 'additional_num': -1, 'opt_pseudosection': {'edns': {'version': 0, 'flags': [], 'udp': 4096}}, -'question': {'name': 'example.com.', 'class': 'IN', 'type': 'A'}, 'answer': +>>> data[0]['answer'] [{'name': 'example.com.', 'class': 'IN', 'type': 'A', 'ttl': 29658, 'data': -'93.184.216.34'}], 'query_time': 52, 'server': -'2600:1700:bab0:d40::1#53(2600:1700:bab0:d40::1)', 'when': -'Fri Apr 16 16:13:00 PDT 2021', 'rcvd': 56, 'when_epoch': 1618614780, -'when_epoch_utc': None}] +'93.184.216.34'}] ``` > For `jc` Python package documentation, use `help('jc')`, `help('jc.lib')`, or diff --git a/templates/readme_template b/templates/readme_template index c71c3015..286ca343 100644 --- a/templates/readme_template +++ b/templates/readme_template @@ -53,16 +53,9 @@ will be a python dictionary, or list of dictionaries, instead of JSON: >>> cmd_output = subprocess.check_output(['dig', 'example.com'], text=True) >>> data = jc.parse('dig', cmd_output) >>> ->>> data -[{'id': 64612, 'opcode': 'QUERY', 'status': 'NOERROR', 'flags': ['qr', 'rd', -'ra'], 'query_num': 1, 'answer_num': 1, 'authority_num': 0, 'additional_num': -1, 'opt_pseudosection': {'edns': {'version': 0, 'flags': [], 'udp': 4096}}, -'question': {'name': 'example.com.', 'class': 'IN', 'type': 'A'}, 'answer': +>>> data[0]['answer'] [{'name': 'example.com.', 'class': 'IN', 'type': 'A', 'ttl': 29658, 'data': -'93.184.216.34'}], 'query_time': 52, 'server': -'2600:1700:bab0:d40::1#53(2600:1700:bab0:d40::1)', 'when': -'Fri Apr 16 16:13:00 PDT 2021', 'rcvd': 56, 'when_epoch': 1618614780, -'when_epoch_utc': None}] +'93.184.216.34'}] ``` > For `jc` Python package documentation, use `help('jc')`, `help('jc.lib')`, or