An open API service indexing awesome lists of open source software.

https://github.com/mattbit/shuttle

A simple task manager for my scientific simulations.
https://github.com/mattbit/shuttle

Last synced: 12 months ago
JSON representation

A simple task manager for my scientific simulations.

Awesome Lists containing this project

README

          

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/mattbit/shuttle/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/mattbit/shuttle/?branch=master)
[![Build Status](https://travis-ci.org/mattbit/shuttle.svg?branch=master)](https://travis-ci.org/mattbit/shuttle)

# Shuttle 🚀

A simple task runner. **Work in progress, highly unstable.**

```python
from shuttle import Workflow

w = Workflow({'local_dir': '/data/storage'})

@w.source
def my_dataset():
return ['a', 'lot', 'of', 'data']

@w.task
def my_task(manager, task):
print(f'Running task {task.id}')
data = manager.get_source('my_dataset')
parameter = task.config.get('my.config.parameter')

result = do_something_with(data, parameter)
output = task.bucket.new_file('my_output.csv')
with open(output, 'w') as out:
out.write(result)

```