Skip to content

Tag: python

How can I create Pulsar stream from Python?

How can I create a Kafka stream directly from Python? I know that I need to use GQLAlchemy but I don’t know the exact commands. Answer GQLAlchemy is a fully open-source Python library and Object Graph Mapper (OGM) – a link between graph database objects and Python objects. An Object Graph Mapper o…

How can I create Kafka stream from Python?

How can I create a Kafka stream directly from Python? I know that I need to use GQLAlchemy but I don’t know the exact commands. Answer GQLAlchemy is a fully open-source Python library and Object Graph Mapper (OGM) – a link between graph database objects and Python objects. An Object Graph Mapper o…

convert data to 1NF

I have a dataset like this name date singer language phase 1 Yes or No 02.01.20 Benjamin Smith en 1 2 Parabens 01.06.21 Rafael Galvao;Simon Murphy pt;en 2 3 Love 12.11.20 Michaela Condell en 1 4 Paz 11.07.19 Ana Perez; Eduarda Pinto es;pt 3 5 Stop 12.01.21 Michael Conway;Gabriel Lee en;en 1 6 Shalom 18.06.21 …

How to search graph database using Python?

I want to search graphs inside Python without the burden of having to learn a new query language. I extensively use pydantic library and I wonder if the two can work together. Answer You can use GQLAlchemy. It is an open source object graph mapper, and it is created using the pydantic library. You can check t…

sort string arrays of texts by length python

I have an array that containts elements out of words. I want to have a sorted list at the end. How do I do this in python? Thanks Eg: => Answer You can use a lambda that will sort first by reverse length then by length of the first element: