Pypgx Common¶
Python PGX client.
-
class
pypgx.
EdgeFilter
(filter_expr)¶ Bases:
pypgx.common.graph_filter.GraphFilter
A class that wraps a filter expression supposed to be evaluated on each edge of the graph.
-
class
pypgx.
GraphFilter
(java_filter)¶ Bases:
object
An abstract class representing any GraphFilters.
-
has_expression
()¶ Check if this GraphFilter object has an expression associated with it.
-
intersect
(other)¶ Intersect this filter with another graph-filter object.
- Parameters
other – the other graph-filter
- Returns
a class representing the filter intersection.
-
union
(other)¶ Union this filter with another graph-filter object.
- Parameters
other – the other graph-filter
- Returns
a class representing the filter union.
-
-
class
pypgx.
VertexFilter
(filter_expr)¶ Bases:
pypgx.common.graph_filter.GraphFilter
A class that wraps a filter expression supposed to be evaluated on each vertex of the graph.
-
pypgx.
get_session
(base_url=None, session_name=None, token=None, user_name=None, password=None, redirect_stdout=None, redirect_stderr=None)¶ Connect to a PGX server and return a PgxSession instance.
- Parameters
base_url – The url of the running session. if None a session is created.
session_name – Session name. If None “python_pgx_client” is the default value
token – The OAuth access token (if server requires OAuth based authentication)
user_name – The username (if server requires HTTP BASIC authentication)
password – if username is given, this is the HTTP BASIC Auth password. If keystore is given, this is the keystore password.