8.2/10 (66 أصوات )




  • مرات التنزيل: 203
  • متطلبات التشغيل:
  • الحجم:
  • الترخيص:
  • الاصدار : 0.51
  • اضيف في: 0000-00-00 00:00:00
  • اخر تحديث: 14/05/2012
  • الموقع علي الانترنت:






Description




Python Mass Editor is a Python module that implements a python mass editor class to process multiple files using Python code. The modification(s) is (are) shown on stdout as a diff output. One can then modify the target file(s) in place with the -w/--write option.UsageYou probably will need to know the basics of the Python re module (regular expressions).usage: massedit.py [-h] [-v] [-w] [-V] [-e EXPRESSIONS] file [file ...]Python based mass file editorpositional arguments: file file to process with the expression. Modified in place.optional arguments: -h, --help show this help message and exit -v, --version show program's version number and exit -w, --write modify target file(s) in place -V, --verbose increases log verbosity (can be specified multiple times) -e EXPRESSIONS, --expression EXPRESSIONS Python expressions to be applied on all files. Use the line variable to reference the current line.example: massedit.py -e "re.sub('failIf', 'assertFalse', line)" test*.pyor if massedit is installed as a package (from pypi for instance) :python -mmassedit -e "re.sub('assertEquals', 'assertEqual', line)" test_pre_python_33.pyInstallationDownload massedit.py from http://github.com/elmotec/massedit or :pip install masseditProduct's homepage Requirements:

· Python









التعليقات علي Python Mass Editor 0.51
اضافة تعليق

تعليقات الفيسبوك

تعليقات الموقع