Skip to main content

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

fediverse_graphs-0.0.2.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fediverse_graphs-0.0.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file fediverse_graphs-0.0.2.tar.gz.

File metadata

  • Download URL: fediverse_graphs-0.0.2.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

Hashes for fediverse_graphs-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8f33afff8c7f0896a6a90d5bc2aff314ad5fe4ebc5b9ffee29e03f7f74d32721
MD5 ea385c72f86e9145b6e0a235fb7b2228
BLAKE2b-256 37a6dbaf87ba8adbbe7b143c4c04dc64edf8c69c3cd2ffe76644bcb6b0c909e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for fediverse_graphs-0.0.2.tar.gz:

Publisher: python-publish.yml on MarcT0K/Fediverse-Graphs-Python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fediverse_graphs-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for fediverse_graphs-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c2e406bff415ad33fea4d47ad72bab681d394b39ed59927a581bf225b85e36f3
MD5 021573bbe2d70fc4b9c8dd4d0b679315
BLAKE2b-256 49c5d2a2bd73943a055a8c1f27b9b49cf88d5e414af30e1d0401dc599885ab26

See more details on using hashes here.

Provenance

The following attestation bundles were made for fediverse_graphs-0.0.2-py3-none-any.whl:

Publisher: python-publish.yml on MarcT0K/Fediverse-Graphs-Python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page