findreplace-2018.6.24.1
توضیحات
Go through a directory recursively, find and replace specified values in file names and file data.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | findreplace-2018.6.24.1 |
| نام | findreplace |
| نسخه کتابخانه | 2018.6.24.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Dylan Stein |
| ایمیل نویسنده | djstein@ncsu.edu |
| آدرس صفحه اصلی | https://github.com/djstein/findreplace |
| آدرس اینترنتی | https://pypi.org/project/findreplace/ |
| مجوز | - |
# findreplace
Go through a directory recursively, find and replace specified values in file names and file data.
```python
pipenv install findreplace
```
example
```python
findreplace replace ~/git/findreplace/testdir '{{example}}' main
from findreplace.core import findreplace
base_dir='~/git/findreplace/testdir'
find_replace_dict = {'{{example}}': 'main', '{{dog}}': 'test'}
findreplace(base_dir=base_dir, find_replace_dict=find_replace_dict)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | click |
| - | requests |
نحوه نصب
نصب پکیج whl findreplace-2018.6.24.1:
pip install findreplace-2018.6.24.1.whl
نصب پکیج tar.gz findreplace-2018.6.24.1:
pip install findreplace-2018.6.24.1.tar.gz