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.3.tar.gz
(3.4 kB
view details)
Built Distribution
pymv-1.3-py3-none-any.whl
(4.3 kB
view details)
File details
Details for the file pymv-1.3.tar.gz
.
File metadata
- Download URL: pymv-1.3.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 | 21924d66080e455ffb829889258002c4e203ab0aa0ea08fabee9ac62c2d3063f |
|
MD5 | 9cd855fa40a50551cf686bb2cf3b01ea |
|
BLAKE2b-256 | b8d5bac408a5feae7563f01c8a5b60e1a3f3d51e40cf7219e3739111d7c507ef |
File details
Details for the file pymv-1.3-py3-none-any.whl
.
File metadata
- Download URL: pymv-1.3-py3-none-any.whl
- Upload date:
- Size: 4.3 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 | c7aaf6a81eaf256a72bfbb84e922c3b3394efc718064fa37391ec128d0c9d474 |
|
MD5 | 64877dbe2673a675a5ef1782a2727a2e |
|
BLAKE2b-256 | b3479da0070302398a395cfdd02580ccd61c2ff528ca5bf01023d019931dab1e |