spark-python-data-source

Create custom Python data source connectors for Apache Spark 4.0+.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a robust framework and best practices for developing custom Python-based data source connectors for Apache Spark, enabling seamless integration with external systems that lack native Spark support.

Core Features & Use Cases

  • Custom Connectors: Build readers and writers for databases, APIs, message queues, and custom file formats.
  • Batch & Streaming: Supports both batch and streaming data processing paradigms.
  • Use Case: Develop a Spark connector to read data from a proprietary REST API that paginates results, or to write streaming data to a real-time analytics platform.

Quick Start

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

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 in Python?

To build a custom Spark data source connector in Python, implement batch and streaming readers and writers using a flat, single-level inheritance structure. This approach ensures maintainability and simplicity when integrating external systems like APIs or message queues.

Can I use PySpark to read streaming data from a REST API with pagination?

Yes, you can use PySpark to read streaming or batch data from a paginated REST API. The framework guides the implementation of custom readers and writers to handle external systems lacking native Spark support, including proprietary APIs.

Does Apache Spark 4.0 support custom Python data source connectors for batch and streaming?

Yes, Apache Spark 4.0+ supports custom Python data source connectors for both batch and streaming data processing. This allows you to develop tailored readers and writers for external systems like message queues and databases.

What is the best way to structure a PySpark connector for external systems?

The best way to structure a PySpark connector is using a flat, single-level inheritance structure. Adhering to this design principle ensures the custom data source integration remains maintainable and simple over time.

When should I create a custom Spark connector instead of using built-in integrations?

You should create a custom Spark connector when you need to integrate with external systems like proprietary databases, message queues, or APIs that lack native Spark support. This framework provides the necessary readers and writers for these custom integrations.

Why does my custom PySpark data source fail to handle streaming workloads?

Custom PySpark data sources may fail streaming workloads if they do not correctly implement the required streaming reader and writer interfaces. Following the framework's specific design principles for batch and streaming ensures proper data flow.