Skip to main content

mass_replace

PyPI version PyPi Build Status Coverage Status Code style: black

Use case

mass_replace "Walkthrough" through a specified root_folder and perform find and replace operations on every file of the specified type.

  • If Python 3 is installed on your system it can be run as mass_replace.py Python script
  • Can be run as a standalone Window Executable (.exe)

⚠️ WARNING ⚠️

EVERY FILE OF THE SPECIFIED TYPE NESTED UNDERNEATH THE root_folder WILL BE SUBJECT TO FIND AND REPLACE OPERATIONS


Installation and usage

To run as a standalone .exe

  1. Download mass_replace_windows_executable.zip
  2. Extract zip file.
  3. Set configuration settings
    • from mass_replace/ open config.yaml with any text editor.
    • set filetypes to control which filetypes will be "operated on".
    • set replacement_paris to control the find and replace operations to be performed on each file.
    • set 'root_folder' to set the parent folder under which the operations will be performed.
  4. Run mass_replace.exe
    • Double click mass_replace.exe
    • or run from command line/powershell ✔️
# mass_replace config file
root_folder: C:\Users\username\Documents\docs_go_here_folder
filetypes:
  - csv
  - xml
  - txt
replacement_pairs:
  old_text1: new_text1
  old_text2: new_text2
  puff_daddy: diddy

Ease of Use suggestions

To make the use of mass_replace.exe easier. Create shortcuts of mass_replace.exe and config.yaml and place them somewhere easy to get to. Do not move the actual files or the application will not work.

image

Metadata

Release files for mass-replace 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mass-replace 0.0.3
File Size Uploaded Provenance Actions
mass_replace-0.0.3.tar.gz 4.8 kB Without provenance Details for mass_replace-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mass-replace 0.0.3
File Interpreter ABI Platform Actions
mass_replace-0.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for mass_replace-0.0.3-py2.py3-none-any.whl

Total release size: 10.4 kB

Release files / mass_replace-0.0.3.tar.gz

Download URL mass_replace-0.0.3.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5998b2458d7c28a8f72946a6ac17424e6a75fe6d30d12af477a8f8e008913245
BLAKE2b-256 checksum
How to use checksums
7ea21bbfa655c01ca642569eebd118a75a8dc2841ec11435315f96783b89a157
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

Release files / mass_replace-0.0.3-py2.py3-none-any.whl

Download URL mass_replace-0.0.3-py2.py3-none-any.whl
Size 5.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b30e32115732fbfde48d960ccfff61c41fd3f8f82ba5d1d270ddacf5241acfa9
BLAKE2b-256 checksum
How to use checksums
410ed8abf27a9e10ac56a7a5c6396534f14a7f34ac8d88ce5b4019366058f114
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

Security for mass-replace 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page