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.2.tar.gz
(3.8 kB
view details)
Built Distribution
pymv-1.2-py3-none-any.whl
(4.3 kB
view details)
File details
Details for the file pymv-1.2.tar.gz
.
File metadata
- Download URL: pymv-1.2.tar.gz
- Upload date:
- Size: 3.8 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 | 56a4680567aa5e64d6a1c41ef465a7172aeb72818b2c7477510cf70e8fa49bc0 |
|
MD5 | d37b5a72c5ece9c2658094f31bb6e30b |
|
BLAKE2b-256 | ebb3e306091f9a19c4628ceca3759b82882d08b5273ce5a79a7c46804f20a087 |
File details
Details for the file pymv-1.2-py3-none-any.whl
.
File metadata
- Download URL: pymv-1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 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 | 808c16e56f7b68876119b8868babcb5b1616519a0b987a12837895dc67030109 |
|
MD5 | df9a47ff0c30bda196b74190f7200e96 |
|
BLAKE2b-256 | 5e137fa069c27c4862fa0b2dfeffa995340e67aad983237a3d5e2d7bd58f5846 |