Skip to content

Python questions

What is your dependency strategy? Do you pin dependencies?

If a dependency follows some versioning strategy, I allow the project to install any version of the dependency between the version initially used and any other version above the latter that does not change the interface.

pandas > 2.2.1, == 2.2.*

When would you use namespace packages?

It is a convenience of the language. I would use if I want to group one or more packages in a single namespace.

What are the python naming conventions?

class CamelCase:
    def __init__(self):
        pass

    def my_method(self):
        my_variable = 2

    def _my_private_method(self):
        A_CONSTANT = 3.14
        pass

    def __my_protected_method(self):
        pass