Skip to content

Instantly share code, notes, and snippets.

View hartym's full-sized avatar
👽
Crafting great software

Romain Dorgueil hartym

👽
Crafting great software
View GitHub Profile
from contextlib import contextmanager
import bonobo
def get_graph(**options):
graph = bonobo.Graph([1,2,3], bonobo.PrettyPrinter())
return graph
@contextmanager
@hartym
hartym / sandbox.sh
Created May 24, 2018 07:22
sandbox.sh
#! /bin/bash
# Exit if something fails
set -e
# Show everything
set -x
# Set version
export VERSION=`git describe`
from collections import deque
import bonobo
from bonobo.config import use_context_processor
def rolling_deque(self, context):
buffer = yield deque()
while len(buffer):
retval = buffer.popleft()