Summary and Schedule
This is a new lesson built with The Carpentries Workbench.
Setup Instructions | Download files required for the lesson | |
Duration: 00h 00m | 1. Python Scripts and Modules |
What is a ‘module’ in Python? How does this differ from a
‘script’? What are the benefits of modularising our Python code? |
Duration: 00h 22m | 2. From Modules to Packages |
What is a ‘package’ in Python? Why should we organise our code into packages? |
Duration: 00h 42m | 3. Building and Installing Packages using setuptools |
How can we manage our Python environment? How can we install our own packages? |
Duration: 01h 02m | 4. Extra: A History of Python Build Tools |
Why have the ‘best practices’ for building and installing
Python packages changed so much of the years? What problems has each new iteration solved? |
Duration: 01h 32m | 5. Publishing our Python Packages |
What services can we use to publish our software? What steps must we take to accomplish this? |
Duration: 02h 02m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
This lesson teaches how to create and publish packages in Python. We assume a basic understanding of Python, and assume learners are comfortable using simple commands in a Bash shell. The lesson assumes learners are working in Linux, but we hope to update this to include other operating systems in future. For the final lesson on publishing Python code, it will also be helpful to understand how to use Git to manage software projects. A lesson on Git is available with the Software Carpentires.
Some sections are marked ‘extra’, and these contain non-essential information that may be of interest to some learners. These sections do not need to be covered in order to understand the core content of the course.