capa/scripts
Fariss 51a4eb46b8
replace tqdm, termcolor, tabulate with rich (#2374)
* logging: use rich handler for logging

* tqdm: remove unneeded redirecting_print_to_tqdm function

* tqdm: introduce `CapaProgressBar` rich `Progress` bar

* tqdm: replace tqdm with rich Progress bar

* tqdm: remove tqdm dependency

* termcolor: replace termcolor and update `scripts/`

* tests: update `test_render.py` to use rich.console.Console

* termcolor: remove termcolor dependency

* capa.render.utils: add `write` & `writeln` methods to subclass `Console`

* update markup util functions to use fmt strings

* tests: update `test_render.py` to use `capa.render.utils.Console`

* replace kwarg `end=""` with `write` and `writeln` methods

* tabulate: replace tabulate with `rich.table`

* tabulate: remove `tabulate` and its dependency `wcwidth`

* logging: handle logging in `capa.main`

* logging: set up logging in `capa.main`

this commit sets up logging in `capa.main` and uses a shared
`log_console` in `capa.helpers` for logging purposes

* changelog: replace packages with rich

* remove entry from pyinstaller and unneeded progress.update call

* update requirements.txt

* scripts: use `capa.helpers.log_console` in `CapaProgressBar`

* logging: configure root logger to use `RichHandler`

* remove unused import `inspect`
2024-09-27 09:34:21 +02:00
..
bulk-process.py
cache-ruleset.py
capa-as-library.py rename using dashes for consistency 2024-08-26 09:55:00 +00:00
capa2sarif.py add landing page and rules website (#2310) 2024-08-22 09:42:40 +02:00
capa2yara.py fix typos 2024-06-01 11:48:19 -07:00
capafmt.py
compare-backends.py detect and use third-party analysis backends when possible (#2380) 2024-09-26 13:21:55 +02:00
detect-backends.py detect and use third-party analysis backends when possible (#2380) 2024-09-26 13:21:55 +02:00
detect-binexport2-capabilities.py implement BinExport2 backend (#1950) 2024-09-12 10:09:05 -06:00
detect-elf-os.py
detect_duplicate_features.py
import-to-bn.py Binary Ninja update and fix (#2205) 2024-07-12 12:25:19 +02:00
import-to-ida.py
inspect-binexport2.py implement BinExport2 backend (#1950) 2024-09-12 10:09:05 -06:00
lint.py replace tqdm, termcolor, tabulate with rich (#2374) 2024-09-27 09:34:21 +02:00
linter-data.json
match-function-id.py
minimize_vmray_results.py assert sample analysis data is present 2024-08-01 07:58:29 +02:00
profile-memory.py
profile-time.py replace tqdm, termcolor, tabulate with rich (#2374) 2024-09-27 09:34:21 +02:00
proto-from-results.py
proto-to-results.py
setup-linter-dependencies.py
show-capabilities-by-function.py scripts/show-capabilities-by-function.py: fix incorrect function address 2024-07-29 14:17:40 +02:00
show-features.py scripts: remove old code from show-features.py 2024-07-29 12:00:29 -06:00
show-unused-features.py replace tqdm, termcolor, tabulate with rich (#2374) 2024-09-27 09:34:21 +02:00