CLI wrapper of rope's module moving functionality
Project description
pymv
CLI wrapper of rope's module moving functionality. Depends on a slightly forked (hacked up) version of Rope - https://github.com/Ridecell/rope.
Usage
usage: pymv [-h] [--dry-run] [--project-root-directory PROJECT_DIR]
source_path destination_path [scoped_global_variable]
Move python files and folders, automatically updating import statements in dependent files.
positional arguments:
source_path
destination_path
scoped_global_variable
Provide a Global variable/class/function name in source file to move to
destination. Allows for greater granularity when moving overscoped modules
that need to be split into 2 (or more) modules
optional arguments:
-h, --help show this help message and exit
--dry-run
--project-root-directory PROJECT_DIR
Root directory of the python project in which the files are being moved.
This defines the scope for which to search for affected import statements.
Install
pip install git+https://github.com/Ridecell/rope pymv
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
pymv-1.4.tar.gz
(3.4 kB
view details)
Built Distribution
pymv-1.4-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file pymv-1.4.tar.gz
.
File metadata
- Download URL: pymv-1.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e6c53e3eb86c3dc9dd8673647dd77ddc1dde15d0c5ce6b922b495aed68b3a72 |
|
MD5 | ffa2007b737c469978c0ed6430b4a9fa |
|
BLAKE2b-256 | 309108b3c5343eb5b34a5df0db52b11f3bfd8fdd6769bccbbc2bcb252e69199c |
File details
Details for the file pymv-1.4-py3-none-any.whl
.
File metadata
- Download URL: pymv-1.4-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 111e26dd27db44cd993725022e259e12ed8fe8738265e9c46a8aa1d4f2ba9e99 |
|
MD5 | d8e7c6119e28dc9258d55967f67212b1 |
|
BLAKE2b-256 | 8439ed14c73d82477396e4f690f99d47efb05bce5e74bdd862ff001107729d45 |