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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb41db46311032a7fa50b067118b3db00d318bde8b840a068725f0deece5c52 |
|
MD5 | ea3f8df31c86adea03ddd0db48975c41 |
|
BLAKE2b-256 | db5c6d1b5b0dda7989a38c3c6c69086f56e8accb087164493da608b7add635b1 |