@@ -0,0 +1,711 @@
+%22%22%22%0AConverts a file from one format to another.%0A%0AThis example shows how to write objects to a file.%0A%22%22%22%0A%0Aimport osmium as o%0A%0Aimport sys%0A%0Aclass Convert(o.SimpleHandler):%0A%0A    def __init__(self, writer):%0A        o.SimpleHandler.__init__(self)%0A        self.writer = writer%0A%0A    def node(self, n):%0A        self.writer.add_node(n)%0A%0A    def way(self, w):%0A        self.writer.add_way(w)%0A%0A    def relation(self, r):%0A        self.writer.add_relation(r)%0A%0Aif __name__ == '__main__':%0A    if len(sys.argv) != 3:%0A        print(%22Usage: python convert.py %3Cinfile%3E %3Coutfile%3E%22)%0A        sys.exit(-1)%0A%0A    writer = o.SimpleWriter(sys.argv%5B2%5D)%0A    handler = Convert(writer)%0A%0A    handler.apply_file(sys.argv%5B1%5D)%0A%0A    writer.close()%0A%0A

add simple convert example