Python code to create folders and Word documents for research papers in biomedical sciences, all in one go with just two entries
I am a researcher with more than seven years of experience working in public health and epidemiological research. Every time I am about to start a new research paper, I create a folder for this project, within several folders for each section of my work, and Word documents for the manuscript with specific titles. Having published over 170 peer-reviewed articles, I must have gone through this process over 200 times. I think it's time to automate this process and I will share with you how to do it.
At the end of the post you will find the complete code. You just need to copy and paste it into your favorite Python environment and hit run. The code will generate the create_project_structure function. This feature will create a folder structure and Word documents ready for you to get right to work on your research paper.
What does this function do?
This function will generate a folder at a specified path (base_path
), and this folder will have whatever name you want (project_name
). This feature will also create two Word documents, one for supplemental materials and…