Skip to main content

Flexible find and replace for refactoring projects.

Project description

Python Zefactor

zefactor is library for renaming tokens in a project.

Zefactor features

  • Find and replace tokens in a directory.
  • Detect similar tokens in alternate case and replace with proper casing
  • Pure python

Installation

pip install zefactor

Guided Usage

Run zefactor without any arguments and it will provide a set of guided prompts to refactor a project.

$ zefactor

Getting Started

The guided mode can be skipped with the -y option. A simple example is below:

# Replace all text 'red' with 'blue'.
# This will automtically include replacing 'RED' with 'BLUE' and 'Red' with 'Blue'
$ zefactor -f red -r blue -y

# Replace all text 'red rocket' with 'blue ship'
# This will automatically include replacing 'RedRocket' with 'BlueShip', 'RED ROCKET' with 'BLUE SHIP' and many alternatives
$ zefactor -f red -f rocket -r blue -r ship

Usage

The Zefactor CLI helps refactor projects. It will find and replace text and all variations of casing of that text.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

zefactor-0.0.4-py3-none-any.whl (18.3 kB view hashes)

Uploaded Python 3

Supported by

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