$npx skillfedfor your agent

pyspark-huggingface

A DataSource for reading and writing HuggingFace Datasets in Spark

Worth itPyPI Distributed ComputingReleased Apr 2026900.3K downloads / moApache License 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pyspark_huggingface-2.1.0-py3-none-any.whl
v2.1.0 · released 2026-04-14 · Python >=3.9 · 3 runtime deps: datasets, huggingface-hub, pyarrow

Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real integration gap for teams using both Spark and Hugging Face. Install it if you need to move datasets between Spark and Hugging Face, or if you want to use Hugging Face datasets in a Spark pipeline. The Apache License 2.0 poses no restrictions.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.9+.
  • On Spark 3.x, the import statement is required to enable the backport; Spark 4 auto-registers the data source.
  • Low friction install with a pure-wheel distribution.

License · maintenance · safety

Apache License 2.0 (permissive) — Licensed under Apache License 2.0, a permissive open-source license. You may use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license.

last release 2026-04-14 (122 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 900,329 downloads/mo, #4,775 on PyPI

Verify before relying

pip install pyspark-huggingface

import pyspark_huggingface
df = spark.read.format("huggingface").load("stanfordnlp/imdb")
df.write.format("huggingface").mode("overwrite").save("username/my_dataset")
  • Minimum and maximum PySpark versions supported beyond the mentioned 3.3, 3.4, 3.5, and 4.
  • Performance characteristics for very large datasets or high-frequency read/write operations.
  • Specific authentication failure modes and recovery strategies beyond token-based login.
  • Whether datasets>=4.8.4 and huggingface-hub>=1.10.1 are hard requirements or only for bucket support.
Same gist for agents: .md · .json

What it is and what it does

pyspark-huggingface is a Spark data source connector that bridges PySpark and Hugging Face's dataset ecosystem. It allows you to stream datasets from Hugging Face directly into Spark DataFrames and write DataFrames back to Hugging Face as Parquet files. The connector supports selecting specific splits and configs, filtering rows and columns, and leverages Hugging Face's Xet deduplication layer to optimize upload speeds. It works with Spark 4 natively and includes a backport for Spark 3.5, 3.4, and 3.3.

The package depends on datasets, huggingface-hub, and pyarrow to handle the actual data transfer and format conversion. Authentication happens via huggingface-cli login or manual token passing. It is designed for distributed, production-grade workflows where you need to ingest or export large-scale datasets between Spark clusters and Hugging Face's storage infrastructure.

Use it for

  • Load public Hugging Face datasets into Spark for distributed ML preprocessing and analysis.
  • Export Spark DataFrames as Parquet to Hugging Face for sharing, versioning, or archival.
  • Stream specific dataset splits or configs into Spark without downloading the full dataset.
  • Apply row and column filters during read to reduce memory footprint and speed up ingestion.
  • Use Hugging Face Storage Buckets as a remote data lake, reading and writing via Spark with deduplication.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real integration gap for teams using both Spark and Hugging Face. Install it if you need to move datasets between Spark and Hugging Face, or if you want to use Hugging Face datasets in a Spark pipeline. The Apache License 2.0 poses no restrictions.

Install

pyspark-huggingface on PyPI

Before you install

Low friction install with a pure-wheel distribution. Actively maintained as of 2026-04-14. Requires only three runtime dependencies (datasets, huggingface-hub, pyarrow), all widely used in the ML ecosystem.

Requires Python 3.9+. On Spark 3.x, the import statement is required to enable the backport; Spark 4 auto-registers the data source.

License in practice

Licensed under Apache License 2.0, a permissive open-source license. You may use, modify, and distribute this package freely in commercial and private projects, provided you include a copy of the license.

Quickstart

pip install pyspark-huggingface

import pyspark_huggingface
df = spark.read.format("huggingface").load("stanfordnlp/imdb")
df.write.format("huggingface").mode("overwrite").save("username/my_dataset")

Verify before relying

  • Minimum and maximum PySpark versions supported beyond the mentioned 3.3, 3.4, 3.5, and 4.
  • Performance characteristics for very large datasets or high-frequency read/write operations.
  • Specific authentication failure modes and recovery strategies beyond token-based login.
  • Whether datasets>=4.8.4 and huggingface-hub>=1.10.1 are hard requirements or only for bucket support.

Package facts

LicenseApache License 2.0 permissive
Python supportSupports the current Python release >=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
datasetshuggingface-hubpyarrow
MaintenanceActively maintained 122 days since the last release
First released
Downloads900,329 / month, #4,775 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: pyspark_huggingface-2.1.0-py3-none-any.whl

Tags

Capabilities
spark hugging face datasetspyspark data source huggingfaceload hugging face into sparkspark parquet hugging facedistributed dataset streaming sparkhugging face storage bucket sparkspark dataframe hugging face integration
Topics
spark-integrationhugging-face-datasetsdata-pipeline

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “spark hugging face datasets”

  • pyspark-huggingfaceRegisters a Spark data source that reads datasets from Hugging Face…
  • datasetsLoads and preprocesses datasets from the Hugging Face Hub or local…
  • ossdataProvides scalable datasets for software engineering research and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Distributed Computing packages

grpcio Worth it
PyPI · Distributed Computing · released Jul 2026

gRPC Python is an HTTP/2-based RPC framework that enables you to define and call remote procedures across network boundaries using protocol buffers for serialization.

Install it if you need RPC communication in a distributed system or are integrating with existing gRPC services.

Apache-2.0compiled wheel · 3.10+
446.4Mdownloads / mo
execnet With conditions
PyPI · Libraries · released Nov 2025

execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.

However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…

MITpure Python · 3.8+aging
172.1Mdownloads / mo
cloudpickle Worth it
PyPI · Scientific/Engineering · released Nov 2025

Cloudpickle extends Python's standard pickle module to serialize lambda functions, interactively-defined functions and classes, and other constructs that the default pickle cannot handle, making it suitable for cluster computing and remote code execution.

Install it if you need to serialize lambda functions, interactively-defined code, or non-standard Python constructs for cluster computing or distributed execution.

BSD-3-Clausepure Python · 3.8+
148.4Mdownloads / mo
smart-open Worth it
PyPI · Distributed Computing · released Jul 2026

Provides a unified, open()-compatible Python API for streaming large files from remote storage (S3, GCS, Azure, HDFS, SFTP, HTTP) and local filesystems, with transparent compression support.

Install it if you work with large files on cloud storage or remote systems and want to avoid writing boilerplate around multiple SDKs.

MITpure Python
72.8Mdownloads / mo
portalocker Worth it
PyPI · Libraries · released Aug 2026

Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.

Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.

BSD-3-Clausepure Python · 3.10+
65.1Mdownloads / mo
ray Worth it
PyPI · Distributed Computing · released Aug 2026

Ray is a distributed computing framework that scales Python applications from a single machine to multi-node clusters, providing abstractions for parallel tasks, stateful actors, and shared objects.

permissive licensecompiled wheel · 3.10+
63.3Mdownloads / mo

See also datasets · pyspark-data-sources · pyspark-extension · hf-xet · huggingface-hub · ossdata · spaces · kedro-datasets · pyspark-pandas · spark-sklearn