--- id: graphframes-py version: "0.12.1" license: Apache 2.0 license_treatment: permissive maintenance: active --- # graphframes-py — GraphFrames: Graph Processing Framework for Apache Spark License: permissive · Maintenance: active · Downloads: 1.3M/mo ## What it is and what it does GraphFrames is a Python wrapper for the Scala GraphFrames library, enabling distributed graph processing on Apache Spark. It lets you build and analyze graphs at scale using familiar DataFrame-like APIs, supporting operations such as centrality calculations (PageRank), motif discovery, community detection, and graph traversals. The package works with both classic Spark and Spark-Connect, choosing the implementation automatically based on your session type. The package itself is a thin Python layer—the heavy lifting happens in the JVM via Spark and GraphX. You need to supply your own Spark cluster or Spark-Connect server and ensure the JVM-core and GraphX dependencies are available. It's designed for developers working with network data, social graphs, knowledge graphs, or any large-scale graph problem that benefits from distributed computation. Use it for: - Compute PageRank and other centrality metrics on large social networks or web graphs in a distributed setting. - Discover motifs and structural patterns in biological networks, citation graphs, or knowledge graphs. - Detect communities and clusters in large graphs to identify groups or sub-networks. - Perform graph traversals and connectivity analysis to find paths, reachability, or connected components. - Build recommendation systems or link-prediction models using graph algorithms on Spark. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. GraphFrames Python wrapper provides graph processing and analysis on Apache Spark, enabling operations like centrality metrics, motif finding, community detection, and traversals on distributed graph data. Yes, if you have a Spark cluster or Spark-Connect server and need distributed graph processing. The package is actively maintained, permissively licensed, and has no known vulnerabilities. The main gotcha is the external JVM dependency—you cannot use this package standalone; it requires a working Spark environment. If you already have Spark and need graph algorithms at scale, it's a solid choice. ## Install pip install graphframes-py uv add graphframes-py poetry add graphframes-py ## Installing graphframes-py Before you install: Low install friction with a pure Python wheel. Actively maintained as of 2026-06-17 with recent commits. However, the package requires a separate JVM-core dependency and Apache Spark cluster or Spark-Connect server to function—this is a runtime requirement, not a packaging issue. License in practice: Licensed under Apache 2.0 (permissive). You can use, modify, and distribute this package freely in commercial and private projects, provided you include the license notice. Quickstart: pip install graphframes-py from graphframes import GraphFrame # Requires a Spark session and graph data (vertices, edges DataFrames) graph = GraphFrame(vertices, edges) Requires Apache Spark cluster or Spark-Connect server with JVM-core dependency installed; Python 3.10 or later; separate GraphX dependency may need manual setup when installing from local repository. Verify before relying: - Whether the package auto-resolves GraphX and other JVM dependencies when installed from PyPI (description notes manual setup may be needed for local installs). - Specific Spark version compatibility matrix beyond the general reference in documentation. - Whether Spark-Connect mode is the recommended path for new projects or if classic mode remains the default. ## Package facts - License: Apache 2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 1.3M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags graph processing spark, network analysis pyspark, distributed graph algorithms, pagerank pregel spark, graph clustering community detection, motif finding graphs, graph traversal connectivity, centrality metrics spark, distributed-computing, graph-algorithms, spark-ecosystem [View on SkillFed](https://skillfed.io/packages/graphframes-py) · [View on PyPI](https://pypi.org/project/graphframes-py/)