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.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e7ea6562e953bdf3d26a993ea4825e2c67bd1ca05706f38a2c20b9a4a8cf288 |
|
MD5 | 61630872f632b1dafc34be0a8235d525 |
|
BLAKE2b-256 | 4afd05ee48609a66797f1e21d7e08f0563a2900b163649edb789ef90b8538978 |