Python naming conventions for modules

Ram Rachum picture Ram Rachum · Apr 3, 2009 · Viewed 96.8k times · Source

I have a module whose purpose is to define a class called "nib". (and a few related classes too.) How should I call the module itself? "nib"? "nibmodule"? Anything else?

Answer

Stephan202 picture Stephan202 · Apr 3, 2009

Just nib. Name the class Nib, with a capital N. For more on naming conventions and other style advice, see PEP 8, the Python style guide.