cdddg / py-clean-arch

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

Integrating SDK and Worker Functionality into py-clean-arch? #15

Closed cdddg closed 7 months ago

cdddg commented 1 year ago

Following the title, what would be the integrated project structure based on the v3 branch?

cdddg commented 7 months ago

Following the title, what would be the integrated project structure?

Project Structure Adjustment

SDK Integration

Workers Integration

Example

./
├── src/
│   ├── di/
│   ├── entrypoints/
│   ├── usecases/
│   ├── models/
│   ├── repositories/
│   ├── common/
│   ├── settings/
│   │
│   ├── workers/                  - Configuration and scripts for background tasks and consumers.
│   │   ├── celery_engine/        - Contains Celery beat and worker configurations. 
│   │   │                         - (Other suggested names: celery_hub, celery_workers, task_scheduler)
│   │   └── mq_consumer/          - Message queue consumer scripts.
│   │
│   ├── sdk/                      - Toolkit for interfacing with the API via HTTPX, returning function calls as project entities.
│   │   └── aio/client.py         - Asynchronous client implementation.
│   │
│   └── main.py                   - Main file to start the application.
└── tests/