Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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