Closed acsor closed 5 years ago
Class Names
Class names should normally use the CapWords convention.
The naming convention for functions may be used instead in cases where the interface is documented and used primarily as a callable.
Note that there is a separate convention for builtin names: most builtin names are single words (or two words run together), with the CapWords convention used only for exception names and builtin constants.
There is just an occurrence or a few more of functions with the snake_case style, but apparently PR #14 closes this.
PEP 8 recommends a list of nomenclature conventions for variable and function names:
but for what I've seen, most of the project names have adopted the lower camelCase in the context of variables and functions/methods:
Those above are the relatively few occurrences where the snake case style has been preferred.
I propose, as PEP 8 further specifies in
to translate and maintain the name of variables (including function parameters) and functions to the lower camelCase style.
Classes are in line with PEP 8 specifications, but possibly not the module and packages names:
so in case of
PyPDF4
, we should havepypdf4
. But I don't know how much worth is the expense in effort to rename the module name, although the latter looks way more standard and pleasing to the eyes.