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

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

zefactor-2.0.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file zefactor-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: zefactor-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for zefactor-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5927003a4289037bd36a896a26a92afd96de0f4a58566682182c57c11a765c4
MD5 a7ebfd1255ffd9f4b5040925a5ece523
BLAKE2b-256 99ed1ad26f3aff8b6b8e9e5d0e31a1b522829f9d7968dddb63c84decc04dff93

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