Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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="follow", date="20250324")
    graph = loader.get_graph(software="peertube", graph_type="follow") # Loads the most recent graph

In each graph, we also provide metadata in the attributes of the graph nodes.

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", "follow")

Metadata

Release files for fediverse-graphs 0.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fediverse-graphs 0.9.2
File Size Uploaded
fediverse_graphs-0.9.2.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fediverse-graphs 0.9.2
File Interpreter ABI Platform
fediverse_graphs-0.9.2-py3-none-any.whl Python 3 none any Details

Total release size: 35.4 kB

Release files / fediverse_graphs-0.9.2.tar.gz

Download URL fediverse_graphs-0.9.2.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
54b4ac95c6a633f99c634c434a77f05a662078cac6e5232dee896cffd2434110
BLAKE2b-256 checksum
How to use checksums
16e64914813e3f87a0a937894c87bc1aab6b5f14b64353571d324fef919379eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 14, 2025.

Transparency log

Release files / fediverse_graphs-0.9.2-py3-none-any.whl

Download URL fediverse_graphs-0.9.2-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
005917f104f6e5731cbeeb7b7be441bf1ec79e36b5d43dd754f04f8a657d6422
BLAKE2b-256 checksum
How to use checksums
b22720dd567c1d9c218b99da46adf697f91b05c773371508808cc64c41c4588e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 14, 2025.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page