Skip to content

exploition is This is a script to extract functions. You can generate pytest and other test code templates from existing Python scripts.

License

Notifications You must be signed in to change notification settings

Comamoca/exploition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

exploition

日本語はこちら

exploition is This is a script to extract functions. You can generate pytest and other test code templates from existing Python scripts.

How to use

python3 exploition.py (path to file) (path to output file) ex.) $exploition py_script output_path.py

Recommended usage

#Make it an executable file
$ mv exploition.py exploition
$ chmod +x exploition

#Pass the PATH so that it can be used from anywhere
$ export PATH=path/to/exploition:$PATH

👏 Great articles for reference

Python + astモジュールを使ってソースコードを解析し、メソッドブロックや関数ブロックの定義行と最終行を取得する

printで色をつける方法

About

exploition is This is a script to extract functions. You can generate pytest and other test code templates from existing Python scripts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages