GithubHelp home page GithubHelp logo

cdddg / py-clean-arch Goto Github PK

View Code? Open in Web Editor NEW
40.0 1.0 8.0 3.43 MB

A Python implementation of Clean Architecture, inspired by Uncle Bob's book

Python 97.69% Dockerfile 0.40% Makefile 1.07% Shell 0.84%
fastapi clean-architecture python dependency-injection pokedex-api unit-of-work asyncio python-clean-architecture graphql motor

py-clean-arch's Issues

Suggestions for py-clean-arch Structure and Logging Configuration

Overview

As I delve deeper into py-clean-arch, I see potential refinements to align more closely with Clean Architecture principles, especially regarding logging and middleware. I'd like to share some insights and seek community feedback.

Proposed Directory Structure:

src/
├── frameworks/ or infra/
│   ├── logging/
│   │   ├── filters.py       - Log filters
│   │   ├── formatters.py    - Log formatters
│   │   └── config.py        - Log configurations
│   ├── middleware/
│   │   ├── request_parsing.py  - Request parsing middleware
│   │   └── exception_handling.py - Exception handling middleware
│   └── extension.py         - FastAPI extensions

Logging Configuration Dilemma

I'm suggesting having a logging_conf.yml for centralized logging configuration. However, intertwining this config with specific code modules poses a structural challenge. Thoughts or recommendations on this are welcome.

Feedback

I'd appreciate feedback on the above suggestions and any alternative ideas you might have.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.