Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unified file handler for reading / writing #9

Open
jacanchaplais opened this issue Jan 18, 2022 · 2 comments
Open

Add unified file handler for reading / writing #9

jacanchaplais opened this issue Jan 18, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@jacanchaplais
Copy link
Owner

Combine or refactor reader and writer classes into a factory class, which is passed a mode, so can be used for reading or writing.

@jacanchaplais jacanchaplais added the enhancement New feature or request label Jan 18, 2022
@jacanchaplais
Copy link
Owner Author

This interface could also introduce usage of attribute assignment syntactic sugar to replace explicit methods for storing data to disk. Explore whether this is possible using set attribute dataclass hooks.

@jacanchaplais
Copy link
Owner Author

I am thinking there should be a dramatic simplification of the package. No distinction between reading and writing classes, reading should be allowed during writing, etc.

For the moment, I have added a context manager called open_file() which takes mode as a parameter to provide the relevant interface. It additionally takes an optional parameter process, to jump straight to accessing the process groups in the files.

@jacanchaplais jacanchaplais self-assigned this Aug 16, 2023
@jacanchaplais jacanchaplais added this to the 0.2.0 milestone Aug 16, 2023
jacanchaplais added a commit that referenced this issue Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant