Python package to fang (example[.]com => example.com
) and defang (example.com => example[.]com
) indicators of compromise in text.
Read more in our interactive documentation!
For those working on or testing this library, here's some helpful tips.
This project uses pytest-benchmark to test the performance impact of changes.
By default, every time you run tests it will compare the new results with the existing results.
If you need to update the benchmarks, open the pyproject.toml
and replace all flags starting with --benchmark
with:
--benchmark-save=benchmark
This will save a file in the .benchmarks/
dir.