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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5927003a4289037bd36a896a26a92afd96de0f4a58566682182c57c11a765c4
|
|
| MD5 |
a7ebfd1255ffd9f4b5040925a5ece523
|
|
| BLAKE2b-256 |
99ed1ad26f3aff8b6b8e9e5d0e31a1b522829f9d7968dddb63c84decc04dff93
|