<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Python%3A_Gephi_Streamer</id>
	<title>Python: Gephi Streamer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Python%3A_Gephi_Streamer"/>
	<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Python:_Gephi_Streamer&amp;action=history"/>
	<updated>2026-04-16T04:15:20Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.4</generator>
	<entry>
		<id>https://onnocenter.or.id/wiki/index.php?title=Python:_Gephi_Streamer&amp;diff=46635&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;Download GephiStreamer-2.0.3.zip  Tools to stream data to gephi GephiStreamer =============  Python classes for streaming graph to gephi   ![Demo](http://matthieu-totet.fr/Kou...&quot;</title>
		<link rel="alternate" type="text/html" href="https://onnocenter.or.id/wiki/index.php?title=Python:_Gephi_Streamer&amp;diff=46635&amp;oldid=prev"/>
		<updated>2017-01-24T00:01:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Download GephiStreamer-2.0.3.zip  Tools to stream data to gephi GephiStreamer =============  Python classes for streaming graph to gephi   ![Demo](http://matthieu-totet.fr/Kou...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Download&lt;br /&gt;
GephiStreamer-2.0.3.zip&lt;br /&gt;
&lt;br /&gt;
Tools to stream data to gephi&lt;br /&gt;
GephiStreamer&lt;br /&gt;
=============&lt;br /&gt;
&lt;br /&gt;
Python classes for streaming graph to gephi&lt;br /&gt;
&lt;br /&gt;
 ![Demo](http://matthieu-totet.fr/Koumin/wp-content/uploads/2015/12/GephiStreamDemo.gif)&lt;br /&gt;
&lt;br /&gt;
Install&lt;br /&gt;
======&lt;br /&gt;
&lt;br /&gt;
`pip install gephistreamer`&lt;br /&gt;
&lt;br /&gt;
Quick use&lt;br /&gt;
======&lt;br /&gt;
&lt;br /&gt;
 ```python&lt;br /&gt;
 # Basic import&lt;br /&gt;
 from gephistreamer import graph&lt;br /&gt;
 from gephistreamer import streamer&lt;br /&gt;
 &lt;br /&gt;
 # Create a Streamer&lt;br /&gt;
 # adapt if needed : streamer.GephiWS(hostname=&amp;quot;localhost&amp;quot;, port=8080, workspace=&amp;quot;workspace0&amp;quot;)&lt;br /&gt;
 # You can also use REST call with GephiREST (a little bit slower than Websocket)&lt;br /&gt;
 stream = streamer.Streamer(streamer.GephiWS())&lt;br /&gt;
 &lt;br /&gt;
 # Create a node with a custom_property&lt;br /&gt;
 node_a = graph.Node(&amp;quot;A&amp;quot;,custom_property=1)&lt;br /&gt;
 &lt;br /&gt;
 # Create a node and then add the custom_property&lt;br /&gt;
 node_b = graph.Node(&amp;quot;B&amp;quot;)&lt;br /&gt;
 node_b.property['custom_property']=2&lt;br /&gt;
 &lt;br /&gt;
 # Add the node to the stream&lt;br /&gt;
 # you can also do it one by one or via a list&lt;br /&gt;
 # l = [node_a,node_b]&lt;br /&gt;
 # stream.add_node(*l)&lt;br /&gt;
 stream.add_node(node_a,node_b)&lt;br /&gt;
 &lt;br /&gt;
 # Create edge&lt;br /&gt;
 # You can also use the id of the node : graph.Edge(&amp;quot;A&amp;quot;,&amp;quot;B&amp;quot;,custom_property=&amp;quot;hello&amp;quot;)&lt;br /&gt;
 edge_ab = graph.Edge(node_a,node_b,custom_property=&amp;quot;hello&amp;quot;)&lt;br /&gt;
 stream.add_edge(edge_ab)&lt;br /&gt;
&lt;br /&gt;
```&lt;br /&gt;
How to&lt;br /&gt;
=====&lt;br /&gt;
&lt;br /&gt;
Use the `Streamer` class to describe the action to perform:&lt;br /&gt;
* add_node&lt;br /&gt;
* change_node&lt;br /&gt;
* delete_node&lt;br /&gt;
* add_edge&lt;br /&gt;
* change_edge&lt;br /&gt;
* delete_edge&lt;br /&gt;
&lt;br /&gt;
Don't forget to have Gephi running with the plugin [Graph Streaming](https://marketplace.gephi.org/plugin/graph-streaming/) installed and active in &amp;quot;Master mode&amp;quot;.&lt;br /&gt;
![Master mode](http://matthieu-totet.fr/Koumin/wp-content/uploads/2013/07/ScreenHunter_01-Jul.-30-08.39.jpg)&lt;br /&gt;
&lt;br /&gt;
GephiWS&lt;br /&gt;
=====&lt;br /&gt;
&lt;br /&gt;
The GephiWS class communicates with Gephi as Websocket call.&lt;br /&gt;
&lt;br /&gt;
GephiREST&lt;br /&gt;
=====&lt;br /&gt;
&lt;br /&gt;
The GephiREST class communicates with Gephi as REST call.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Auto commit&lt;br /&gt;
=====&lt;br /&gt;
By default, all action will trigger a &amp;quot;commit&amp;quot; and send information to Gephi. You still&lt;br /&gt;
can use the old way by requiering a&lt;br /&gt;
&lt;br /&gt;
 ```python&lt;br /&gt;
 stream = streamer.Streamer(streamer.GephiREST(),auto_commit=False)&lt;br /&gt;
 [.. actions ..]&lt;br /&gt;
 stream.commit() # Will send all actions buffered to Gephi&lt;br /&gt;
 ```  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://pypi.python.org/pypi/GephiStreamer&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>