spark-python-data-source

Develop custom Python-based Apache Spark data source connectors for batch and streaming workloads.

Updated Mar 12, 2026
One-click install
npx skills add https://github.com/juanlamadrid20/coda --skill spark-python-data-source-juanlamadrid20
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spark-python-data-source
Source: https://github.com/juanlamadrid20/coda/tree/main/.claude/skills/spark-python-data-source
Command: npx skills add https://github.com/juanlamadrid20/coda --skill spark-python-data-source-juanlamadrid20

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyspark, pytest, pytest-spark, requests, azure-identity, databricks-service-credentials, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables the creation of custom Apache Spark data source connectors for external systems, allowing seamless data integration for batch and streaming workloads.

Core Features & Use Cases

  • Custom Connectors: Develop readers and writers for systems lacking native Spark support (e.g., APIs, databases, message queues).
  • Batch & Streaming: Implement both batch and streaming data source functionalities.
  • Use Case: Build a Spark connector to read data from a proprietary REST API, enabling data scientists to query and analyze the API data directly within their Spark notebooks.

Quick Start

Use the spark-python-data-source skill to build a custom Spark connector for reading data from a REST API.

Frequently Asked Questions about spark-python-data-source

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a custom Spark data source connector for an external system?

Build a custom Spark data source connector by implementing the PySpark DataSource API for batch and streaming readers and writers. This Skill facilitates developing Python-based connectors to integrate external systems lacking native Spark support.

Can I read data from a REST API directly into a PySpark batch or streaming workload?

Yes, you can read data from a REST API into PySpark batch and streaming workloads. This Skill enables developing custom readers and writers for proprietary APIs, allowing data scientists to query API data directly within Spark notebooks.

What is the PySpark DataSource API used for when native Spark support is unavailable?

The PySpark DataSource API is used to create custom ingestion and egress connectors for external systems without native Spark support. It allows developers to implement batch and streaming readers and writers for seamless data integration.

Does this approach support both streaming and batch data ingestion in PySpark?

Yes, this approach supports both streaming and batch data ingestion in PySpark. The Skill facilitates implementing custom data source functionalities for both batch readers and writers and streaming workloads.

Do I need PySpark and pytest to develop custom data source connectors?

Yes, you need PySpark and pytest along with pytest-spark to develop custom data source connectors. These dependencies provide the foundational framework and testing environment required for implementing and validating the connectors.

When should I create a custom Python data source instead of using a native Spark connector?

Create a custom Python data source when ingesting data from external systems lacking native Spark support, such as proprietary REST APIs or specific message queues. This approach addresses scenarios requiring custom data ingestion or egress not covered by native connectors.