io - Data In- and Output

This module exposes the generic file reader.


A class that reads OSM data from a file.

close((Reader)self) → None :

Close any open file handles. The reader is unusable afterwards.

eof((Reader)self) → bool :

Check if the end of file has been reached.

header((Reader)self) → Header :

Return the header with file information, see


File header with global information about the file.


True if there may be more than one version of the same object in the file. This happens normally only in history files.