Skip to main content

A data processing orcestration tool.

Project description

https://raw.githubusercontent.com/rbturnbull/django-crunch/main/docs/images/crunch-banner.svg

testing badge coverage badge docs badge black badge

A data processing orcestration tool. Crunch allows you to visualize the datasets, orchestrate and manage the processing online and present the results to the world.

Description

Crunch coordinates three components. First there is a web application in the cloud. Crunch includes a Django app which can be included in a website built using the Django framework for building database driven websites. The website allows users to create what we call datasets. Each dataset corresponds to one collection of files and metadata which is designed to be run through the workflow. Each dataset has its own page on the website which displays all the information about it.

The second component is data storage. The main use-case for crunch is when your datasets are so many and so large that you cannott fit them all on to the disk where you are doing your computation. With crunch, the data can be stored in any of the media storage options available with Django. These can be Amazon S3, Google Cloud or many other storage options.

The third component is the client which runs at the place where you are performing the computation. This could be in a high-performance computing environment, or it could be on a virtual machine in the cloud or it could be just on your own laptop. The user just runs the crunch command line tool. The command line tool communicates with the website to find out which dataset should be processed next, then it copies it from storage and saves it locally. Then it processes the dataset using a pre-defined workflow provided by the user. When it is finished, it copies back the data to the storage with the resulting files. At each stage the user can see the status on the website interface. If you run the crunch loop` command then the client continually loops through the datasets until they are completely finished. You can run as many clients in parallel as you have computing resources.

Once each dataset is processed, the resulting files can be accessed via the website. The permissions for the website can be set dynamically so that users can restrict access to just the team for while the data is being processed and once the results are ready for the world then you can allow access to the public.

Installation

The crunch app for a Django website and the command-line client are installed with pip:

pip install git+https://github.com/rbturnbull/django-crunch

Install the crunch app to the Djanco website project by adding it to the settings:

INSTALLED_APPS += [
    "crunch",
]

Then add the urls to your main urls.py:

urlpatterns += [
    path('crunch/', include('crunch.django.app.urls'))),
]

The path crunch/ can be changed to be whatever you choose.

Usage

Create projects, datasets, items and attributes on the website using the HTML interface, the crunch command-line client or the Python API.

Upload initial data for each dataset as needed to the storage using the Crunch HTML interface or direct to the folder for each dataset on the storage.

Then process each dataset at the location where you are performing your compute with the crunch client. All datasets can be processed with the single command:

crunch loop

Credits

Robert Turnbull, Mar Quiroga and Simon Mutch from the Melbourne Data Analytics Platform.

Publication and citation details to follow.

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

django_crunch-0.1.12.tar.gz (37.9 kB view hashes)

Uploaded Source

Built Distribution

django_crunch-0.1.12-py3-none-any.whl (49.5 kB view hashes)

Uploaded Python 3

Supported by

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