Skip to content

A program to automatically remove line numbers and shell prompt characters (just python) from a code

License

Notifications You must be signed in to change notification settings

AmirAli104/code-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

code-cleaner

Maybe you have experienced that sometimes you copy a code from somewhere to paste it in your computer and run it. But in some websites they have placed the line numbers in such a way that when you copy the code the line numbers are also copied. You can remove these with this program.

You can also remove python shell prompts (>>> and ...) from python codes.

command-line options

option description
-n,--line files/directories to clear line numbers
-s,--shell files/directories to clear shell prompt characters
-d,--directory Consider the values given to '--shell' and '--line' as directories. You must give the file extentions you want to clean them to this argument. Its default is '.py' files.
-t,--tree If the both '--directory' and '--tree' are enabled it searches all subdirectories to find files
-l,--log enable logging

Releases

No releases published

Packages

No packages published

Languages