Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

findreplace-2018.6.24.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

findreplace-2018.6.24.1-py2.py3-none-any.whl (3.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file findreplace-2018.6.24.1.tar.gz.

File metadata

File hashes

Hashes for findreplace-2018.6.24.1.tar.gz
Algorithm Hash digest
SHA256 cc006107bcb1873f3e3eb3da9fc2ee5672962268f61d337460c794c1e873133a
MD5 ea40e290e2c1d9b16bb14bacbcf57f2a
BLAKE2b-256 f355bde01e4239be869d8cc22916f249084a6bcb0640491a9d1873a9514e6931

See more details on using hashes here.

File details

Details for the file findreplace-2018.6.24.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for findreplace-2018.6.24.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3d5b5414ff0206e8b49ed7f80640097d890df969bde1a36cc25405c636978335
MD5 7d1af1394ab44c373bb314975510ff0b
BLAKE2b-256 28a0aa8377f7eba6b5f8ee1a6fc04b83185f279acc32ebfecc7dd9c6dac9fbbc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page