Go through a directory recursively, find and replace specified values in file names and file data.
Project description
# 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)
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for findreplace-2018.6.24.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d5b5414ff0206e8b49ed7f80640097d890df969bde1a36cc25405c636978335 |
|
MD5 | 7d1af1394ab44c373bb314975510ff0b |
|
BLAKE2b-256 | 28a0aa8377f7eba6b5f8ee1a6fc04b83185f279acc32ebfecc7dd9c6dac9fbbc |