Skip to content

somogyijanos/sample-python-project-structure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Structuring a Python Project

This is a simple and clean example how to structure a Python project such that (absolute/relative) imports don't get messed up.

Requirements

  • Python 3

Usage

There are three python files included in this example. The idea is that all of them can be run individually and the imports still work if run from the project root:

python main.py
python app/addition.py
python app/conversion.py

Alternatively you can also just run:

bash run.sh

Acknowledgements

Inspired by this answer on stack overflow.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published