Documenting, Libraries and Modules in Python

This lesson explores combining classes into libraries. It takes you through documenting your code and classes, and handling exceptions to make your code robust, providing useful messages for users. Finally you will combine classes into a module and learn how to install the package so you can re-use it in your work.

Prerequisites:

To complete this lesson you should be familiar with:

  • Writing programs in Python
  • Writing functions and classes
  • Wanting to write reusable code

Materials

Lesson material: https://arc-lessons.github.io/libraries-modules/00_schedule.html

Book a place (University of Bath students and staff only)

Future lessons:

Dates Programme
16th October 13:15-16:05 Classes, Collaborating and CI, Performance

Previous lesson instructor notebooks:

| Date | Instructor | | --- | --- |