cdddg / py-clean-arch

A Python implementation of Clean Architecture, inspired by Uncle Bob's book
76 stars 13 forks source link

refactor(project): go-style v2 to pythonic v3 #11

Closed cdddg closed 1 year ago

cdddg commented 1 year ago

In April 2023, I released version v2 of the project. Reflecting upon it, I recognized a strong influence of Go-specific styles in its structure. With this PR, I aim to refine the project's architecture, transitioning from the Go-centric design to one that aligns more closely with conventional Python practices.


Changelog:


Original Structure (v2):

src/
├── core/
│   ├── exception.py
│   └── ...
├── deliveries/
│   ├── graphql/
│   │   └── pokomon/  # Note the misspelling here
│   │       └── ...
│   └── ...
├── settings/
│   ├── dependency_injection.py
│   ├── unit_of_work.py
│   └── ...
└── ...

Updated Structure (v3):

src/
├── app/
│   ├── deliveries/
│   │   ├── graphql/
│   │   │   └── pokemon/  # Spelling corrected
│   │   │       └── ...
│   │   └── ...
│   ├── di/
│   │   ├── dependency_injection.py
│   │   └── unit_of_work.py
│   └── ...
├── common/
│   └── ...
├── models/
│   ├── exception.py
│   └── ...
└── ...