Skip to main content

Package Description

IOrient is an IPython extension for running queries against an OrientDB graph database within IPython using OrientDB’s SQL dialect and Gremlin.

Latest Version Downloads

Installation

The package may be installed as follows:

pip install iorient

After installation, the extension may be loaded within an IPython session with

%load_ext iorient

Usage Examples

Set user name, password, server host, and database name:

%orient user:passwd@localhost/dbname

Same as above, but also specify the port:

%orient user:passwd@localhost:2424/dbname

Multiple connections to different databases may be opened. Once a connection has been established, it can be used by specifying its user, server, and database name:

%%orient user@server/dbname
SELECT * FROM V

One can also execute Gremlin queries using the -g option:

%orient -g g.V[0]

Several special commands similar to those provided by the OrientDB console are also available:

%orient create database foobar memory graph
%orient drop database foobar
%orient disconnect
%orient current database
%orient current server
%orient list classes
%orient list databases

Once at least one connection has been opened, specifying a query without a connection string will use the last used connection:

%orient SELECT * FROM V

To display query results in JSON format results using Python’s pprint module rather than return them, use the -j option:

%orient -j SELECT * FROM V

One can also print the results in tabular format with a maximum field width:

%orient -t 100 SELECT * FROM V

Results of a query can also be viewed in a similar manner with the %oview command:

r = %orient SELECT * FROM V
%oview -j r
%oview -t 100 r

Development

The latest release of the package may be obtained from GitHub.

Author

See the included AUTHORS.rst file for more information.

License

This software is licensed under the BSD License. See the included LICENSE.rst file for more information.

Metadata

Release files for iorient 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iorient 0.1.3
File Size Uploaded
iorient-0.1.3.tar.gz 24.3 kB Details

Release files / iorient-0.1.3.tar.gz

Download URL iorient-0.1.3.tar.gz
Size 24.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ddc4b94633186192e83bb00d9613af61cd8912f73845608ca07a4285f98caaaf
BLAKE2b-256 checksum
How to use checksums
67a4dbd06a869dd49870329178b88fe9a277b46ffb0524d2b574fdd4256d1ad3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page