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?
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.
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.
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.
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…