Topics/4 posts
#python
2025
Fix the ctypes _type_ error on Azure Pipelines
pip fails on a self-hosted Windows Azure Pipelines agent with "class must define a '_type_' attribute". Prepending Python's DLLs folder to…
Devops
2024
Typed Python CLI arguments with argparse and StrEnum
Derive argparse choices from Python types: use StrEnum and the type parameter so a build script's CLI options update when the enum changes.
Development
2023
Run a Python function by name from the command line
Call any function in a Python script from the command line with positional or keyword arguments, using globals() and inspect.signature.
Development
2020
Reactive testing with Gherkin, ReactiveX and asyncio
Replace time.sleep in async BDD integration tests: assert events with RxPy observables, pytest-bdd Gherkin steps and asyncio, on an MQTT example.
Development·Python