Skip to main content

PySpark Project Buiding Tool

Project description

PySpark CLI

This will implement a PySpark Project boiler plate code based on user input.

Apache Spark is a fast and general-purpose cluster computing system. It provides high-level APIs in Java, Scala, Python and R, and an optimized engine that supports general execution graphs. It also supports a rich set of higher-level tools including Spark SQL for SQL and structured data processing, MLlib for machine learning, GraphX for graph processing, and Spark Streaming.

PySpark is the Python API for Spark.

Installation Steps:

git clone https://github.com/qburst/PySparkCLI.git

cd PySparkCLI

pip3 install -e . --user

Create a PySpark Project

pysparkcli create [PROJECT_NAME] --master [MASTER_URL] --cores [NUMBER]

master - The URL of the cluster it connects to. You can also use -m instead of --master.
cores - You can also use -c instead of --cores.

Run a PySpark Project

pysparkcli run [PROJECT_NAME]

Project Structure

The basic project structure is as follows:

sample
├── __init__.py
├── src
│   ├── app.py
│   ├── configs
│      ├── etl_config.json
│      └── __init__.py
│   ├── __init__.py
│   ├── jobs      ├── etl_job.py
│      └── __init__.py
│   └── settings
│       ├── default.py
│       ├── __init__.py
│       ├── local.py
│       └── production.py
└── tests
    ├── __init__.py
    ├── test_data
       ├── employees
          └── part-00000-9abf32a3-db43-42e1-9639-363ef11c0d1c-c000.snappy.parquet
       └── employees_report
           └── part-00000-4a609ba3-0404-48bb-bb22-2fec3e2f1e68-c000.snappy.parquet
    └── test_etl_job.py

8 directories, 15 files

Contribution Guidelines

Check out here for our contribution guidelines.

Sponsors

QBurst

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

pysparkcli-0.0.4.tar.gz (6.6 kB view details)

Uploaded Source

Built Distributions

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

pysparkcli-0.0.4-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

pysparkcli-0.0.4-py2.7.egg (12.9 kB view details)

Uploaded Egg

File details

Details for the file pysparkcli-0.0.4.tar.gz.

File metadata

  • Download URL: pysparkcli-0.0.4.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

File hashes

Hashes for pysparkcli-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c86b8817ca54a90407288ab2151ed1e816dcf832f8164b701466631dec31022d
MD5 19dc90ebdd3d3216884227a76c8bd8fa
BLAKE2b-256 8f42f990675ce755e5220231c5a339eac84b17cb46c2d7dd83cef9739e2cabe7

See more details on using hashes here.

File details

Details for the file pysparkcli-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: pysparkcli-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

File hashes

Hashes for pysparkcli-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b55cf9118236d97b3bd049d531c6a2aa9b7082684ad72fe3f5ccd2fe797a24a2
MD5 5b8b7bd0e32e79bd20880869bf169851
BLAKE2b-256 95320d88507bd412c2d10222145d6a01176d96a86db608634324e893d349e681

See more details on using hashes here.

File details

Details for the file pysparkcli-0.0.4-py2.7.egg.

File metadata

  • Download URL: pysparkcli-0.0.4-py2.7.egg
  • Upload date:
  • Size: 12.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

File hashes

Hashes for pysparkcli-0.0.4-py2.7.egg
Algorithm Hash digest
SHA256 2670db3688b469a9e0ff274ebf27171dc5261ae87199d8514cf65ba2ab353fbf
MD5 1fa94b8a1b3b1d43524300962d5f71c2
BLAKE2b-256 e5672377003a3b585e8fe909eecd6c0d5185bf95f9569330b72133d31557f0e0

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