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.0.tar.gz
(1.9 kB
view details)
Built Distribution
pymv-1.0-py3-none-any.whl
(1.8 kB
view details)
File details
Details for the file pymv-1.0.tar.gz
.
File metadata
- Download URL: pymv-1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aabec12550a50eaa777b8001a74dfe6c9b877fb39eb321194581825202c7187 |
|
MD5 | bf00f7ce1a23f0f2ea2d59adb9d23d58 |
|
BLAKE2b-256 | b72fea0d543ee48769a141ed86c796870bcd0c1e2e076a15853ba3eddf504691 |
File details
Details for the file pymv-1.0-py3-none-any.whl
.
File metadata
- Download URL: pymv-1.0-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1859129e58b6e0d8ec927bb124baa32294871ed0e509a0c8aaa6a7b4f4e400d |
|
MD5 | 46c0ed980222b87e0204bc3106a9bb5c |
|
BLAKE2b-256 | 5e508a7fbaf4d209c3a77bb641720fb58f41d6317959524d62ca16596b045d96 |