Skip to main content

A collection of the Apache Spark stub files

Project description

Build Status PyPI version

A collection of the Apache Spark stub files. These files were generated by stubgen and manually edited to include accurate type hints.

Tests and configuration files have been originally contributed to the Typeshed project. Please refer to its contributors list and license for details.

Motivation

  • Static error detection (see SPARK-20631)

    SPARK-20631

  • Improved completion for chained method calls.

Usage

Please note that the guidelines for distribution of type information is still work in progress (PEP 561 - Distributing and Packaging Type Information). Currently installation script overlays existing Spark installations (pyi stub files are copied next to their py counterparts in the PySpark installation directory). If this approach is not acceptable you can stub files to the search path manually.

According to PEP 484:

Third-party stub packages can use any location for stub storage. Type checkers should search for them using PYTHONPATH.

Moreover:

Third-party stub packages can use any location for stub storage. Type checkers should search for them using PYTHONPATH. A default fallback directory that is always checked is shared/typehints/python3.5/ (or 3.6, etc.)

You’ll also need a type checker for example:

Installation

Please check usage before proceeding.

The package is available on PYPI:

pip install pyspark-stubs

In general package is useful only in development, and the shouldn’t be installed in a production environment.

Version Compatibility

Package versions follow PySpark versions with exception to maintenance releases - i.e. pyspark-stubs==2.3.0 should be compatible with pyspark>=2.3.0,<2.4.0. Maintenance releases (post1, post2, …, postN) are reserved for internal annotations updates.

API Coverage

Module

Dynamically typed

Statically typed

Notes

pyspark

pyspark.accumulators

pyspark.broadcast

Mixed

pyspark.cloudpickle

Internal

pyspark.conf

pyspark.context

pyspark.daemon

Internal

pyspark.files

pyspark.find_spark_home

Internal

pyspark.heapq3

Internal

pyspark.java_gateway

Internal

pyspark.join

pyspark.ml

pyspark.ml.base

pyspark.ml.classification

pyspark.ml.clustering

pyspark.ml.common

pyspark.ml.evaluation

pyspark.ml.feature

pyspark.ml.fpm

pyspark.ml.image

pyspark.ml.linalg

pyspark.ml.param

pyspark.ml.param._shared_params_code_gen

Internal

pyspark.ml.param.shared

pyspark.ml.pipeline

pyspark.ml.recommendation

pyspark.ml.regression

pyspark.ml.stat

pyspark.ml.tests

Tests

pyspark.ml.tuning

pyspark.ml.util

pyspark.ml.wrapper

pyspark.mllib

pyspark.mllib.classification

pyspark.mllib.clustering

pyspark.mllib.common

pyspark.mllib.evaluation

pyspark.mllib.feature

pyspark.mllib.fpm

pyspark.mllib.linalg

pyspark.mllib.linalg.distributed

pyspark.mllib.random

pyspark.mllib.recommendation

pyspark.mllib.regression

pyspark.mllib.stat

pyspark.mllib.stat.KernelDensity

pyspark.mllib.stat._statistics

pyspark.mllib.stat.distribution

pyspark.mllib.stat.test

pyspark.mllib.tests

Tests

pyspark.mllib.tree

pyspark.mllib.util

pyspark.profiler

pyspark.rdd

pyspark.rddsampler

pyspark.resultiterable

pyspark.serializers

pyspark.shell

Internal

pyspark.shuffle

Internal

pyspark.sql

pyspark.sql.catalog

pyspark.sql.column

pyspark.sql.conf

pyspark.sql.context

pyspark.sql.dataframe

pyspark.sql.functions

pyspark.sql.group

pyspark.sql.readwriter

pyspark.sql.session

pyspark.sql.streaming

pyspark.sql.tests

Tests

pyspark.sql.types

pyspark.sql.utils

pyspark.sql.window

pyspark.statcounter

pyspark.status

pyspark.storagelevel

pyspark.streaming

pyspark.streaming.context

pyspark.streaming.dstream

pyspark.streaming.flume

pyspark.streaming.kafka

pyspark.streaming.kinesis

pyspark.streaming.listener

pyspark.streaming.tests

Tests

pyspark.streaming.util

pyspark.taskcontext

pyspark.tests

Tests

pyspark.traceback_utils

Internal

pyspark.util

pyspark.version

pyspark.worker

Internal

Disclaimer

Apache Spark, Spark, PySpark, Apache, and the Spark logo are trademarks of The Apache Software Foundation. This project is not owned, endorsed, or sponsored by The Apache Software Foundation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyspark-stubs-2.4.0rc4.tar.gz (47.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyspark_stubs-2.4.0rc4-py3-none-any.whl (72.9 kB view details)

Uploaded Python 3

File details

Details for the file pyspark-stubs-2.4.0rc4.tar.gz.

File metadata

  • Download URL: pyspark-stubs-2.4.0rc4.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyspark-stubs-2.4.0rc4.tar.gz
Algorithm Hash digest
SHA256 2f4be7f78ff5cb25e12cf6d55ad0713645f6d5d75fde4bd52938da2cf73d057c
MD5 45032abb0d31de8bc6cde7dc82e4730d
BLAKE2b-256 98edbb4a5179e235685a59b9f3120e360a431f3871163ef2095b53d98d623a1c

See more details on using hashes here.

File details

Details for the file pyspark_stubs-2.4.0rc4-py3-none-any.whl.

File metadata

  • Download URL: pyspark_stubs-2.4.0rc4-py3-none-any.whl
  • Upload date:
  • Size: 72.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for pyspark_stubs-2.4.0rc4-py3-none-any.whl
Algorithm Hash digest
SHA256 65e672d2ee1a094197b182daac8fab4bce257cd4f4851117369d605615e5bf26
MD5 a47acab2cdaefebf455a079ad6840749
BLAKE2b-256 9597a5c557902b29e3bdfa692b6698d96188a3af02821461de6a086281257843

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page