Metadata-Version: 1.1
Name: GephiStreamer
Version: 2.0.0
Summary: Tools to stream data to gephi
Home-page: https://github.com/totetmatt/GephiStreamer
Author: Matthieu Totet (@totetmatt)
Author-email: matthieu.totet@gmail.com
License: UNKNOWN
Description: GephiStreamer
        =============
        
        Python classes for streaming graph to gephi
        
        Install
        ======
        
        `pip install gephistreamer`
        
        Quick use
        ======
        
        ```python
        # Basic import
        from gephistreamer import graph
        from gephistreamer import streamer
        
        # Create a Streamer
        # adapt if needed : streamer.GephiREST(hostname="localhost", port=8080, workspace="workspace0")
        stream = streamer.Streamer(streamer.GephiREST())
        
        # Create a node with a custom_property
        node_a = graph.Node("A",custom_property=1)
        
        # Create a node and then add the custom_property
        node_b = graph.Node("B")
        node_b.property['custom_property']=2
        
        # Add the node to the stream
        # you can also do it one by one or via a list
        # l = [node_a,node_b]
        # stream.add_node(*l)
        stream.add_node(node_a,node_b)
        
        # Create edge 
        # You can also use the id of the node :  graph.Edge("A","B",custom_property="hello")
        edge_ab = graph.Edge(node_a,node_b,custom_property="hello")
        
        # Add the edge to the stream
        stream.add_edge(edge_ab)
        
        # Send the current graph (it send the data to gephi and delete it)
        stream.commit()
        ```
        How to
        =====
        
        Use the `Streamer` class to describe the action to perform:
        * add_node
        * change_node
        * delete_node
        * add_edge
        * change_edge
        * delete_edge
        
        the `.commit()` method of the `Streamer` class will trigger the send of data to Gephi and reset all actions.
        
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.4
Classifier: Topic :: Communications
