Giter VIP home page Giter VIP logo

mass_replace's Introduction

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

Install with pip

pip install mass-replace

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

mass_replace's People

Contributors

kilo59 avatar

Watchers

 avatar

Forkers

lgtm-migrator

mass_replace's Issues

make package more usable

I've mostly been using this package to test various python tools such as black, pre-commit, flit etc.
As such I have ignored the core function of the package itself.

  • add cli

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.