Skip to main content

No project description provided

Project description

replace-text

Links

PyPI Package Page
GitHub Repo

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


Download files

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

Source Distribution

replace_text-1.1.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

replace_text-1.1.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

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

Hashes for replace_text-1.1.0.tar.gz
Algorithm Hash digest
SHA256 dd69f8a8b2dc855a4d1fe1ee99864b1e001dbb2617cf255242eb97e9d8295fde
MD5 746ebcf5157ba337bbbb3956a7158db9
BLAKE2b-256 0efc9a62f566fd4750d3b37931c46a37fb5cf4e83db848860bcc89318eb8f5b9

See more details on using hashes here.

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

Hashes for replace_text-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf984f0121cd9c52fc2b536fff982181460afbf4c65efbcb4f33f021987a2232
MD5 07f47f02b510c28b36850120b84be04c
BLAKE2b-256 dbba3ecabc8e7839eea90c6c4138f9d0ea55cfcc3acf0cf6ee8543a9d6e813af

See more details on using hashes here.

Supported by

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