Skip to content

Methods that operate on files should be able to handle a Path too #146

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

The methods

  • Table.from_csv_file
  • Table.to_csv_file
  • Table.from_json_file
  • Table.to_json_file
  • Image.from_jpeg_file
  • Image.to_jpeg_file
  • Image.from_png_file
  • Image.to_png_file

expect that the path argument is given as a string.

Desired solution

Allow path to also be a pathlib.Path. Its type should be str | Path.

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

If #138 and #139 are done before this issue, they should also be adjusted accordingly.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions