Best way to organize project Python

Viewed 26

I'm wanting to build a system that uses 2 FastAPI servers where one is a worker behind a firewall (potentially multiple) and one is a client facing server that will distribute tasks to the workers. I would like to have a 3rd project that is a common folder of things like webrequest schemas & sql models. An example of what i'm talking about is below. In C# I could make these 3 different projects and just include them into each other with references. Is there a way to do the same kinda thing in python so if I update common I can rebuild the agent and server?

repo/
  Agent/
      ...
     main.py
  Server/
     ...
     main.py
  Common/
     models/
        ...
     schemas/
        ...
     services/
        ...
0 Answers
Related