Skip to content

Instantly share code, notes, and snippets.

@pvarsh
Created February 20, 2015 19:13
Show Gist options
  • Save pvarsh/0d2342157e5692288aa2 to your computer and use it in GitHub Desktop.
Save pvarsh/0d2342157e5692288aa2 to your computer and use it in GitHub Desktop.
import parsekit
class FilterRow(parsekit.Step):
start_row = parsekit.Argument(
"The row to start emitting from.",
required=True,
type=int)
def configure(self, options):
self.row_counter = 0
def run(self, record, metadata):
self.row_counter += 1
if self.row_counter >= self.options.start_row:
return record, metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment