All Questions
4 questions
1
vote
1
answer
314
views
Where to create repository instances?
I've several repositories. To make them testable, I add the ORM session in the constructor.
class Repository:
def __init__(session):
self.session = session
def save(object):
self.session()...
0
votes
2
answers
309
views
How compatible are data science notebooks with clean architecture?
Clean architecture decouples an app's core from the presentation/UI layer. The UI is just a plugin, replaceable (eg, web-based to desktop) without impacting the core.
Many data science apps mix code, ...
-1
votes
2
answers
595
views
How to ensure separation and inward dependencies between architectural layers in Python?
Suppose a large-scale project is being developed in Python 3.7. Some layered architecture is chosen: "clean architecture", "onion" or "hexagonal". The Dependency rule in it only allows inward-...
2
votes
1
answer
275
views
Maintainable way for keeping objects in memory
I am trying to figure out the best way to keep objects in memory without having them scattered everywhere within the code.
For example: I have a PyQT menu system which interacts with objects. ...