Skip to content

Commit 52001bd

Browse files
committed
Rename package to textswap
1 parent 1d4b74a commit 52001bd

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
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

88
Replace 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
3434
2. 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

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "replacetext"
6+
name = "textswap"
77
version = "0.1.0"
88
description = "Bulk text replacement in files using dictionary mappings"
99
readme = "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]
4545
Homepage = "https://github.com/cainky/ReplaceText"

replace_text/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
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"

replace_text/replace_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import click
88

99

10-
@click.command(name="replacetext")
10+
@click.command(name="textswap")
1111
@click.option(
1212
"--config",
1313
"-c",

0 commit comments

Comments
 (0)