gio.OutputStream Base class for implementing streaming input Synopsis gio.OutputStream gobject.GObject clear_pending close cancellableNone close_async callback io_priorityglib.PRIORITY_DEFAULT cancellableNone user_dataNone close_finish result flush cancellableNone flush_async callback io_priorityglib.PRIORITY_DEFAULT cancellableNone user_dataNone flush_finish result has_pending is_closed set_pending splice cancellableNone flagsgio.OUTPUT_STREAM_SPLICE_NONE splice_async source callback flagsgio.OUTPUT_STREAM_SPLICE_NONE io_priorityglib.PRIORITY_DEFAULT cancellableNone user_dataNone splice_finish result write buffer cancellableNone write_async buffer callback io_priorityglib.PRIORITY_DEFAULT cancellableNone user_dataNone write_finish result Ancestry +-- gobject.GObject +-- gio.OutputStream Description gio.OutputStream has functions to write from a stream ( gio.OutputStream.write() ), to close a stream ( gio.OutputStream.close() ) and to flush pending writes ( gio.OutputStream.flush() ). To copy the content of an input stream to an output stream without manually handling the reads and writes, use gio.OutputStream.splice(). All of these functions have async variants too. Methods Unfinished section, you may want to see the relevant C API docs for methods descriptions.