File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # replacetext
1+ # textswap
22
33** Bulk text replacement in files using dictionary mappings.**
44
5- [ ![ PyPI version] ( https://badge.fury.io/py/replacetext .svg )] ( https://badge.fury.io/py/replacetext )
5+ [ ![ PyPI version] ( https://badge.fury.io/py/textswap .svg )] ( https://badge.fury.io/py/textswap )
66[ ![ License: GPL v3] ( https://img.shields.io/badge/License-GPLv3-blue.svg )] ( https://www.gnu.org/licenses/gpl-3.0 )
77
88Replace text across multiple files using find/replace dictionaries. Supports bidirectional replacement (keys-to-values or values-to-keys).
99
1010## Installation
1111
1212``` bash
13- pip install replacetext
13+ pip install textswap
1414```
1515
1616## Quick Start
@@ -34,23 +34,23 @@ pip install replacetext
34342 . Run:
3535
3636``` bash
37- replacetext -f ./my_folder -d 1
37+ textswap -f ./my_folder -d 1
3838```
3939
4040## Usage
4141
4242``` bash
4343# Interactive mode
44- replacetext
44+ textswap
4545
4646# With options
47- replacetext --folder ./src --direction 1 --config my_config.json
47+ textswap --folder ./src --direction 1 --config my_config.json
4848
4949# Dry run (preview changes)
50- replacetext -f ./src -d 1 --dry-run
50+ textswap -f ./src -d 1 --dry-run
5151
5252# Reverse direction (values-to-keys)
53- replacetext -f ./src -d 2
53+ textswap -f ./src -d 2
5454```
5555
5656## Options
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ requires = ["hatchling"]
33build-backend = " hatchling.build"
44
55[project ]
6- name = " replacetext "
6+ name = " textswap "
77version = " 0.1.0"
88description = " Bulk text replacement in files using dictionary mappings"
99readme = " README.md"
@@ -39,7 +39,7 @@ dev = [
3939]
4040
4141[project .scripts ]
42- replacetext = " replace_text.replace_text:replace_text"
42+ textswap = " replace_text.replace_text:replace_text"
4343
4444[project .urls ]
4545Homepage = " https://github.com/cainky/ReplaceText"
Original file line number Diff line number Diff line change 1- """replacetext - Bulk text replacement in files using dictionary mappings."""
1+ """textswap - Bulk text replacement in files using dictionary mappings."""
22
33__version__ = "0.1.0"
Original file line number Diff line number Diff line change 77import click
88
99
10- @click .command (name = "replacetext " )
10+ @click .command (name = "textswap " )
1111@click .option (
1212 "--config" ,
1313 "-c" ,
You can’t perform that action at this time.
0 commit comments