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 fromfireback toargparse
Release files for rebrand 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| rebrand-0.0.12.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rebrand-0.0.12-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size:10.3 kB
Release files / rebrand-0.0.12.tar.gz
| Download URL | rebrand-0.0.12.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4b9884796f1962ca10ba0e18ac0394efee9d03588c4d7315fc3ef6cdd2721f7b
|
|
BLAKE2b-256 checksum How to use checksums |
e9008008fd2e6b2066589059584ccd584ea625dd593e5d841e79aad135d409f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0a0
|
Release files / rebrand-0.0.12-py2.py3-none-any.whl
| Download URL | rebrand-0.0.12-py2.py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
60d7455600f35927d739e14e488172cb4e22fd9f964593d2ed058c98975fda49
|
|
BLAKE2b-256 checksum How to use checksums |
595bc47f3df51cfdb1e27048f107ee6e64ed4f19645dae2edd8104980f4996f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0a0
|