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.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a45e7be89c00be9df829cc017ca203c88e3df8b45835e582aa19028772d0bf1f |
|
MD5 | d83c19519aeeb3bc61774584f4483f3e |
|
BLAKE2b-256 | 93f435b94dbfff3e238094419609fe07331a6e275f4a0942d87a79f03ba3fcb5 |