Support Python's Pathlib for IO
Is your feature request related to a problem? Please describe.
This library already supports reading and writing from/to file paths and IO streams (BinaryIO). Until now, Python's Pathlib isn't supported. File paths must be given as plain strings str, Path objects are not supported.
Describe the solution you'd like
It would be great if all IO functions would accept Path objects as input as well. This seems to affect the following functions:
Example:
# Old
def to_qvd(self, path: str, options: "QvdFileWriterOptions" = None):
"""
Persists the data table to a QVD file.
:param path: The path to the QVD file.
"""
...
# New
def to_qvd(self, path: Union[str, Path], options: "QvdFileWriterOptions" = None):
"""
Persists the data table to a QVD file.
:param path: The path to the QVD file.
"""
...
Describe alternatives you've considered
An alternative may be to transform the Path object to string str(path).
hi, i would like to work on this, please assign it to me
Sure, thank you for your effort.
Solved thanks to @blondedman.