class documentation
class GephiConnection:
Object that represents a connection to a Gephi master server.
Method | __del__ |
Undocumented |
Method | __init__ |
Constructs a connection to a Gephi master server. |
Method | __repr__ |
Undocumented |
Method | close |
Flushes all the pending operations to the Gephi master server in a single request. |
Method | flush |
Flushes all the pending operations to the Gephi master server in a single request. |
Method | url |
Undocumented |
Method | write |
Sends the given raw data to the Gephi streaming master server in an HTTP POST request. |
Property | url |
The URL of the Gephi workspace where the data will be sent. |
Method | _construct |
Undocumented |
Instance Variable | _autoflush |
Undocumented |
Instance Variable | _get |
Undocumented |
Instance Variable | _pending |
Undocumented |
Instance Variable | _update |
Undocumented |
Instance Variable | _url |
Undocumented |
Constructs a connection to a Gephi master server.
The connection object can be constructed either by specifying the url directly, or by specifying the host, port and workspace arguments. The latter three are evaluated only if url is None; otherwise the url will take precedence.
The url argument does not have to include the operation (e.g., ?operation=updateGraph); the connection will take care of it. E.g., if you wish to connect to workspace 2 in a local Gephi instance on port 7341, the correct form to use for the url is as follows:
http://localhost:7341/workspace0