├── .gitignore ├── .pre-commit-config.yaml ├── .pylintrc ├── .vscode └── settings.json ├── Dockerfile ├── cleanArch.dia ├── init └── schema.sql ├── requirements.txt ├── run.py └── src ├── __init__.py ├── data ├── __init__.py ├── interfaces │ ├── __init__.py │ └── users_repository.py ├── tests │ ├── __init__.py │ └── user_finder.py └── use_cases │ ├── __init__.py │ ├── user_finder.py │ ├── user_finder_test.py │ ├── user_register.py │ └── user_register_test.py ├── domain ├── __init__.py ├── models │ ├── __init__.py │ └── users.py └── use_cases │ ├── __init__.py │ ├── user_finder.py │ └── user_register.py ├── errors ├── __init__.py ├── error_handler.py └── types │ ├── __init__.py │ ├── http_bad_request.py │ ├── http_not_found.py │ └── http_unprocessable_entity.py ├── infra ├── __init__.py └── db │ ├── __init__.py │ ├── entities │ ├── __init__.py │ └── users.py │ ├── repositories │ ├── __init__.py │ ├── users_repository.py │ └── users_repository_test.py │ ├── settings │ ├── __init__.py │ ├── base.py │ ├── connection.py │ └── connection_test.py │ └── tests │ ├── __init__.py │ └── users_repository.py ├── main ├── __init__.py ├── adapters │ ├── __init__.py │ └── request_adapter.py ├── composers │ ├── __init__.py │ ├── user_finder_composer.py │ └── user_register_composer.py ├── routes │ ├── __init__.py │ └── routes.py └── server │ ├── __init__.py │ └── server.py ├── presentation ├── __init__.py ├── controllers │ ├── __init__.py │ ├── user_finder_controller.py │ ├── user_finder_controller_test.py │ └── user_register_controller.py ├── http_types │ ├── __init__.py │ ├── http_request.py │ └── http_response.py └── interfaces │ ├── __init__.py │ └── crontroller_interface.py └── validators ├── __init__.py ├── user_finder_validator.py ├── user_register_validator.py └── user_register_validator_test.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/.gitignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/.pylintrc -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/Dockerfile -------------------------------------------------------------------------------- /cleanArch.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/cleanArch.dia -------------------------------------------------------------------------------- /init/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/init/schema.sql -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/requirements.txt -------------------------------------------------------------------------------- /run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/run.py -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/data/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/data/interfaces/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/data/interfaces/users_repository.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/data/interfaces/users_repository.py -------------------------------------------------------------------------------- /src/data/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/data/tests/user_finder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/data/tests/user_finder.py -------------------------------------------------------------------------------- /src/data/use_cases/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/data/use_cases/user_finder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/data/use_cases/user_finder.py -------------------------------------------------------------------------------- /src/data/use_cases/user_finder_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/data/use_cases/user_finder_test.py -------------------------------------------------------------------------------- /src/data/use_cases/user_register.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/data/use_cases/user_register.py -------------------------------------------------------------------------------- /src/data/use_cases/user_register_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/data/use_cases/user_register_test.py -------------------------------------------------------------------------------- /src/domain/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/domain/models/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/domain/models/users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/domain/models/users.py -------------------------------------------------------------------------------- /src/domain/use_cases/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/domain/use_cases/user_finder.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/domain/use_cases/user_finder.py -------------------------------------------------------------------------------- /src/domain/use_cases/user_register.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/domain/use_cases/user_register.py -------------------------------------------------------------------------------- /src/errors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/errors/error_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/errors/error_handler.py -------------------------------------------------------------------------------- /src/errors/types/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/errors/types/__init__.py -------------------------------------------------------------------------------- /src/errors/types/http_bad_request.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/errors/types/http_bad_request.py -------------------------------------------------------------------------------- /src/errors/types/http_not_found.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/errors/types/http_not_found.py -------------------------------------------------------------------------------- /src/errors/types/http_unprocessable_entity.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/errors/types/http_unprocessable_entity.py -------------------------------------------------------------------------------- /src/infra/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/infra/db/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/infra/db/entities/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/infra/db/entities/users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/infra/db/entities/users.py -------------------------------------------------------------------------------- /src/infra/db/repositories/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/infra/db/repositories/users_repository.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/infra/db/repositories/users_repository.py -------------------------------------------------------------------------------- /src/infra/db/repositories/users_repository_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/infra/db/repositories/users_repository_test.py -------------------------------------------------------------------------------- /src/infra/db/settings/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/infra/db/settings/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/infra/db/settings/base.py -------------------------------------------------------------------------------- /src/infra/db/settings/connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/infra/db/settings/connection.py -------------------------------------------------------------------------------- /src/infra/db/settings/connection_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/infra/db/settings/connection_test.py -------------------------------------------------------------------------------- /src/infra/db/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/infra/db/tests/users_repository.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/infra/db/tests/users_repository.py -------------------------------------------------------------------------------- /src/main/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/adapters/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/adapters/request_adapter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/main/adapters/request_adapter.py -------------------------------------------------------------------------------- /src/main/composers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/composers/user_finder_composer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/main/composers/user_finder_composer.py -------------------------------------------------------------------------------- /src/main/composers/user_register_composer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/main/composers/user_register_composer.py -------------------------------------------------------------------------------- /src/main/routes/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/routes/routes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/main/routes/routes.py -------------------------------------------------------------------------------- /src/main/server/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/main/server/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/main/server/server.py -------------------------------------------------------------------------------- /src/presentation/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/presentation/controllers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/presentation/controllers/user_finder_controller.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/presentation/controllers/user_finder_controller.py -------------------------------------------------------------------------------- /src/presentation/controllers/user_finder_controller_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/presentation/controllers/user_finder_controller_test.py -------------------------------------------------------------------------------- /src/presentation/controllers/user_register_controller.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/presentation/controllers/user_register_controller.py -------------------------------------------------------------------------------- /src/presentation/http_types/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/presentation/http_types/http_request.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/presentation/http_types/http_request.py -------------------------------------------------------------------------------- /src/presentation/http_types/http_response.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/presentation/http_types/http_response.py -------------------------------------------------------------------------------- /src/presentation/interfaces/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/presentation/interfaces/crontroller_interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/presentation/interfaces/crontroller_interface.py -------------------------------------------------------------------------------- /src/validators/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/validators/user_finder_validator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/validators/user_finder_validator.py -------------------------------------------------------------------------------- /src/validators/user_register_validator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/validators/user_register_validator.py -------------------------------------------------------------------------------- /src/validators/user_register_validator_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/programadorLhama/CleanArch/HEAD/src/validators/user_register_validator_test.py --------------------------------------------------------------------------------