nose2-spark
nose2 plugin to run the tests with support of pyspark (Apache Spark).
Features:
Make “pyspark” importable in you code executed by nose2.
Add a list of py-files dependencies of your pyspark application (which is usually supplied as an option spark-submit --py-files ...).
Install
$ pip install nose2-spark
Usage
Load “nose2-spark” plugin into nose2 by creating nose2.cfg in your project directory:
[unittest] plugins = nose2_spark
Run tests with nose2-spark activated (pyspark and friends are added to pythonpath):
$ nose2 --pyspark
nose2-spark will try to import pyspark by looking into:
SPARK_HOME environment variable
Some common Spark locations.
You can set it manually in case if all of mentioned methods are failing to find Spark. Add section “nose2-spark” to nose2.cfg:
[nose2-spark] spark_home = /opt/spark
You can add a list of required py-files to run your code:
[nose2-spark]
pyfiles = package1.zip
package2.zip
Example
Example of nose2.cfg with spark_home defined, one py-files dependency and auto activating nose2-spark plugin:
[unittest] plugins = nose2_spark [nose2-spark] always-on = True spark_home = /opt/spark pyfiles = package1.zip
This will allow to run tests by single command:
$ nose2
Metadata
Release files for nose2-spark 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nose2-spark-0.3.tar.gz | 2.7 kB | Without provenance | Details for nose2-spark-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nose2_spark-0.3-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for nose2_spark-0.3-py2.py3-none-any.whl |
Total release size: 7.1 kB
Release files / nose2-spark-0.3.tar.gz
| Download URL | nose2-spark-0.3.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
443d341664c623de629e4f9eb444404740f71ab16a2f742b3b54429e048e6bb7
|
|
BLAKE2b-256 checksum How to use checksums |
b1db47d691433d4f0293904fdb1edb5fd759f89ef0018d0426f01cc7274e30cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / nose2_spark-0.3-py2.py3-none-any.whl
| Download URL | nose2_spark-0.3-py2.py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
17172396291eb7fa27235cfc2c6d7b7c6dbe5a11bda3987faf446bf0854c1620
|
|
BLAKE2b-256 checksum How to use checksums |
77c003ffaa0bd3cf7c1f93d5a952794a7723eb2068c3cea1b8d38d0be74e2113
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for nose2-spark 0.3
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.