IpeLoad, modify and store file trees | |
Download |
Ipe Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Andre Fillipe O. Silva
- Publisher web site:
- https://github.com/andref/
Ipe Tags
Ipe Description
Ipe is a Python module that loads a directory into a file tree and allows you to modify it using simple tools. When you're done, you can store the tree back to disk.import ipedef remove_pyc_files(item): if item.is_file and item.extension == '.pyc': print('Removing {0}'.format(item.abspath)) item.parent.remove(item)dir = ipe.load_tree('./ipe')ipe.modify(tree = dir, toolbox = )ipe.store_tree(dir, './ipe-clean')TreesIpê trees have two kinds of items: directories and files. Nothing special. The items support a bunch of operations that simplify renaming, reparenting, getting and setting the contents of files, and creating new items.ToolsTools can be any callable object that takes an item — a directory or a file — and performs some operation on it.Product's homepage
Ipe Related Software