A library on top of either pex or conda-packto make your Python code easily available on a cluster
Project description
cluster-pack
cluster-pack is a library on top of either pex or conda-pack to make your Python code easily available on a cluster.
Its goal is to make your prod/dev Python code & libraries easiliy available on any cluster. cluster-pack supports HDFS/S3 as a distributed storage.
The first examples use Skein (a simple library for deploying applications on Apache YARN) and PySpark with HDFS storage. We intend to add more examples for other applications (like Dask, Ray) and S3 storage.
An introducing blog post can be found here.
Installation
Install with Pip
$ pip install cluster-pack
Install from source
$ git clone https://github.com/criteo/cluster-pack
$ cd cluster-pack
$ pip install .
Prerequisites
cluster-pack supports Python ≥3.6.
Features
-
Ships a package with all the dependencies from your current virtual environment or your conda environment
-
Stores metadata for an environment
-
Supports "under development" mode by taking advantage of pip's editable installs mode, all editable requirements will be uploaded all the time, making local changes directly visible on the cluster
-
Interactive (Jupyter notebook) mode
-
Provides config helpers to directly use the uploaded zip file inside your application
-
Launching jobs from jobs by propagating all artifacts
Basic examples with skein
Basic examples with PySpark
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file cluster_pack-0.2.20-py3-none-any.whl
.
File metadata
- Download URL: cluster_pack-0.2.20-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.0 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83e47cb6d6ddb7f14d36352c6ef3d7b1c21d2f441863f7c92a2c7a6f7666020f |
|
MD5 | 8205f9113a98c64271ae9283a1e51206 |
|
BLAKE2b-256 | ab373699c12a61d1c477fd906a26f968e772d48fa0c79548375f4f8fe81f449f |