Code Monkey home page Code Monkey logo

bonobo's Introduction

๐Ÿต bonobo

Data-processing. By monkeys. For humans.

Bonobo is a data-processing library for python 3.5+ that emphasises writing simple, atomic, plain old python functions and chaining them using a basic acyclic graph. The nodes will need a bit of plumbery to be runnable in different means (iteratively, in threads, in processes, on different machines ...) but that should be as transparent as possible.

The only thing asked of the developer is to write "pure" functions to process data (create a new dict, don't change in place, etc.), and everything should be fine from this point.

It's a young rewrite of an old python2.7 tool that ran millions of transformations per day for years on production, so as though it may not yet be complete or fully stable (please, allow us to reach 1.0), the underlying concepts work.

Continuous Integration Code Health Coverage Documentation Downloads Python Package on PyPI

Made with โ™ฅ by Romain Dorgueil and contributors.


Roadmap (in progress)

Bonobo is young. This roadmap is alive, and will evolve. Its only purpose is to write down incoming things somewhere.

Version 0.2

  • Changelog
  • Migration guide
  • Update documentation
  • Threaded does not terminate anymore (fixed ?)
  • More tests

Bugs:

  • KeyboardInterrupt does not work anymore. (fixed ?)
  • ThreadPool does not stop anymore. (fiexd ?)

Configuration

  • Support for position arguments (options), required options are good candidates.

Context processors

  • Be careful with order, especially with python 3.5. (done)
  • @contextual decorator is not clean enough. Once the behavior is right, find a way to use regular inheritance, without meta.
  • ValueHolder API not clean. Find a better way.

Random thoughts and things to do

  • Class-tree for Graph and Nodes

  • Class-tree for execution contexts:

    • GraphExecutionContext
    • NodeExecutionContext
    • PluginExecutionContext
  • Class-tree for ExecutionStrategies

    • NaiveStrategy
    • PoolExecutionStrategy * ThreadPoolExecutionStrategy * ProcessPoolExecutionStrategy
    • ThreadExecutionStrategy
    • ProcessExecutionStrategy
  • Class-tree for bags

    • Bag
    • ErrorBag
    • InheritingBag
  • Co-routines: for unordered, or even ordered but long io.

  • "context processors": replace initialize/finalize by a generator that yields only once

  • "execute" function:

    def execute(graph: Graph, *, strategy: ExecutionStrategy, plugins: List[Plugin]) -> Execution:
        pass
  • Handling console. Can we use a queue, and replace stdout / stderr ?

bonobo's People

Contributors

hartym avatar dwillmer avatar

Watchers

James Cloos avatar Keith Webber avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.