Overview#
Best Practices in Python Package Development#
This course by The Molecular Sciences Software Institute (MolSSI) teaches users MolSSI’s best practices in Python package development.
MolSSI’s best practices provide a starting point to learning software-development processes and protocols. Adhering to these protocols will ensure that your code is reliable and reproducible while decreasing long-term maintenance, increasing long-term viability, and allowing others to contribute to your code base. Before starting to learn the MolSSI’s best practices, you should first consider your project’s user and developer community. If your project is small with a limited number of potential contributors, certain topics from the best practices course may be more important to your work than others. However, for projects with a large user base, it is crucial to complete all components of the course.
This lesson is under continual development, please report issues to the workshop repository. If you see a subject you would like to contribute to, submit a pull request!
Prerequisites
This material is best suited for people who have experience scripting in Python and are ready to learn about how to make their scripts into a software package. You should have experience programming Python and in using the terminal (or shell)
You can see a tutorial on using the shell from Software Carpentry. or use our command line basics lesson.
Workshop Lessons#
The workshop lessons listed in this table below are designed to be completed sequentially. In this workshop sequence, we first run the CookieCutter, then use the produced repository for the lesson on version control.
If you need a refresher on the command line, see our command line basics lesson. If you would like to do the git and GitHub lessons outside of the context of the CookieCutter, see our standalone lesson on git and standalone lesson on GitHub.
Set-Up#
Lesson Title |
Questions |
Objectives |
---|---|---|
|
|
|
|
|
git and GitHub#
Lesson Title |
Questions |
Objectives |
---|---|---|
|
|
|
|
|
|
|
|
Code Style and documentation#
Lesson Title |
Questions |
Objectives |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
Continuous Integration, Testing, Distribution#
Lesson Title |
Questions |
Objectives |
---|---|---|
|
|
|
|
|
|
|
|
|