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.19.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c4e4332de6adf0e20261b140f5db3ee5f443a78bbeb9b9768113c0e7623c881 |
|
MD5 | c1a981b831a626aef102befa51c841e4 |
|
BLAKE2b-256 | 11756c3fe7fdc0fcae206071bfee0e680e545c0350eda0548f6e9e126f716854 |