Skip to main content

3 docs tagged with "fundamentals-python"

View all tags

How to create a basic python module

Nowadays on times of python 3.14.X there are a tone of ways to create a python module. This is kind of the "old" way. You will be find python purist that say why this is no longer recommended, but I decide to document this version here because it is the current way of installing modules that works out-of-the-box with Yocto and with legacy tools. Besides the blog post Is setup.py deprecated? shows why this is still relevant and how it could be used to follow the latest trends.

Python where we can, C++ where we must

As a Embedded Software developer, if you are outside of the industry you will imagine that we always work with C and C++. However, for testing setups and automatization processes we always used Python. Why? Because it is easy to use, easy to implement and fast for prototyping.

Styling Guidelines for Python projects

For Python projects I tend to be on the side of PEP8. I follow their coding style and use yapf, which was developed by Google to control the styling guide in python projects. My file is fairly simple: