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.1.tar.gz
(3.8 kB
view details)
Built Distribution
pymv-1.1-py3-none-any.whl
(4.3 kB
view details)
File details
Details for the file pymv-1.1.tar.gz
.
File metadata
- Download URL: pymv-1.1.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 | e1ae7ebc7f2f5ee0141182d54e54c6ca9ebb01505eac11884ea53b645c220d69 |
|
MD5 | 51e3ea2e67775b3b430ae88c689479a3 |
|
BLAKE2b-256 | de764aa245c83f30072aec5a6363728e519f6cc743d8b664cd0db4ffb67b1c72 |
File details
Details for the file pymv-1.1-py3-none-any.whl
.
File metadata
- Download URL: pymv-1.1-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 | cabb0b9552a291da283a30a87f770327f59b5fe025803a0b75659db09ebae81c |
|
MD5 | 2191a01e7906b2b448b287f2093fd58e |
|
BLAKE2b-256 | 479df8ef4576f02b2779cf192466b4d9447f320e03aa672b8a7738fd7b2e5504 |