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] [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

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.0.0.tar.gz (14.5 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.0.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file replace-text-1.0.0.tar.gz.

File metadata

  • Download URL: replace-text-1.0.0.tar.gz
  • Upload date:
  • Size: 14.5 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.0.0.tar.gz
Algorithm Hash digest
SHA256 d8dfba2750e265991af4bdc9889fc8bef4bab7ce1c068e0e2c09b81658eb9050
MD5 d4f065ec23ddc576384214d2b05d02f7
BLAKE2b-256 eaf79f5a3d6f80cfbd1ddd8c2b8e6bb01a0463409e782050979f53dc13f7b461

See more details on using hashes here.

File details

Details for the file replace_text-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: replace_text-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 764102d64bfb5fbddefc9201683a78d8c01300b9131d690df7ea87745128181d
MD5 b349a919d016324fa02db333e6cef6dd
BLAKE2b-256 b092eebe12ca5dc52d72dd3edc2e13276fc438f1c378ac02378d25f241e8652a

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