Tag: Python
Python 3.8 end of life coming soon
Python 3.8 will/has reached it’s end of life [time_since]2024–10[/time_since]. Soon, you will be forced to upgrade as tools and libraries gradually start removing it’s support. If you have the option to upgrade to the latest Python version, take it. But especially library maintainers don’t have that luxury and still have to keep 3.9 support around.…
Streamline adding hashtags to Instagram posts with ChatGPT
As a hobby photographer, I like to showcase my photography on Instagram. But I hate coming up with hashtags for my posts. So as a software engineer and LLM enthusiast, I thought – Can I automate and streamline the process of coming up with hashtags for my Instagram posts with ChatGPT?
Package namespacing for Python library collection
A practical guide on how to manage a collection of code snippets as a single, easy to maintain library collection. I will utilise Python package namespacing, managed in a Git mono-repository.
jsonchema: Custom type, format and validator in Python
jsonschema is a great library for validating JSON data with JSON schema in Python. It also allows you to specify custom JSON schema types, formats and even validators. Unfortunately, the documentation is not very clear about the way how to create customized validators.
Python type checking: Assertions, exceptions, Mypy
The second article in series about typing support in Python will show you how to take type hints a step further and enforce type checking. Both Python 2 and 3 will be covered. You will also see why you may need a type support in the first place.
Python type hints and typing support in examples
The first article in series about typing support in Python will show you how to utilise type hints in this otherwise dynamic language. Both Python 2 and 3 will be covered. You will also see why you may need a type support in the first place.
Waiting on multiple Event objects in Python 3
Passive waiting is a way of suspending programs execution without consuming any CPU (in contrast with active waiting where a program is busy doing nothing). In Python, you can use certain classes from the threading module (such as Condition and Event). Let’s take for example the Event class. It is good for waiting for an…