pg.io.open_sequence¶
Accessible via pg.io.open_sequence.
- open_sequence(path, mode='r', *, perms=436, serializer=None, deserializer=None, make_dirs_if_not_exist=True)[source]¶
Open sequence for reading or writing.
- Return type:
- Parameters:
path – The path to the sequence.
mode – The mode of the sequence.
perms – (Optional) The permissions of the sequence.
serializer – (Optional) A serializer function for converting a structured object to a string or bytes.
deserializer – (Optional) A deserializer function for converting a string or bytes to a structured object.
make_dirs_if_not_exist – (Optional) Whether to create the directories if they do not exist. Applicable when opening in write or append mode.
- Returns:
A sequence for reading or writing.