conpot
conpot copied to clipboard
Refactor bin/conpot
- Would be nice if it can be a file conpot.py with Python extension. setup.py needs to be updated to make this possible.
- The file should only do flags, startup message and initializing/running Conpot.
- Everything template should be in a separate module.
- Everything starting protocols should be in a separate module.
- Everything logging should be in separate module.
- Everything moved into a separate module should have test coverage.
Hi, Can I try this out?
Of course, no need to ask :)
Ideally there would also be tests where possible. Don't know if you want to add this to the requirements.
I realize that testing main()
is notoriously difficult, but with a split in separate modules (or at least functions) this should be much easier.
@NishantPuri99 have you had any success?