Custom Spark data sources for reading and writing data in Apache Spark, using the Python Data Source API. Current version: 0.1.11. Release cadence: irregular, low activity.
pip install pyspark-data-sourcesVerified import paths — ran on the pinned version, not inferred.
Create a Spark session and use a custom data source via format(). Replace 'custom_source' with the actual source name.
Pin to a specific version and test upgrades carefully.
Use Python 3.9, 3.10, 3.11, or 3.12.
Use `import pyspark_datasources` (note: singular 'datasources' in import).
Ensure Java 8/11 and Spark are installed and SPARK_HOME is set.
Check the source code for the current DataSource abstract methods before implementing.