Skip to main content
[![Build Status](https://travis-ci.org/src-d/sparkpickle.svg?branch=master)](https://travis-ci.org/src-d/sparkpickle) [![PyPI](https://img.shields.io/pypi/v/sparkpickle.svg)](https://pypi.python.org/pypi/sparkpickle)

SparkPickle
===========

Pure Python implementation of reading SequenceFile-s with pickles written by
Spark's [saveAsPickleFile()](http://spark.apache.org/docs/latest/api/python/pyspark.html#pyspark.RDD.saveAsPickleFile).
This is needed if you store the results from Spark in the efficient binary pickle
format and want to load them locally on your computer, without any Spark installation,
given only the actual files.

[Article about creating this project.](https://blog.sourced.tech/post/reading_pyspark_pickles_locally)

Installation
------------
```
pip install sparkpickle
```
Supports Python 2.7 and 3.x.

Usage
-----
View the contents of the file via command line:
```
python -m sparkpickle /path/to/file
```

Code:
```
import sparkpickle

for obj in sparkpickle.load_gen("/path/to/file"):
print(obj)
```

API
---
There are 3 functions: `load()`, `loads()` and `load_gen()`. The first two
are similar to those found in "pickle" package, whereas the last one is the
generator which yields deserialized objects and thus provides the minimal
memory footprint.

License
-------
Apache 2.0.

Metadata

Release files for sparkpickle 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sparkpickle 1.0.1
File Size Uploaded Provenance Actions
sparkpickle-1.0.1.tar.gz 19.9 kB Without provenance Details for sparkpickle-1.0.1.tar.gz

Release files / sparkpickle-1.0.1.tar.gz

Download URL sparkpickle-1.0.1.tar.gz
Size 19.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8e60b3823a9462bb606f9b8648aa5e5101a336c2506aefffe840bc76d114cf24
BLAKE2b-256 checksum
How to use checksums
2e3df2af239ad6f9a1e0c851a105b663642fcbf11718aba1e014fc43d3382029
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sparkpickle 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page