Interface to download and interact with the Fediverse Graph Dataset
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
Python API to interact with the Fediverse Graph Dataset
This Python package provides a simple interface to interact with the Fediverse Graph dataset: https://www.kaggle.com/datasets/marcdamie/fediverse-graph-dataset/data. Our package automatically downloads the dataset from Kaggle and loads graphs in a usable format (i.e., NetworkX).
The Fediverse Graph dataset provides graphs for different decentralized social media. These graphs represents the interactions between servers in these decentralized social media. The graph type corresponds to the type of interactions modelled by the graph. Finally, the dataset provides the graphs obtained on different dates, so the users can analyze the evolution of the interactions.
Refer to this repository to discover more about the data acquisition.
Extracting a graph
Three pieces of information are necessary to select a graph in the datatset: the software/social media, the graph type, and the date.
We provide graphs using the NetworkX format.
Example:
from fediverse_graphs import GraphLoader
loader = GraphLoader()
graph = loader.get_graph(software="peertube", graph_type="federation", date="20250324")
graph = loader.get_graph(software="peertube", graph_type="federation") # Loads the most recent graph
Extracting graph metadata
Along with each graph, we also provide some metadata about the nodes composing the graph. Depending on the social media, the amount of information available varies.
We provide this information using a Pandas dataframes.
Example:
from fediverse_graphs import GraphLoader
loader = GraphLoader()
graph = loader.get_graph_metadata(software="peertube", graph_type="federation", date="20250324")
graph = loader.get_graph_metadata(software="peertube", graph_type="federation") # Loads the most recent graph
Utility functions
Finally, we provide a few utility functions:
from fediverse_graphs import GraphLoader
loader = GraphLoader()
loader.list_all_software()
loader.list_graph_types("peertube")
loader.list_available_dates("peertube", "federation")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fediverse_graphs-0.9.0.tar.gz.
File metadata
- Download URL: fediverse_graphs-0.9.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88d452bc27b4291253d7f449f0a6d22c46ebe656a9b866e281a84064d3ee2e2b
|
|
| MD5 |
caab15eda63156786d18e1b64e2b8b3c
|
|
| BLAKE2b-256 |
9fd3afbe4a68b0585261b65b8ba958b1883fa771a4f470793beea88d89f8598d
|
Provenance
The following attestation bundles were made for fediverse_graphs-0.9.0.tar.gz:
Publisher:
python-publish.yml on MarcT0K/Fediverse-Graphs-Python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fediverse_graphs-0.9.0.tar.gz -
Subject digest:
88d452bc27b4291253d7f449f0a6d22c46ebe656a9b866e281a84064d3ee2e2b - Sigstore transparency entry: 189770029
- Sigstore integration time:
-
Permalink:
MarcT0K/Fediverse-Graphs-Python@2bb9b60a7f333796c8c3ef38674bd03cb585c267 -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/MarcT0K
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2bb9b60a7f333796c8c3ef38674bd03cb585c267 -
Trigger Event:
release
-
Statement type:
File details
Details for the file fediverse_graphs-0.9.0-py3-none-any.whl.
File metadata
- Download URL: fediverse_graphs-0.9.0-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc28e57a619e91852da5740aa84abcfb027814e77460d754aaeb93c9375a5bc1
|
|
| MD5 |
9c74968c2ad06b28a5c14957ac83ccf0
|
|
| BLAKE2b-256 |
932e442a7d4368f0a7c8ad2017bd2d5f92a0a6a8eee8d692c1347a1b2d68dd69
|
Provenance
The following attestation bundles were made for fediverse_graphs-0.9.0-py3-none-any.whl:
Publisher:
python-publish.yml on MarcT0K/Fediverse-Graphs-Python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fediverse_graphs-0.9.0-py3-none-any.whl -
Subject digest:
fc28e57a619e91852da5740aa84abcfb027814e77460d754aaeb93c9375a5bc1 - Sigstore transparency entry: 189770031
- Sigstore integration time:
-
Permalink:
MarcT0K/Fediverse-Graphs-Python@2bb9b60a7f333796c8c3ef38674bd03cb585c267 -
Branch / Tag:
refs/tags/0.9.0 - Owner: https://github.com/MarcT0K
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2bb9b60a7f333796c8c3ef38674bd03cb585c267 -
Trigger Event:
release
-
Statement type: