Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Creating a Python Software package with Best Practices
Rating: 4.5 out of 5(4 ratings)
890 students

Creating a Python Software package with Best Practices

Starting a python package on the right foot with the MolSSI cookiecutter template.
Last updated 10/2025
English

What you'll learn

  • Create a starting point for a new python project.
  • Get started with software best practices.
  • Utilizing a template to create a project structure.
  • Host your package on a remote repository to promote collaboration
  • Writing simple tests with the Pytest testing framework

Course content

4 sections14 lectures1h 27m total length
  • Introduction3:18

    Create a Python package using best practices, from build systems and documentation to testing and version control, guided by cookie cutter templates for easy packaging with Pip and Conga.

Requirements

  • Basic python programming

Description

When working with python, many developers often start with scripts to achieve specific goals. As they continue to develop, they often begin to see a potential benefit to the wider software community to share their efforts. Turning your code into a python package will enable you to deploy and share your code through package management tools, such as pip and conda, allowing other users to easily obtain and work with your code.

Creating a python package can come with a number of additional difficulties, such as understanding the python build system and including proper documentation. As code bases develop, they often become more complicated or gain additional developers. Including some software best practices: testing, version control, or continuous integration; will improve your development process. However, getting the best practices put in place and setting up the python packaging files can be a tedious experience.

To solve this problem, you can use a software called Cookiecutter, which is an open source tool to create projects from project templates. Cookiecutter uses a template to prompt you with a few questions about your project, and uses your answers to produce a set of files and folders in your filesystem. MolSSI has developed a template to support the development of python packages that implements a number of best practices in software design to give a developer a head start on creating a python package.

Through these lessons, you will obtain the Cookiecutter software, run it with the MolSSI Cookiecutter Template, and learn about the files that the Cookiecutter has produced. We will give a brief overview of why we think the included best practices are important. We hope you gain a further interest in expanding your software development skills and look into utilizing all the best practices the Cookiecutter has put in place for you.

Who this course is for:

  • Developers looking to start a new python project