code refactorings with Python idioms
Project description
Refactoring non-idiomatic Python code with Python idioms
Install:
For command line use, the package is installed with
python3 -m pip install RefactoringIdioms
Running:
1). Default command is to get <non-idiomatic code, idiomatic code> pairs for all Python files in the current directory for all Python idioms, and the result is saved in result.json in the current directory:
RIdiom
2). To get <non-idiomatic code, idiomatic code> pairs for a Python idiom for a given file/given directory and save the result in the given path, you can execute the following command:
RIdiom --filepath "your filepath" (e.g., main.py) --idiom "IdiomName" (e.g., List Comprehension) --outputpath "your outputpath" (e.g., result.json)
Web application:
We also develop a web application for the code refactoring, you could access the application through the url: 47.242.131.128:5000
Each time, you could click code area to refresh.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for RefactoringIdioms-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4b3808c891e3e53bfa4c3a3dc62fe2c2ce8c949e1ad3a559841fb4e32321ece |
|
MD5 | 39311255ad6a6ca9fc5b12149794baf9 |
|
BLAKE2b-256 | 39cf8799491642537dd675995f5b35143ae70db8689a52fb1e9abca63a0847ec |