Self tracking your online life!
Project description
rebrand
Refactor your software using programming language independent string replacement.
Helps by renaming directories, filenames and file contents in a case-preserving manner.
How does it work
Imagine we want to rename a library called SomeThing
to AnotherName
.
It will first normalize "SomeThing
" to ["some", "thing"]
and "AnotherName
" to ["another", "name"]
, and build patterns on this.
Then, when matching and replacing, it will memorize the casing pattern and separator on e.g. "Some-thing"
to replace it with the same convention, like so: "Another-name"
.
This works for:
- filenames
- directories
- file contents
Binaries are just copied, and warnings are currently shown for png and jpg files containing logo or icon.
Installation
pip install rebrand
Usage
rebrand <OLD> <NEW> <LOCATION> (optional: <DESTINATION>)
# e.g. rebrand ancient modern .
TODO:
Implement radically faster matching- More options (such as disabling image warnings, verbosity, ignore patterns)
Switch fromfire
back toargparse
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rebrand-0.0.12-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60d7455600f35927d739e14e488172cb4e22fd9f964593d2ed058c98975fda49 |
|
MD5 | 3b5c0225537be815a574c692a93deef6 |
|
BLAKE2b-256 | 595bc47f3df51cfdb1e27048f107ee6e64ed4f19645dae2edd8104980f4996f7 |