Azure pipelines - ctypes importerror
Fixing ctypes ImportError in Azure Pipelines: Missing _type_ Attribute When running pip install in an Azure Pipelines self-hosted agent, you might encounter the following error: File "~\myselfhostedagent\_work\_tool\Python\3.12.3\x64\Lib\site-packages\pip\_vendor\platformdirs\windows.py",...
Published Fri, 31 Jan 2025
How to typed command line arguments in python
How to typed command line arguments in python Creating tools with python is a common practice due to its ease of use and productivity. Now python already has good built-in support for parsing command-line arguments, but we can take it one step further. Let’s take the following example where we...
Published Mon, 22 Apr 2024
How to call a function of a file in python
How to call a function of a file in python Take the following use case, where I have a script that I use in my Continues Integration (CI) pipeline and I would like to call a function in that file from the command-line with parameters. The inspect module provides several useful functions to help get...
Published Fri, 17 Nov 2023
Reactive testing with Gherkin, ReactiveX and asyncio
Have you ever written integration test with asynchronous behavior? I have, and it has always been a struggle… CI/CD pipelines which regularly fail because of some timeout. Then, “a wild project manager appears!”, and starts asking questions why investigating takes so long…...
Published Mon, 14 Sep 2020