pyexcel.iterators module

pyexcel.iterators

Iterate through the pyexcel readers

copyright:
  1. 2014 by C. W.
license:

GPL v3

class pyexcel.iterators.ColumnIterator(reader)[source]

Column Iterator from left to right

next()[source]
class pyexcel.iterators.ColumnReverseIterator(reader)[source]

Column Reverse Iterator from right to left

next()[source]
class pyexcel.iterators.HBLTRIterator(reader)[source]

Bases: pyexcel.iterators.VBLTRIterator

Horizontal Bottom Left to Top Right Iterator

Iterate horizontally from bottom left to top right >>E >>> ^ S>> |

get_next_value()[source]
class pyexcel.iterators.HBRTLIterator(reader)[source]

Bases: pyexcel.iterators.HTLBRIterator

Iterate horizontally from bottom right to top left

exit_condition()[source]
get_next_value()[source]
move_cursor()[source]
class pyexcel.iterators.HTLBRIterator(reader)[source]

Iterate horizontally from top left to bottom right

default iterator for Reader class

exit_condition()[source]

Determine if all data have been iterated

get_next_value()[source]

Get next value

move_cursor()[source]

move internal cursor

next()[source]

determine next value

this function is further divided into small functions so that other kind of iterators can easily change its behavior

next_cell_position()[source]

Determine next cell position

class pyexcel.iterators.HTRBLIterator(reader)[source]

Horizontal Top Right to Bottom Left Iterator

Iterate horizontally from top right to bottom left <<S <<< E<<

exit_condition()[source]
get_next_value()[source]
next()[source]
class pyexcel.iterators.RowIterator(reader)[source]

Iterate data row by row from top to bottom

next()[source]
class pyexcel.iterators.RowReverseIterator(reader)[source]

Iterate data row by row from bottom to top

next()[source]
class pyexcel.iterators.SeriesColumnIterator(reader)[source]

Column Iterator

next()[source]
class pyexcel.iterators.VBLTRIterator(reader)[source]

Bases: pyexcel.iterators.HTRBLIterator

Vertical Bottom Left to Top Right Iterator

Iterate vertically from bottom left to top right ^^E ^^^ S^^ ->

exit_condition()[source]
get_next_value()[source]
class pyexcel.iterators.VBRTLIterator(reader)[source]

Bases: pyexcel.iterators.HBRTLIterator

Iterate vertically from bottom right to top left

next_cell_position()[source]
class pyexcel.iterators.VTLBRIterator(reader)[source]

Bases: pyexcel.iterators.HTLBRIterator

Iterate vertically from top left to bottom right

next_cell_position()[source]

this function controls the iterator’s path

class pyexcel.iterators.VTRBLIterator(reader)[source]

Bases: pyexcel.iterators.HTRBLIterator

Vertical Top Right to Bottom Left Iterator

Iterate horizontally from top left to bottom right ||S ||| E||

get_next_value()[source]