No commit activity in last 3 years
No release in over 3 years
Parses fixed width files read by other file input plugins.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 1.10.6
>= 0.8.9
>= 10.0
 Project Readme

Build Status

Fixed width parser plugin for Embulk

Fixed width parser. Useful for parsing fixed width format files. Can be used to transform FirstSecond Third line to {key: "First", key2: "Second", key3: "Third"}

Overview

  • Plugin type: parser
  • Guess supported: no

Configuration

  • columns: declares the list of columns, their types and positions as range in input. Values will be assigned to these in order.
  • strip_whitespace: Strip whitespace from parsed values. (bool, default: true)

Example

in:
  type: any file input plugin type
  parser:
    type: fixed
    columns:
    - {name: first, type: string, pos: 0..1}
    - {name: second, type: string, pos: 3..7}
    - {name: third, type: string, pos: 10..12}

Install plugin

$ embulk gem install embulk-parser-fixed