Ragnar

https://github.com/juanmcristobal/ragnar/actions/workflows/test.yml/badge.svg?branch=master https://coveralls.io/repos/github/juanmcristobal/ragnar/badge.svg?branch=master https://img.shields.io/pypi/v/ragnar.svg Documentation Status

Ragnar is a lightweight Extract-Transform-Load (ETL) framework for Python 3.5+.

Features

  • Keeps a functional programming philosophy.
  • Code reuse instead of “re-inventing the wheel” in each script.
  • Customizable for your organization’s particular tasks.

Example

A pipeline that applies capital letters to the list and then filters through the one starting with “B”:

>>> from ragnar.stream import Stream
>>> st = Stream(["apple", "banana", "cherry"])
>>> st.do(lambda x: x.upper())
<ragnar.stream.Stream object at 0x7fbe8e3509d0>
>>> st.filter(lambda x:x.startswith("B"))
<ragnar.stream.Stream object at 0x7fbe8e3509d0>
>>> for row in st:
...     print(row)
BANANA