parth-paradkar / pytodo

A minimal command line todo list created using Python and MongoDB
MIT License
4 stars 9 forks source link

Create new module for functions in script.py #10

Closed parth-paradkar closed 4 years ago

parth-paradkar commented 5 years ago

Currently script.py contains a lot of functions, many of which can be moved to another file for better code readability and structure

singh-yashwant commented 4 years ago

I am working on this. Any suggestions on how the final structure should look like?

parth-paradkar commented 4 years ago

Hi @singh-yashwant! Currently, the script.py file contains a lot of functions that can be called from another module. What I would suggest is to define all the functions in a file called modules.py and import the functions into script.py that will only contain the main() function. Let me know if you have any difficulty working on this.