Skip to content

Tag: python

Is it possible to use whitespace in format specifier

If I have following print statements: I will get a nice border around my “Hello World” but with dots: If I use a ‘ ‘ instead of the . in the second to fourth print statement, I will get a ValueError: Invalid format specifier. How can replace the dot with whitespace or any other ascii s…

How to concatenate strings in python?

I am doing automation in python for jira with the addition of jql search inside the service As a result: two JQL queries, one to search for “closed tickets” and the second to search for “created tickets” But as a result, I can’t add rows now. Expected Result: I got two lists insi…

vscode Flake8 ignore

Flake8 was installed lately by one of the updates of vscode. I think it is time to comply to the “rules” of python to writer better and more readable code. Unfortunately I have some errors that I cannot fix in the code (no discussion about that, but a local module has to be loaded before some othe…

WKB string to WKT, GeoJSON in Python

I have a number of WKB strings, couple of examples given below: I want to convert them to WKT or GeoJSON type as I am able to do using the following online tool: https://rodic.fr/blog/online-conversion-between-geometric-formats/ Is there a way for me to do the same on Python? Answer You can use shapely for th…