No project description provided
Project description
replace-text
Links
Usage
Run replace-text -h or replace-text --help will display the help menu
usage: replace-text [-d] [-h] [-o] [-r] [-v] [target]
positional arguments:
target The target file or directory of files
options:
-d, --developer enables developer console output
-h, --help show this help message and exit
-o , --original-text
the text to be replaced
-r , --replacement-text
the new text to replace the old
-v, --version displays the version number
Contributing
Local Development
For local development, this project requires the setuptools and wheel packages.
You can install these tools using pip with the following script:
pip install setuptools wheel
Build Script
A build shell script is included which executes this command:
python3 setup.py sdist bdist_wheel;
Install Locally
An install shell script is included which executes this command:
pip install dist/replace_text-0.0.1-py3-none-any.whl --force-reinstall;
Testing
The tests/ directory includes one directory and two test files to test replacing text in a whole directory (tests/) or in a single file (test-file.txt). You can also run the following test scripts included in the files of this project:
Test Directory
replace-text tests -o test -r new;
Test File
replace-text tests/test-file.txt -o test -r new;
Submit Issues / Feature Requests
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file replace_text-1.1.0.tar.gz.
File metadata
- Download URL: replace_text-1.1.0.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd69f8a8b2dc855a4d1fe1ee99864b1e001dbb2617cf255242eb97e9d8295fde
|
|
| MD5 |
746ebcf5157ba337bbbb3956a7158db9
|
|
| BLAKE2b-256 |
0efc9a62f566fd4750d3b37931c46a37fb5cf4e83db848860bcc89318eb8f5b9
|
File details
Details for the file replace_text-1.1.0-py3-none-any.whl.
File metadata
- Download URL: replace_text-1.1.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf984f0121cd9c52fc2b536fff982181460afbf4c65efbcb4f33f021987a2232
|
|
| MD5 |
07f47f02b510c28b36850120b84be04c
|
|
| BLAKE2b-256 |
dbba3ecabc8e7839eea90c6c4138f9d0ea55cfcc3acf0cf6ee8543a9d6e813af
|