abhisharma404 / vault

swiss army knife for hackers
https://abhisharma404.github.io/vault
MIT License
512 stars 94 forks source link

Refactor vault.py #90

Open mzfr opened 5 years ago

mzfr commented 5 years ago

Currently, we have around 1200 lines of code in a single file which is probably not a good practice. Also, this will increase since we are going to continue to add more functions. So it would be good if we can move the functions out of the vault.py file and only keep it as an entry point and maybe perform basic checks on ip/url.

To call other functions we can have maybe a util directory where we can keep all the existing functions. This will increase the number of imports or number of files but it will definitely help us to keep everything clean in vault.py

abhisharma404 commented 5 years ago

@mzfr I was thinking about the same issue. I think it is a great idea, it will also be more easier to configure Travis later on.

raajtilaksarma commented 4 years ago

Hi, found this in KWOC. Would like to try to refactor it. But need some context on how to group functions (like which functions can be grouped into a module and then be imported into vault.py.