How to publish posts via the dev.to API

I write on dev.to (Julie - DEV Community). Every time I copied a post into the dev.to editor, added tags and cleaned up the formatting, I’d wonder whether there was a way to automate it. If you have the same question, this article is for you. The answer: the dev.to API. In this post I’ll show you two ways to use it. First a curl command, so you’ll see the exact request the API expects. Then a Python script that automates it. I’ll also cover the one thing that trips people up: images. ...

2026-10-21 · 4 min · Julie

What’s the return value of a bool expression in Python?

We know that the boolean value of 0 is False, and the boolean value of 1 is True. What about the boolean value of a negative number, for example, -2 ? What’s the result of the expression True and 3 in Python? Is it True or False, or other value? Let’s find it out. ...

2023-01-07 · 3 min · Julie