Skip to content

An attempt to bring clean architecture into the python (and django) world!

Notifications You must be signed in to change notification settings

melmi/urlshortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An attempt to bring clean architecture into the python (and django) world!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages