Skip to content

utils functions policy #521

Closed Answered by pacrob
acul71 asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, that's confusing. Some things in libp2p/tools are actually for testing only and should be move to the tests folder, like factories is being done here in #512 .

In general, a util should be added at the level it is needed, so to either libp2p/io/utils.py or libp2p/utils.py from your example.

The only tool that I know should stay in libp2p/tools is async_service. It was actually copied over from the unmaintained https://github.com/ethereum/async-service , and should be kept separate from other libp2p code.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by acul71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants