- Create a Virtual Environment 'python3 - m venv ~/.venv' or 'virtualenv ~/.venv'
- src the virtual environment inside bash so that each time new terminal is opened the virtual environment is activated.
- Create empty files : 'Makefile', 'requirements.txt', 'main.py', 'Dockerfile', 'mylib/init.py'.
- Makefile can separate parts of your software and help your project to structure and create in a structured way. You can run specific part of your project.
- pylint - for better coding practice, black - for code formatting
- In requirements.txt you should only specify the modules you need and their version numbers. Other internal modules will be downloaded by python when satisfying the criteria mentioned.
- Using lint is better because, link rates your code. So, that you can understand if you are following good code conventions and it will protect you from future bugs
- Build cli using python fire library './cli-fire,py --help' to test logic
- CLI is useful for testing out written functions without necessarily writing code for each of them
abdullahmoosa / python-deveops-practice Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License