Software Engineering with Python part 2: Modules

Cássio Bolba
4 min readJan 10, 2023

Continuing the series about SE with python, here it comes the second article, which is about modularization. Creating modular, reusable, shareable and testable code is very import for SE but also Data Engineers as myself. Having a solid code-base in your work can make your life much easier.

Well, I’m not and expert in the matter, but wanna share with you what I learned in my daily basis work from seniores, but mostly, compiling what I have learned from a module about python programming in Datacamp Data Engineer track.

This series will be composed by 4 articles:

Software Engineering with Python part 1: The foundation
Software Engineering with Python part 2: Modules
Software Engineering with Python part 3: Classes
Software Engineering with Python part 4: Maintainability

Writing a Python Module

A python module is basically a python library created by you. You manage and send it to others (or they clone from a repository…) and they can import and reuse it.

A basic package have at least 1 folder and 2 files with .py extension

  • for folder name, use all lower case letter, no spaces, avoid underscore, but use if make…

--

--