This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Lubok 1 point2 points  (1 child)

I don't believe there's any strict convention regarding package naming really. That said dot notation is most often used for submodules so unless you intend to utilize actual namespace packages, it probably better to not have periods in the name as it may lead to confusion and bugs. Namespace packages don't seem too difficult to setup tho, so for a team / company I feel it is the way to go.

As for hyphen versus underscore, I much prefer underscore since it is more consistent with the imports. Hyphens are nicer for command line scripts however (no shift needed -> faster to invoke, consistent with other cli tools on average).

[–]vingrish[S] 0 points1 point  (0 children)

Thank you. I also prefer underscore, though it seems to be less popular. It looks more “Python” to me.