plugins

1 view
Skip to first unread message

Duncan M. McGreggor

unread,
May 2, 2006, 9:41:16 AM5/2/06
to Python Monitoring Application
One more thing before I sleep:

Can I get a vote on plugin naming convention? If we go the plugin
route, developers will need to create python packages in
PREFIX/plugins. Since these packages need to be named after multi-word
service checks like "HTTP status" or "FTP download", we will be
violating PEP 8 (the more-than-one-word-for-packages bit). So, what I'd
like to hear people's opinions on are *how* we should violate it :-)

1) use camel case: PREFIX/plugins/HttpStatus
2) use lower case: PREFIX/plugins/httpstatus

I think I'm leaning towards #1 for a couple reasons:
1) it's more legible
2) these are *plugins*, not official python packages, and
3) the naming convention for python eggs is CamelCase, and since there
could be eggs in the plugin directory, there would at least be symmetry
in the casing

Thoughts?

d

Raúl Alexis Betancor Santana

unread,
May 2, 2006, 10:18:04 AM5/2/06
to py...@googlegroups.com
El Martes, 2 de Mayo de 2006 14:41, Duncan M. McGreggor escribió:

> 1) use camel case: PREFIX/plugins/HttpStatus
> 2) use lower case: PREFIX/plugins/httpstatus

My vote if for option 1

--
Saludos.

Raúl Alexis Betancor Santana
Director Gerente
Dimensión Virtual S.L.

Allan Bailey

unread,
May 2, 2006, 11:38:06 AM5/2/06
to py...@googlegroups.com
"Duncan M. McGreggor" <oubi...@gmail.com> wrote:
>
>One more thing before I sleep:
>
>Can I get a vote on plugin naming convention? If we go the plugin
>route, developers will need to create python packages in
>PREFIX/plugins. Since these packages need to be named after multi-word
>service checks like "HTTP status" or "FTP download", we will be
>violating PEP 8 (the more-than-one-word-for-packages bit). So, what I'd
>like to hear people's opinions on are *how* we should violate it :-)
>
>1) use camel case: PREFIX/plugins/HttpStatus
>2) use lower case: PREFIX/plugins/httpstatus


+1 for 1)


>I think I'm leaning towards #1 for a couple reasons:
>1) it's more legible
>2) these are *plugins*, not official python packages, and
>3) the naming convention for python eggs is CamelCase, and since there
>could be eggs in the plugin directory, there would at least be symmetry
>in the casing
>
>Thoughts?
>
>d
>
>
>>

--
.allan.

Reply all
Reply to author
Forward
0 new messages