Does anyone have any ideas on organizing sqlalchemy based projects? I have many tables and classes with foreign keys and relationships. What does everyone do in terms of separating classes, tables, and cartographers? I am relatively new to the structure, so any help would be appreciated.
Example:
classA.py # table definition and class A definition
classB.py # table definition and class B definition
### model.py
import classA,classB
map(classA.classA,clasSA.table)
map(classB.classB,clasSB.table)
The inclusion of cartographers inside class A and class B works, but creates problems with cross-import when building relationships .. Maybe I'm missing something :)
source
share