=============
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.GephiWS(hostname="localhost", port=8080, workspace="workspace0")
# You can also use REST call with GephiREST (a little bit slower than Websocket)
stream = streamer.Streamer(streamer.GephiWS())
# 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")
stream.add_edge(edge_ab)
```
How to
=====
Use the `Streamer` class to describe the action to perform:
* add_node
* change_node
* delete_node
* add_edge
* change_edge
* delete_edge
Don't forget to have Gephi running with the plugin [Graph Streaming](https://marketplace.gephi.org/plugin/graph-streaming/) installed and active in "Master mode".

GephiWS
=====
The GephiWS class communicates with Gephi as Websocket call.
GephiREST
=====
The GephiREST class communicates with Gephi as REST call.
Auto commit
=====
By default, all action will trigger a "commit" and send information to Gephi. You still
can use the old way by requiering a
```python
stream = streamer.Streamer(streamer.GephiREST(),auto_commit=False)
[.. actions ..]
stream.commit() # Will send all actions buffered to Gephi
```
Metadata
Release files for GephiStreamer 2.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| GephiStreamer-2.0.3.zip | 8.2 kB | Without provenance | Details |
Release files / GephiStreamer-2.0.3.zip
| Download URL | GephiStreamer-2.0.3.zip |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a3cee57ec1e7bbb1a5bd12813615995ae99bba7948e5453608fd0ada5772eea0
|
|
BLAKE2b-256 checksum How to use checksums |
f48af40b90c3e9475eaad403b78458e60490c56efbd831eb9eefc522ac1cc80d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for GephiStreamer 2.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.