Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Automate Finance with Python & SQL
·
Module 1
Structuring Reusable Python Code
1
Creating and Importing Python Modules
Organize related functions into a Python module (.py file) and import them into other scripts.
2
Making Modules Runnable & Importable
Use the `if __name__ == '__main__'` guard to make a module both importable and independently runnable.
3
Organizing Your Project Directory
Structure a project directory with clear separation of concerns (e.g., data, src, reports).
4
Command-Line Configuration with `argparse`
Make scripts configurable from the command line using `argparse`.
5
External Configuration with YAML
Manage settings and sensitive information using external configuration files (e.g., YAML).
Previous module
Next module
High-Performance Data Processing with DuckDB