Walkthrough directories and find and replace txt on select filetypes.
Project description
# mass_replace
branch | Travis CI | Coveralls
-------|-----------|----------
`master` | [![Build Status](https://travis-ci.org/Kilo59/mass_replace.svg?branch=master)](https://travis-ci.org/Kilo59/mass_replace) | [![Coverage Status](https://coveralls.io/repos/github/Kilo59/mass_replace/badge.svg?branch=master)](https://coveralls.io/github/Kilo59/mass_replace?branch=master)
`dev` | [![Build Status](https://travis-ci.org/Kilo59/mass_replace.svg?branch=dev)](https://travis-ci.org/Kilo59/mass_replace) | [![Coverage Status](https://coveralls.io/repos/github/Kilo59/mass_replace/badge.svg?branch=dev)](https://coveralls.io/github/Kilo59/mass_replace?branch=dev)
## Use case
`mass_replace` "Walkthrough" through a specified `root_folder` and perform find and replace operations on every file of the specified type.
* If `Python 3` is installed on your system it can be run as `mass_replace.py` Python script
* Can be run as a standalone Window Executable (`.exe`)
--------------------------------------------
## ⚠️ **WARNING** ⚠️
EVERY FILE OF THE SPECIFIED TYPE NESTED UNDERNEATH THE `root_folder` WILL BE SUBJECT TO FIND AND REPLACE OPERATIONS
------------------------------------------------
## Installation and usage
### To run as a standalone `.exe`
1. Download `mass_replace_windows_executable.zip`
2. Extract zip file.
3. Set configuration settings
- from `mass_replace/` open `config.yaml` with any text editor.
- set `filetypes` to control which filetypes will be "operated on".
- set `replacement_paris` to control the find and replace operations to be performed on each file.
- set 'root_folder' to set the parent folder under which the operations will be performed.
4. Run `mass_replace.exe`
- Double click `mass_replace.exe`
- or run from command line/powershell ✔️
```yaml
# mass_replace config file
root_folder: C:\Users\username\Documents\docs_go_here_folder
filetypes:
- csv
- xml
- txt
replacement_pairs:
old_text1: new_text1
old_text2: new_text2
puff_daddy: diddy
```
### Ease of Use suggestions
To make the use of `mass_replace.exe` easier.
Create shortcuts of `mass_replace.exe` and `config.yaml` and place them somewhere easy to get to.
Do not move the actual files or the application will not work.
![image](https://user-images.githubusercontent.com/13108583/39159212-5f284ca0-4732-11e8-8014-dbedd0f349c0.png)
branch | Travis CI | Coveralls
-------|-----------|----------
`master` | [![Build Status](https://travis-ci.org/Kilo59/mass_replace.svg?branch=master)](https://travis-ci.org/Kilo59/mass_replace) | [![Coverage Status](https://coveralls.io/repos/github/Kilo59/mass_replace/badge.svg?branch=master)](https://coveralls.io/github/Kilo59/mass_replace?branch=master)
`dev` | [![Build Status](https://travis-ci.org/Kilo59/mass_replace.svg?branch=dev)](https://travis-ci.org/Kilo59/mass_replace) | [![Coverage Status](https://coveralls.io/repos/github/Kilo59/mass_replace/badge.svg?branch=dev)](https://coveralls.io/github/Kilo59/mass_replace?branch=dev)
## Use case
`mass_replace` "Walkthrough" through a specified `root_folder` and perform find and replace operations on every file of the specified type.
* If `Python 3` is installed on your system it can be run as `mass_replace.py` Python script
* Can be run as a standalone Window Executable (`.exe`)
--------------------------------------------
## ⚠️ **WARNING** ⚠️
EVERY FILE OF THE SPECIFIED TYPE NESTED UNDERNEATH THE `root_folder` WILL BE SUBJECT TO FIND AND REPLACE OPERATIONS
------------------------------------------------
## Installation and usage
### To run as a standalone `.exe`
1. Download `mass_replace_windows_executable.zip`
2. Extract zip file.
3. Set configuration settings
- from `mass_replace/` open `config.yaml` with any text editor.
- set `filetypes` to control which filetypes will be "operated on".
- set `replacement_paris` to control the find and replace operations to be performed on each file.
- set 'root_folder' to set the parent folder under which the operations will be performed.
4. Run `mass_replace.exe`
- Double click `mass_replace.exe`
- or run from command line/powershell ✔️
```yaml
# mass_replace config file
root_folder: C:\Users\username\Documents\docs_go_here_folder
filetypes:
- csv
- xml
- txt
replacement_pairs:
old_text1: new_text1
old_text2: new_text2
puff_daddy: diddy
```
### Ease of Use suggestions
To make the use of `mass_replace.exe` easier.
Create shortcuts of `mass_replace.exe` and `config.yaml` and place them somewhere easy to get to.
Do not move the actual files or the application will not work.
![image](https://user-images.githubusercontent.com/13108583/39159212-5f284ca0-4732-11e8-8014-dbedd0f349c0.png)
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
mass_replace-0.0.2.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for mass_replace-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00f1e3d6ee6e88084a9e1327e7d10c2c40b5101cfea8f98a6484877100d1c8a0 |
|
MD5 | bb4361c28dba8bd7a8e2656daaffb920 |
|
BLAKE2b-256 | 3abb9d647c6f386472dbf5fb6e3d07f81fefccd30d02b35b9349a3e649b9869f |