# Module: tf.compat.v1.python_io

<br />

|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/compat/v1/python_io) |

Python functions for directly manipulating TFRecord-formatted files.

## Classes

[`class TFRecordCompressionType`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/io/TFRecordCompressionType): The type of compression for the record.

[`class TFRecordOptions`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/io/TFRecordOptions): Options used for manipulating TFRecord files.

[`class TFRecordWriter`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/io/TFRecordWriter): A class to write records to a TFRecords file.

## Functions

[`tf_record_iterator(...)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/io/tf_record_iterator): An iterator that read the records from a TFRecords file. (deprecated)