Tree
The goal of the tree is to find all of the files that contains a module. When you parse the commune folder, you want to map all of the object's imports to a name. This forms a global tree of modules, where the key is the short form and the value is the path to the module class.
do access the tree
c tree
{
'repo': '/Users/saltoshi/commune/modules/repo/repo.py',
'ray': '/Users/saltoshi/commune/modules/ray/ray.py',
'base': '/Users/saltoshi/commune/modules/base/base.py',
'loop': '/Users/saltoshi/commune/modules/loop/loop.py',
'trainer': '/Users/saltoshi/commune/modules/trainer/trainer.py',
'git': '/Users/saltoshi/commune/modules/git/git.py',
'tool.get_best_apy':
'/Users/saltoshi/commune/modules/tool/get_best_apy.py',
'tool.registry':
'/Users/saltoshi/commune/modules/tool/registry.py',
'tool.swap': '/Users/saltoshi/commune/modules/tool/swap.py',
'tool.compare_token_price':
'/Users/saltoshi/commune/modules/tool/compare_token_price.py',
'tool.read_file':
'/Users/saltoshi/commune/modules/tool/read_file.py',
'tool.write_file':
'/Users/saltoshi/commune/modules/tool/write_file.py',
'tool': '/Users/saltoshi/commune/modules/tool/tool.py',
'tool.web': '/Users/saltoshi/commune/modules/tool/web/web.py',
'tool.search':
'/Users/saltoshi/commune/modules/tool/search/tool_search.py',
'tool.defi.get_best_apy':
'/Users/saltoshi/commune/modules/tool/defi/get_best_apy.py',
'tool.defi.swap':
'/Users/saltoshi/commune/modules/tool/defi/swap.py',
'tool.defi.compare_token_price':
'/Users/saltoshi/commune/modules/tool/defi/compare_token_price.py',
'tool.defi.read_file':
'/Users/saltoshi/commune/modules/tool/defi/read_file.py',
'tool.defi.write_file':
'/Users/saltoshi/commune/modules/tool/defi/write_file.py',
'tool.defi.tool':
'/Users/saltoshi/commune/modules/tool/defi/tool.py',
'tool.defi.inch':
'/Users/saltoshi/commune/modules/tool/defi/inch/inch.py',
'tool.defi.inch.balances':
'/Users/saltoshi/commune/modules/tool/defi/inch/balances.py',
'tool.defi.inch.gasprice':
'/Users/saltoshi/commune/modules/tool/defi/inch/gasprice.py',
'tool.defi.inch.prices':
'/Users/saltoshi/commune/modules/tool/defi/inch/prices.py',
'tool.defi.defillama.aave':
'/Users/saltoshi/commune/modules/tool/defi/defillama/aave.py',
'tool.defi.defillama':
'/Users/saltoshi/commune/modules/tool/defi/defillama/defillama.py',
'tool.defi.defillama.rocketpool':
'/Users/saltoshi/commune/modules/tool/defi/defillama/rocketpool.py',
'tool.defi.defillama.lido':
'/Users/saltoshi/commune/modules/tool/defi/defillama/lido.py',
'socket': '/Users/saltoshi/commune/modules/socket/socket.py',
'process': '/Users/saltoshi/commune/modules/process/process.py',
'process.pool': '/Users/saltoshi/commune/modules/process/pool.py',
'process.pipe': '/Users/saltoshi/commune/modules/process/pipe.py',
'pm2': '/Users/saltoshi/commune/modules/pm2/pm2.py',
'miner': '/Users/saltoshi/commune/miner/miner.py',
'router.task': '/Users/saltoshi/commune/modules/router/task.py',
'router.ex': '/Users/saltoshi/commune/modules/router/ex.py',
'router': '/Users/saltoshi/commune/modules/router/router.py',
'router.dashboard':
'/Users/saltoshi/commune/modules/router/dashboard/router_dashboard.py'
,
'subnet': '/Users/saltoshi/commune/subnet/subnet.py',
'subnet.vali': '/Users/saltoshi/commune/subnet/vali.py',
'subnet.miner': '/Users/saltoshi/commune/subnet/miner.py',
'subnet.add.subnet':
'/Users/saltoshi/commune/subnet/add/subnet/subnet.py',
'subnet.add.subnet.vali':
'/Users/saltoshi/commune/subnet/add/subnet/vali.py',
'subnet.add.subnet.miner':
'/Users/saltoshi/commune/subnet/add/subnet/miner.py',
'miner.add': '/Users/saltoshi/commune/miner/add/add.py'
}