msto / dataclass_io

Read and write dataclasses.
MIT License
1 stars 0 forks source link

refactor: Instantiate reader/writer from file handle instead of path #16

Closed msto closed 1 month ago

msto commented 3 months ago

Closes #15

This PR refactors the DataclassReader and DataclassWriter constructors to accept an open file handle instead of a Path. The PR also adds an .open() alternative constructor to support the previous functionality (constructing from Path)