Coding Standard

This section describes the coding standard for MAP Client.

Overview

The coding standard for MAP Client is a list of directives on how code should look when written so that the entire codebase has a similar look and feel irrespective of who has written it. MAP Client code is written for both Python 2 and Python 3 so code must meet the standards for both Pythoon interpreters.

Style

  • PEP8 Style Guide for Python code
  • Class member variables should start with an underscore ‘_’
  • Private class methods should start with an underscore ‘_’
  • Indentation is set to 4 spaces (no tabs)