Orientdb: Python client for OrientDB 3.x

Created on 16 Aug 2018  Â·  11Comments  Â·  Source: orientechnologies/orientdb

pyorient does not work with OrientDB 3.x

Are there plans to either update pyorient to support version 3.x or release another python client that supports version 3.x?

Most helpful comment

Hi @Froskekongen. I've published several suggested work arounds in the Pyorient issues and have asked the author to update the driver to make it work with OrientDB 3.x.

I'll likely just update the code myself this week so you can use the Pyorient driver.

All 11 comments

Hi @Froskekongen. I've published several suggested work arounds in the Pyorient issues and have asked the author to update the driver to make it work with OrientDB 3.x.

I'll likely just update the code myself this week so you can use the Pyorient driver.

@OrientDBColin: That's great! Is there a place to follow progress on this?

I second this request!

@OrientDBColin

Hi.

Any update on this?

Hi @OrientDBColin, I was just wondering if there is update on this?
I'm looking to port a project to OrientDB and this is the only blocker.

I suggest you guys to try out Orient DB REST. It's the simplest way when
you scale to distributed DB when you have millions of nodes you don't have
to change any line of your backend code

On Wed, Dec 5, 2018, 4:31 AM Ben T <[email protected] wrote:

Hi @OrientDBColin https://github.com/OrientDBColin, I was just
wondering if there is update on this?
I'm looking to port a project to OrientDB and this is the only blocker.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/orientechnologies/orientdb/issues/8470#issuecomment-444292635,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABOgiGRZcpfOr6KSfdwiF2CYsEbpRATWks5u1v65gaJpZM4V_tPh
.

Do you mean writing a REST-based interface, or is there another library I've missed with my Google-fu? My backup plan is to use requests or similar, but figured that someone had wrapped REST into Python already. The code I have to move is Python-based already, so that's non-negotiable.

Python can make use REST API requests to run queries. Orient DB listens to
these requests and provides the response. Both request and response is in
json format. Just read OrientDB REST documentation

On Thu, Dec 6, 2018, 9:28 AM Ben T <[email protected] wrote:

Do you mean writing a REST-based interface, or is there another library
I've missed with my Google-fu? My backup plan is to use requests or
similar, but figured that someone had wrapped REST into Python already. The
code I have to move is Python-based already, so that's non-negotiable.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/orientechnologies/orientdb/issues/8470#issuecomment-444740351,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABOgiHi0LJt-qoQ52IEl9iFWhLRD6PPUks5u2JXNgaJpZM4V_tPh
.

Ah, I get what you mean. I was just hoping someone had wrapped the commands I need into an API. I guess I was hoping someone had done the lifting for me.

I had created a custom OGM in my Django project for Orient DB REST L.

I can give you tips to build one.

Create empty python classes named Node and Relationship. Extend your model
classes from there. (You don't have to specify the data type while creating
the models. Just use var)

Now write a separate code to create the vertices and edges using the sub
classes of Node and Relationship. You just have to use the class name here.
You don't need the properties at this point. This will migrate your DB.

Similarly for building queries, you can create helper functions which
returns the request json, from the class and a dictionary as parameters.
Here you can make use of the properties in a class and the dictionary to
create the json.

On Thu, Dec 6, 2018, 2:36 PM Ben T <[email protected] wrote:

Ah, I get what you mean. I was just hoping someone had wrapped the
commands I need into an API. I guess I was hoping someone had done the
lifting for me.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/orientechnologies/orientdb/issues/8470#issuecomment-444800163,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABOgiK6fNKn8lTFeyDD1H5AnVtVQhIPeks5u2N4jgaJpZM4V_tPh
.

Hi @Froskekongen and @TariqAHassan. Build pyorient from source they had made some configuration file changes. Due to this you will able to connect python and orientdb successfully.

Was this page helpful?
0 / 5 - 0 ratings