Skip to content

Split io.py into multiple files #448

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

Merged
merged 1 commit into from
Apr 26, 2023
Merged

Conversation

eriknw
Copy link
Member

@eriknw eriknw commented Apr 26, 2023

Splitting io.py into separate files was brought up in #435 and #436, which I think is a good idea.

I kept the submodules hidden in this PR (such as _networkx.py), because I'm not sure I like the current names. Also, I think tab-completing gb.io.<TAB> is good enough for users to find the functions they want. Since each submodule probably won't have that many functions--all currently have two--I think it would detract if we had e.g. networkx in addition to from_networkx and to_networkx in gb.io.

Linting tools actually made this pretty easy to do, b/c they clean up imports I don't use and tell me which functions I need to import.

This PR does not yet use automodule as suggested in #436. I think we should still consider doing so.

@eriknw eriknw added hygiene Improve code quality and reduce maintenance overhead io Data input, output, and conversions labels Apr 26, 2023
@coveralls
Copy link

Coverage Status

Coverage: 99.802% (+5.7%) from 94.056% when pulling 8a9239b on eriknw:split_io into 1ed40ef on python-graphblas:main.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hygiene Improve code quality and reduce maintenance overhead io Data input, output, and conversions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants