├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── book ├── .gitignore └── src │ ├── .gitignore │ ├── Makefile │ ├── README.rst │ ├── ch01 │ ├── Makefile │ ├── README.rst │ ├── before_black.py │ ├── src │ │ ├── __init__.py │ │ ├── annotations.py │ │ ├── other.py │ │ ├── test_annotations.py │ │ ├── type_hinting_example.py │ │ └── type_hinting_example_2.py │ └── tests │ ├── ch02 │ ├── Makefile │ ├── README.rst │ ├── src │ │ ├── assignment_expressions.py │ │ ├── callables.py │ │ ├── caveats.py │ │ ├── container.py │ │ ├── contextmanagers.py │ │ ├── data_classes.py │ │ ├── dynamic.py │ │ ├── indices.py │ │ ├── iterables.py │ │ ├── properties.py │ │ └── sequences.py │ └── tests │ │ ├── test_assignment_expressions.py │ │ ├── test_caveats.py │ │ ├── test_contextmanagers.py │ │ ├── test_data_classes.py │ │ ├── test_dynamic_attributes.py │ │ ├── test_iterables.py │ │ ├── test_properties.py │ │ └── test_sequences.py │ ├── ch03 │ ├── Makefile │ ├── README.rst │ ├── src │ │ ├── base.py │ │ ├── exceptions_1.py │ │ ├── exceptions_2.py │ │ ├── exceptions_3.py │ │ ├── inheritance_antipattern.py │ │ ├── inheritance_patterns.py │ │ ├── kis.py │ │ ├── multiple_inheritance.py │ │ ├── multiple_inheritance_2.py │ │ ├── orthogonal.py │ │ └── packing_1.py │ └── tests │ │ ├── test_exceptions_1.py │ │ ├── test_exceptions_2.py │ │ ├── test_exceptions_3.py │ │ ├── test_kis.py │ │ └── test_packing1.py │ ├── ch04 │ ├── Makefile │ ├── README.rst │ ├── src │ │ ├── __init__.py │ │ ├── dip_1.py │ │ ├── dip_2.py │ │ ├── isp.py │ │ ├── lsp_1.py │ │ ├── lsp_2.py │ │ ├── openclosed_1.py │ │ ├── openclosed_2.py │ │ └── openclosed_3.py │ ├── srp_1.py │ └── tests │ │ ├── test_dip.py │ │ ├── test_isp.py │ │ ├── test_lsp.py │ │ └── test_ocp.py │ ├── ch05 │ ├── Makefile │ ├── README.rst │ ├── src │ │ ├── composition_1.py │ │ ├── composition_2.py │ │ ├── coroutines.py │ │ ├── decorator_SoC_1.py │ │ ├── decorator_SoC_2.py │ │ ├── decorator_class_1.py │ │ ├── decorator_class_2.py │ │ ├── decorator_function_1.py │ │ ├── decorator_function_2.py │ │ ├── decorator_parametrized_1.py │ │ ├── decorator_parametrized_2.py │ │ ├── decorator_side_effects_1.py │ │ ├── decorator_side_effects_2.py │ │ ├── decorator_universal_1.py │ │ ├── decorator_universal_2.py │ │ ├── decorator_wraps_1.py │ │ ├── decorator_wraps_2.py │ │ ├── default_arguments.py │ │ ├── log.py │ │ └── pep0614.py │ └── tests │ │ ├── test_class_decorator.py │ │ ├── test_composition.py │ │ ├── test_coroutines.py │ │ ├── test_decorator_SoC.py │ │ ├── test_decorator_function.py │ │ ├── test_decorator_parametrized.py │ │ ├── test_decorator_universal.py │ │ ├── test_default_arguments.py │ │ └── test_wraps.py │ ├── ch06 │ ├── Makefile │ ├── README.rst │ ├── log.py │ ├── src │ │ ├── descriptors_1.py │ │ ├── descriptors_cpython_1.py │ │ ├── descriptors_cpython_2.py │ │ ├── descriptors_cpython_3.py │ │ ├── descriptors_implementation_1.py │ │ ├── descriptors_implementation_2.py │ │ ├── descriptors_methods_1.py │ │ ├── descriptors_methods_2.py │ │ ├── descriptors_methods_3.py │ │ ├── descriptors_methods_4.py │ │ ├── descriptors_pythonic_1.py │ │ ├── descriptors_pythonic_2.py │ │ ├── descriptors_types_1.py │ │ ├── descriptors_types_2.py │ │ └── descriptors_uses_1.py │ └── tests │ │ ├── test_descriptors_cpython.py │ │ ├── test_descriptors_methods.py │ │ ├── test_descriptors_pythonic.py │ │ └── test_descriptors_uses_1.py │ ├── ch07 │ ├── .gitignore │ ├── Makefile │ ├── README.rst │ ├── src │ │ ├── _generate_data.py │ │ ├── async_context_manager.py │ │ ├── async_iteration.py │ │ ├── generators_1.py │ │ ├── generators_2.py │ │ ├── generators_coroutines_1.py │ │ ├── generators_coroutines_2.py │ │ ├── generators_iteration_1.py │ │ ├── generators_iteration_2.py │ │ ├── generators_pythonic_1.py │ │ ├── generators_pythonic_2.py │ │ ├── generators_pythonic_3.py │ │ ├── generators_pythonic_4.py │ │ ├── generators_yieldfrom_1.py │ │ ├── generators_yieldfrom_2.py │ │ ├── generators_yieldfrom_3.py │ │ └── log.py │ └── tests │ │ ├── conftest.py │ │ ├── test_async_context_manager.py │ │ ├── test_async_iteration.py │ │ ├── test_generators.py │ │ ├── test_generators_coroutines.py │ │ ├── test_generators_iteration.py │ │ └── test_generators_pythonic.py │ ├── ch08 │ ├── .gitignore │ ├── Makefile │ ├── README.rst │ ├── mutation-testing.sh │ ├── run-coverage.sh │ ├── src │ │ ├── constants.py │ │ ├── coverage_1.py │ │ ├── coverage_caveats.py │ │ ├── doctest_module.py │ │ ├── doctest_module_test.py │ │ ├── mock_1.py │ │ ├── mock_2.py │ │ ├── mrstatus.py │ │ ├── mutation_testing_1.py │ │ ├── mutation_testing_2.py │ │ ├── refactoring_1.py │ │ ├── refactoring_2.py │ │ ├── ut_design_1.py │ │ ├── ut_design_2.py │ │ ├── ut_frameworks_1.py │ │ ├── ut_frameworks_2.py │ │ ├── ut_frameworks_3.py │ │ ├── ut_frameworks_4.py │ │ └── ut_frameworks_5.py │ └── tests │ │ ├── test_coverage_1.py │ │ ├── test_coverage_caveats.py │ │ ├── test_mock_1.py │ │ ├── test_mock_2.py │ │ ├── test_mutation_testing_1.py │ │ ├── test_mutation_testing_2.py │ │ ├── test_refactoring_1.py │ │ ├── test_refactoring_2.py │ │ ├── test_ut_design_2.py │ │ ├── test_ut_frameworks.py │ │ └── test_ut_frameworks_4.py │ ├── ch09 │ ├── Makefile │ ├── README.rst │ ├── src │ │ ├── _adapter_base.py │ │ ├── adapter_1.py │ │ ├── adapter_2.py │ │ ├── chain_of_responsibility_1.py │ │ ├── composite_1.py │ │ ├── decorator_1.py │ │ ├── decorator_2.py │ │ ├── log.py │ │ ├── monostate_1.py │ │ ├── monostate_2.py │ │ ├── monostate_3.py │ │ ├── monostate_4.py │ │ ├── state_1.py │ │ └── state_2.py │ └── tests │ │ ├── test_chain_of_responsibility_1.py │ │ ├── test_composite_1.py │ │ ├── test_decorator_1.py │ │ ├── test_decorator_2.py │ │ ├── test_monostate_1.py │ │ ├── test_monostate_2.py │ │ ├── test_monostate_3.py │ │ ├── test_monostate_4.py │ │ ├── test_state_1.py │ │ └── test_state_2.py │ ├── ch10 │ ├── README.rst │ └── service │ │ ├── .gitignore │ │ ├── Dockerfile │ │ ├── Makefile │ │ ├── README.rst │ │ ├── docker-compose.yml │ │ ├── libs │ │ ├── README.rst │ │ ├── storage │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ ├── README.rst │ │ │ ├── db │ │ │ │ ├── README.rst │ │ │ │ └── sql │ │ │ │ │ ├── 1_schema.sql │ │ │ │ │ └── 2_data.sql │ │ │ ├── requirements.txt │ │ │ ├── setup.py │ │ │ └── src │ │ │ │ └── storage │ │ │ │ ├── __init__.py │ │ │ │ ├── client.py │ │ │ │ ├── config.py │ │ │ │ ├── converters.py │ │ │ │ ├── status.py │ │ │ │ └── storage.py │ │ └── web │ │ │ ├── Makefile │ │ │ ├── README.rst │ │ │ ├── requirements.txt │ │ │ ├── setup.py │ │ │ └── src │ │ │ └── web │ │ │ ├── __init__.py │ │ │ └── view.py │ │ ├── setup.py │ │ └── statusweb │ │ ├── README.rst │ │ ├── __init__.py │ │ └── service.py │ ├── errata.md │ └── requirements.txt └── talk └── src ├── Makefile ├── _0_meaning_bad.py ├── _0_meaning_good.py ├── _1_bad_duplicated.py ├── _1_decorators_bad.py ├── _1_decorators_good.py ├── _2_context_managers.py ├── _3_properties.py ├── _4_magics_bad.py ├── _4_magics_good.py ├── _5_idioms.py ├── base.py ├── requirements.txt └── test.py /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/README.md -------------------------------------------------------------------------------- /book/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/.gitignore -------------------------------------------------------------------------------- /book/src/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/.gitignore -------------------------------------------------------------------------------- /book/src/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/Makefile -------------------------------------------------------------------------------- /book/src/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/README.rst -------------------------------------------------------------------------------- /book/src/ch01/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch01/Makefile -------------------------------------------------------------------------------- /book/src/ch01/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch01/README.rst -------------------------------------------------------------------------------- /book/src/ch01/before_black.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch01/before_black.py -------------------------------------------------------------------------------- /book/src/ch01/src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /book/src/ch01/src/annotations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch01/src/annotations.py -------------------------------------------------------------------------------- /book/src/ch01/src/other.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch01/src/other.py -------------------------------------------------------------------------------- /book/src/ch01/src/test_annotations.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch01/src/test_annotations.py -------------------------------------------------------------------------------- /book/src/ch01/src/type_hinting_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch01/src/type_hinting_example.py -------------------------------------------------------------------------------- /book/src/ch01/src/type_hinting_example_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch01/src/type_hinting_example_2.py -------------------------------------------------------------------------------- /book/src/ch01/tests: -------------------------------------------------------------------------------- 1 | src -------------------------------------------------------------------------------- /book/src/ch02/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/Makefile -------------------------------------------------------------------------------- /book/src/ch02/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/README.rst -------------------------------------------------------------------------------- /book/src/ch02/src/assignment_expressions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/assignment_expressions.py -------------------------------------------------------------------------------- /book/src/ch02/src/callables.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/callables.py -------------------------------------------------------------------------------- /book/src/ch02/src/caveats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/caveats.py -------------------------------------------------------------------------------- /book/src/ch02/src/container.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/container.py -------------------------------------------------------------------------------- /book/src/ch02/src/contextmanagers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/contextmanagers.py -------------------------------------------------------------------------------- /book/src/ch02/src/data_classes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/data_classes.py -------------------------------------------------------------------------------- /book/src/ch02/src/dynamic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/dynamic.py -------------------------------------------------------------------------------- /book/src/ch02/src/indices.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/indices.py -------------------------------------------------------------------------------- /book/src/ch02/src/iterables.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/iterables.py -------------------------------------------------------------------------------- /book/src/ch02/src/properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/properties.py -------------------------------------------------------------------------------- /book/src/ch02/src/sequences.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/src/sequences.py -------------------------------------------------------------------------------- /book/src/ch02/tests/test_assignment_expressions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/tests/test_assignment_expressions.py -------------------------------------------------------------------------------- /book/src/ch02/tests/test_caveats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/tests/test_caveats.py -------------------------------------------------------------------------------- /book/src/ch02/tests/test_contextmanagers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/tests/test_contextmanagers.py -------------------------------------------------------------------------------- /book/src/ch02/tests/test_data_classes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/tests/test_data_classes.py -------------------------------------------------------------------------------- /book/src/ch02/tests/test_dynamic_attributes.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/tests/test_dynamic_attributes.py -------------------------------------------------------------------------------- /book/src/ch02/tests/test_iterables.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/tests/test_iterables.py -------------------------------------------------------------------------------- /book/src/ch02/tests/test_properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/tests/test_properties.py -------------------------------------------------------------------------------- /book/src/ch02/tests/test_sequences.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch02/tests/test_sequences.py -------------------------------------------------------------------------------- /book/src/ch03/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/Makefile -------------------------------------------------------------------------------- /book/src/ch03/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/README.rst -------------------------------------------------------------------------------- /book/src/ch03/src/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/base.py -------------------------------------------------------------------------------- /book/src/ch03/src/exceptions_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/exceptions_1.py -------------------------------------------------------------------------------- /book/src/ch03/src/exceptions_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/exceptions_2.py -------------------------------------------------------------------------------- /book/src/ch03/src/exceptions_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/exceptions_3.py -------------------------------------------------------------------------------- /book/src/ch03/src/inheritance_antipattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/inheritance_antipattern.py -------------------------------------------------------------------------------- /book/src/ch03/src/inheritance_patterns.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/inheritance_patterns.py -------------------------------------------------------------------------------- /book/src/ch03/src/kis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/kis.py -------------------------------------------------------------------------------- /book/src/ch03/src/multiple_inheritance.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/multiple_inheritance.py -------------------------------------------------------------------------------- /book/src/ch03/src/multiple_inheritance_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/multiple_inheritance_2.py -------------------------------------------------------------------------------- /book/src/ch03/src/orthogonal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/orthogonal.py -------------------------------------------------------------------------------- /book/src/ch03/src/packing_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/src/packing_1.py -------------------------------------------------------------------------------- /book/src/ch03/tests/test_exceptions_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/tests/test_exceptions_1.py -------------------------------------------------------------------------------- /book/src/ch03/tests/test_exceptions_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/tests/test_exceptions_2.py -------------------------------------------------------------------------------- /book/src/ch03/tests/test_exceptions_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/tests/test_exceptions_3.py -------------------------------------------------------------------------------- /book/src/ch03/tests/test_kis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/tests/test_kis.py -------------------------------------------------------------------------------- /book/src/ch03/tests/test_packing1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch03/tests/test_packing1.py -------------------------------------------------------------------------------- /book/src/ch04/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/Makefile -------------------------------------------------------------------------------- /book/src/ch04/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/README.rst -------------------------------------------------------------------------------- /book/src/ch04/src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /book/src/ch04/src/dip_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/src/dip_1.py -------------------------------------------------------------------------------- /book/src/ch04/src/dip_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/src/dip_2.py -------------------------------------------------------------------------------- /book/src/ch04/src/isp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/src/isp.py -------------------------------------------------------------------------------- /book/src/ch04/src/lsp_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/src/lsp_1.py -------------------------------------------------------------------------------- /book/src/ch04/src/lsp_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/src/lsp_2.py -------------------------------------------------------------------------------- /book/src/ch04/src/openclosed_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/src/openclosed_1.py -------------------------------------------------------------------------------- /book/src/ch04/src/openclosed_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/src/openclosed_2.py -------------------------------------------------------------------------------- /book/src/ch04/src/openclosed_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/src/openclosed_3.py -------------------------------------------------------------------------------- /book/src/ch04/srp_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/srp_1.py -------------------------------------------------------------------------------- /book/src/ch04/tests/test_dip.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/tests/test_dip.py -------------------------------------------------------------------------------- /book/src/ch04/tests/test_isp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/tests/test_isp.py -------------------------------------------------------------------------------- /book/src/ch04/tests/test_lsp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/tests/test_lsp.py -------------------------------------------------------------------------------- /book/src/ch04/tests/test_ocp.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch04/tests/test_ocp.py -------------------------------------------------------------------------------- /book/src/ch05/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/Makefile -------------------------------------------------------------------------------- /book/src/ch05/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/README.rst -------------------------------------------------------------------------------- /book/src/ch05/src/composition_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/composition_1.py -------------------------------------------------------------------------------- /book/src/ch05/src/composition_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/composition_2.py -------------------------------------------------------------------------------- /book/src/ch05/src/coroutines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/coroutines.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_SoC_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_SoC_1.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_SoC_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_SoC_2.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_class_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_class_1.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_class_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_class_2.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_function_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_function_1.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_function_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_function_2.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_parametrized_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_parametrized_1.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_parametrized_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_parametrized_2.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_side_effects_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_side_effects_1.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_side_effects_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_side_effects_2.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_universal_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_universal_1.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_universal_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_universal_2.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_wraps_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_wraps_1.py -------------------------------------------------------------------------------- /book/src/ch05/src/decorator_wraps_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/decorator_wraps_2.py -------------------------------------------------------------------------------- /book/src/ch05/src/default_arguments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/default_arguments.py -------------------------------------------------------------------------------- /book/src/ch05/src/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/log.py -------------------------------------------------------------------------------- /book/src/ch05/src/pep0614.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/src/pep0614.py -------------------------------------------------------------------------------- /book/src/ch05/tests/test_class_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/tests/test_class_decorator.py -------------------------------------------------------------------------------- /book/src/ch05/tests/test_composition.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/tests/test_composition.py -------------------------------------------------------------------------------- /book/src/ch05/tests/test_coroutines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/tests/test_coroutines.py -------------------------------------------------------------------------------- /book/src/ch05/tests/test_decorator_SoC.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/tests/test_decorator_SoC.py -------------------------------------------------------------------------------- /book/src/ch05/tests/test_decorator_function.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/tests/test_decorator_function.py -------------------------------------------------------------------------------- /book/src/ch05/tests/test_decorator_parametrized.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/tests/test_decorator_parametrized.py -------------------------------------------------------------------------------- /book/src/ch05/tests/test_decorator_universal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/tests/test_decorator_universal.py -------------------------------------------------------------------------------- /book/src/ch05/tests/test_default_arguments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/tests/test_default_arguments.py -------------------------------------------------------------------------------- /book/src/ch05/tests/test_wraps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch05/tests/test_wraps.py -------------------------------------------------------------------------------- /book/src/ch06/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/Makefile -------------------------------------------------------------------------------- /book/src/ch06/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/README.rst -------------------------------------------------------------------------------- /book/src/ch06/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/log.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_1.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_cpython_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_cpython_1.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_cpython_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_cpython_2.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_cpython_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_cpython_3.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_implementation_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_implementation_1.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_implementation_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_implementation_2.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_methods_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_methods_1.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_methods_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_methods_2.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_methods_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_methods_3.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_methods_4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_methods_4.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_pythonic_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_pythonic_1.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_pythonic_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_pythonic_2.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_types_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_types_1.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_types_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_types_2.py -------------------------------------------------------------------------------- /book/src/ch06/src/descriptors_uses_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/src/descriptors_uses_1.py -------------------------------------------------------------------------------- /book/src/ch06/tests/test_descriptors_cpython.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/tests/test_descriptors_cpython.py -------------------------------------------------------------------------------- /book/src/ch06/tests/test_descriptors_methods.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/tests/test_descriptors_methods.py -------------------------------------------------------------------------------- /book/src/ch06/tests/test_descriptors_pythonic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/tests/test_descriptors_pythonic.py -------------------------------------------------------------------------------- /book/src/ch06/tests/test_descriptors_uses_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch06/tests/test_descriptors_uses_1.py -------------------------------------------------------------------------------- /book/src/ch07/.gitignore: -------------------------------------------------------------------------------- 1 | *.trace.txt 2 | -------------------------------------------------------------------------------- /book/src/ch07/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/Makefile -------------------------------------------------------------------------------- /book/src/ch07/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/README.rst -------------------------------------------------------------------------------- /book/src/ch07/src/_generate_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/_generate_data.py -------------------------------------------------------------------------------- /book/src/ch07/src/async_context_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/async_context_manager.py -------------------------------------------------------------------------------- /book/src/ch07/src/async_iteration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/async_iteration.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_1.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_2.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_coroutines_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_coroutines_1.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_coroutines_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_coroutines_2.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_iteration_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_iteration_1.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_iteration_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_iteration_2.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_pythonic_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_pythonic_1.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_pythonic_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_pythonic_2.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_pythonic_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_pythonic_3.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_pythonic_4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_pythonic_4.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_yieldfrom_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_yieldfrom_1.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_yieldfrom_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_yieldfrom_2.py -------------------------------------------------------------------------------- /book/src/ch07/src/generators_yieldfrom_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/generators_yieldfrom_3.py -------------------------------------------------------------------------------- /book/src/ch07/src/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/src/log.py -------------------------------------------------------------------------------- /book/src/ch07/tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/tests/conftest.py -------------------------------------------------------------------------------- /book/src/ch07/tests/test_async_context_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/tests/test_async_context_manager.py -------------------------------------------------------------------------------- /book/src/ch07/tests/test_async_iteration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/tests/test_async_iteration.py -------------------------------------------------------------------------------- /book/src/ch07/tests/test_generators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/tests/test_generators.py -------------------------------------------------------------------------------- /book/src/ch07/tests/test_generators_coroutines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/tests/test_generators_coroutines.py -------------------------------------------------------------------------------- /book/src/ch07/tests/test_generators_iteration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/tests/test_generators_iteration.py -------------------------------------------------------------------------------- /book/src/ch07/tests/test_generators_pythonic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch07/tests/test_generators_pythonic.py -------------------------------------------------------------------------------- /book/src/ch08/.gitignore: -------------------------------------------------------------------------------- 1 | .coverage 2 | .hypothesis/ 3 | .pytest_cache/ 4 | -------------------------------------------------------------------------------- /book/src/ch08/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/Makefile -------------------------------------------------------------------------------- /book/src/ch08/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/README.rst -------------------------------------------------------------------------------- /book/src/ch08/mutation-testing.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/mutation-testing.sh -------------------------------------------------------------------------------- /book/src/ch08/run-coverage.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/run-coverage.sh -------------------------------------------------------------------------------- /book/src/ch08/src/constants.py: -------------------------------------------------------------------------------- 1 | """Definitions""" 2 | 3 | STATUS_ENDPOINT = "http://localhost:8080/mrstatus" 4 | -------------------------------------------------------------------------------- /book/src/ch08/src/coverage_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/coverage_1.py -------------------------------------------------------------------------------- /book/src/ch08/src/coverage_caveats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/coverage_caveats.py -------------------------------------------------------------------------------- /book/src/ch08/src/doctest_module.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/doctest_module.py -------------------------------------------------------------------------------- /book/src/ch08/src/doctest_module_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/doctest_module_test.py -------------------------------------------------------------------------------- /book/src/ch08/src/mock_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/mock_1.py -------------------------------------------------------------------------------- /book/src/ch08/src/mock_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/mock_2.py -------------------------------------------------------------------------------- /book/src/ch08/src/mrstatus.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/mrstatus.py -------------------------------------------------------------------------------- /book/src/ch08/src/mutation_testing_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/mutation_testing_1.py -------------------------------------------------------------------------------- /book/src/ch08/src/mutation_testing_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/mutation_testing_2.py -------------------------------------------------------------------------------- /book/src/ch08/src/refactoring_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/refactoring_1.py -------------------------------------------------------------------------------- /book/src/ch08/src/refactoring_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/refactoring_2.py -------------------------------------------------------------------------------- /book/src/ch08/src/ut_design_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/ut_design_1.py -------------------------------------------------------------------------------- /book/src/ch08/src/ut_design_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/ut_design_2.py -------------------------------------------------------------------------------- /book/src/ch08/src/ut_frameworks_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/ut_frameworks_1.py -------------------------------------------------------------------------------- /book/src/ch08/src/ut_frameworks_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/ut_frameworks_2.py -------------------------------------------------------------------------------- /book/src/ch08/src/ut_frameworks_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/ut_frameworks_3.py -------------------------------------------------------------------------------- /book/src/ch08/src/ut_frameworks_4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/ut_frameworks_4.py -------------------------------------------------------------------------------- /book/src/ch08/src/ut_frameworks_5.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/src/ut_frameworks_5.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_coverage_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_coverage_1.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_coverage_caveats.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_coverage_caveats.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_mock_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_mock_1.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_mock_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_mock_2.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_mutation_testing_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_mutation_testing_1.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_mutation_testing_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_mutation_testing_2.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_refactoring_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_refactoring_1.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_refactoring_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_refactoring_2.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_ut_design_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_ut_design_2.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_ut_frameworks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_ut_frameworks.py -------------------------------------------------------------------------------- /book/src/ch08/tests/test_ut_frameworks_4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch08/tests/test_ut_frameworks_4.py -------------------------------------------------------------------------------- /book/src/ch09/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/Makefile -------------------------------------------------------------------------------- /book/src/ch09/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/README.rst -------------------------------------------------------------------------------- /book/src/ch09/src/_adapter_base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/_adapter_base.py -------------------------------------------------------------------------------- /book/src/ch09/src/adapter_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/adapter_1.py -------------------------------------------------------------------------------- /book/src/ch09/src/adapter_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/adapter_2.py -------------------------------------------------------------------------------- /book/src/ch09/src/chain_of_responsibility_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/chain_of_responsibility_1.py -------------------------------------------------------------------------------- /book/src/ch09/src/composite_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/composite_1.py -------------------------------------------------------------------------------- /book/src/ch09/src/decorator_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/decorator_1.py -------------------------------------------------------------------------------- /book/src/ch09/src/decorator_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/decorator_2.py -------------------------------------------------------------------------------- /book/src/ch09/src/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/log.py -------------------------------------------------------------------------------- /book/src/ch09/src/monostate_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/monostate_1.py -------------------------------------------------------------------------------- /book/src/ch09/src/monostate_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/monostate_2.py -------------------------------------------------------------------------------- /book/src/ch09/src/monostate_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/monostate_3.py -------------------------------------------------------------------------------- /book/src/ch09/src/monostate_4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/monostate_4.py -------------------------------------------------------------------------------- /book/src/ch09/src/state_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/state_1.py -------------------------------------------------------------------------------- /book/src/ch09/src/state_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/src/state_2.py -------------------------------------------------------------------------------- /book/src/ch09/tests/test_chain_of_responsibility_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/tests/test_chain_of_responsibility_1.py -------------------------------------------------------------------------------- /book/src/ch09/tests/test_composite_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/tests/test_composite_1.py -------------------------------------------------------------------------------- /book/src/ch09/tests/test_decorator_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/tests/test_decorator_1.py -------------------------------------------------------------------------------- /book/src/ch09/tests/test_decorator_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/tests/test_decorator_2.py -------------------------------------------------------------------------------- /book/src/ch09/tests/test_monostate_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/tests/test_monostate_1.py -------------------------------------------------------------------------------- /book/src/ch09/tests/test_monostate_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/tests/test_monostate_2.py -------------------------------------------------------------------------------- /book/src/ch09/tests/test_monostate_3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/tests/test_monostate_3.py -------------------------------------------------------------------------------- /book/src/ch09/tests/test_monostate_4.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/tests/test_monostate_4.py -------------------------------------------------------------------------------- /book/src/ch09/tests/test_state_1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/tests/test_state_1.py -------------------------------------------------------------------------------- /book/src/ch09/tests/test_state_2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch09/tests/test_state_2.py -------------------------------------------------------------------------------- /book/src/ch10/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/README.rst -------------------------------------------------------------------------------- /book/src/ch10/service/.gitignore: -------------------------------------------------------------------------------- 1 | *.egg-info 2 | -------------------------------------------------------------------------------- /book/src/ch10/service/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/Dockerfile -------------------------------------------------------------------------------- /book/src/ch10/service/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/Makefile -------------------------------------------------------------------------------- /book/src/ch10/service/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/README.rst -------------------------------------------------------------------------------- /book/src/ch10/service/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/docker-compose.yml -------------------------------------------------------------------------------- /book/src/ch10/service/libs/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/README.rst -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/.gitignore: -------------------------------------------------------------------------------- 1 | *.egg-info 2 | -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/Makefile -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/README.rst -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/db/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/db/README.rst -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/db/sql/1_schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/db/sql/1_schema.sql -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/db/sql/2_data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/db/sql/2_data.sql -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/requirements.txt -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/setup.py -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/src/storage/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/src/storage/__init__.py -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/src/storage/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/src/storage/client.py -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/src/storage/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/src/storage/config.py -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/src/storage/converters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/src/storage/converters.py -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/src/storage/status.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/src/storage/status.py -------------------------------------------------------------------------------- /book/src/ch10/service/libs/storage/src/storage/storage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/storage/src/storage/storage.py -------------------------------------------------------------------------------- /book/src/ch10/service/libs/web/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/web/Makefile -------------------------------------------------------------------------------- /book/src/ch10/service/libs/web/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/web/README.rst -------------------------------------------------------------------------------- /book/src/ch10/service/libs/web/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/web/requirements.txt -------------------------------------------------------------------------------- /book/src/ch10/service/libs/web/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/web/setup.py -------------------------------------------------------------------------------- /book/src/ch10/service/libs/web/src/web/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/web/src/web/__init__.py -------------------------------------------------------------------------------- /book/src/ch10/service/libs/web/src/web/view.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/libs/web/src/web/view.py -------------------------------------------------------------------------------- /book/src/ch10/service/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/setup.py -------------------------------------------------------------------------------- /book/src/ch10/service/statusweb/README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/statusweb/README.rst -------------------------------------------------------------------------------- /book/src/ch10/service/statusweb/__init__.py: -------------------------------------------------------------------------------- 1 | """Entry point to the ``statusweb`` package.""" 2 | -------------------------------------------------------------------------------- /book/src/ch10/service/statusweb/service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/ch10/service/statusweb/service.py -------------------------------------------------------------------------------- /book/src/errata.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/errata.md -------------------------------------------------------------------------------- /book/src/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/book/src/requirements.txt -------------------------------------------------------------------------------- /talk/src/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/Makefile -------------------------------------------------------------------------------- /talk/src/_0_meaning_bad.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/_0_meaning_bad.py -------------------------------------------------------------------------------- /talk/src/_0_meaning_good.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/_0_meaning_good.py -------------------------------------------------------------------------------- /talk/src/_1_bad_duplicated.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/_1_bad_duplicated.py -------------------------------------------------------------------------------- /talk/src/_1_decorators_bad.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/_1_decorators_bad.py -------------------------------------------------------------------------------- /talk/src/_1_decorators_good.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/_1_decorators_good.py -------------------------------------------------------------------------------- /talk/src/_2_context_managers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/_2_context_managers.py -------------------------------------------------------------------------------- /talk/src/_3_properties.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/_3_properties.py -------------------------------------------------------------------------------- /talk/src/_4_magics_bad.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/_4_magics_bad.py -------------------------------------------------------------------------------- /talk/src/_4_magics_good.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/_4_magics_good.py -------------------------------------------------------------------------------- /talk/src/_5_idioms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/_5_idioms.py -------------------------------------------------------------------------------- /talk/src/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/base.py -------------------------------------------------------------------------------- /talk/src/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/requirements.txt -------------------------------------------------------------------------------- /talk/src/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Clean-Code-in-Python-Second-Edition/HEAD/talk/src/test.py --------------------------------------------------------------------------------