Python Coding Standard

Ramesh Pramuditha Rathnayake
2 min readJul 18, 2020

--

Python language is one of the most popular programming languages these days. Due to its vast API and the community, it is really popular among very advanced programmers and also among the beginners. Therefore you can find support from a small web API to large scale machine learning API for python.

The learning curve of python is very low. So anyone can write a code in python. There are tons of online python tutorials also. But most people miss paying attention to the quality of their code. I’m not talking about implementing S.O.L.I.D or clean code architectures. But simple things like variable naming standards.

Python have already given a list of guidelines for python with their official PEP-8 Style Guide. Most popular IDEs like Visual Studio Code (VS Code), PyCharm already support PEP-8 guidelines. But we have come up with some other guidelines on top of PEP-8 to make the code more clean and readable. You can refer to the following original article I wrote about python coding standards, that is used by the ML team here at Fcode Labs.

I aimed that article for python 3.x, but it can be useful for python 2 users also. No matter if you are an expert or a beginner to Python, I recommend having a look.

Information about some projects we did deep learning with Python can be found on our research page with source code. All those were done by following the standards mentioned above.

Please feel free to give your opinion as a comment.

--

--