Commit bf1fed4
authored
Improved DataFrameOutputFormatter (#341)
* refactor DataFrameOutputFormatter to enable checkpointing
* organize and fix json extra newline at end
* fix tests
* whitespace
* add tuple to ensure_iterable
* rm test file
* missing s
* output real unicode in json
* move kwargs default out of loop
* refactor duplicated option definitions
* define column option
* DF formatter improvements
* switch securitydata to use DFOutputFormatter everywhere
* add/improve docstrings
* fix output_format tests
* test iterrows
* default FileEventsOutputFormatter to RAW
* handle when checkpoint key isn't in columns selected
* add notes back to saved-search list
* fix test_securitydata
* add test for checkpointing when column missing
* rm df.html
* style
* fix null handling in newer pandas versions
* fix table format tests for differing pandas versions
* max tox pandas requires match pkg
* Auto print "No results found" from echo_formatted_dataframes
* style and changelog
* add test for echo-ing "No results found." on emtpy df
* remove uneeded check for empty df
* rm check for empty dfs in user cmds
* elif1 parent e08765c commit bf1fed4
16 files changed
Lines changed: 537 additions & 354 deletions
File tree
- src/code42cli
- cmds
- search
- logger
- tests
- cmds
- search
- integration
- logger
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | | - | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
27 | | - | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
| 360 | + | |
| 361 | + | |
365 | 362 | | |
366 | 363 | | |
367 | 364 | | |
| |||
493 | 490 | | |
494 | 491 | | |
495 | 492 | | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
| 493 | + | |
| 494 | + | |
501 | 495 | | |
502 | 496 | | |
503 | 497 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
146 | 162 | | |
147 | 163 | | |
148 | 164 | | |
| |||
0 commit comments