Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 996 Bytes

readme.md

File metadata and controls

15 lines (8 loc) · 996 Bytes

A simple Clean Architecture project in Python

A simple project to bring clean architecture into the Python (and Django) world!

Everybody knows clean architecture. Numerous people used it in Python before. This is my attempt.

Class Digram

The entire domain layer is organized into the domain folder. It has no dependency on Django or any other library.

The folder structure of the project is different from what Django suggests. It is following screaming architecture instead. The Django folder structure is loosely based on what suggested in Two Scoops of Django 3.x.

I enjoyed using punq as an IoC container. IMHO it is very well designed and does not force itself into every detail of the project.

It is worth to mention get_ioc_view() function which mimics as_view() class method, but using IoC for istantiating classes instead of doing it directly.