制作剧本的python替代品。
playscripter的Python项目详细描述
编剧
使用python编写脚本!
安装
目前,您可以执行以下操作:
git clone https://github.com/NCPlayz/Scripter
cd Scripter
python3 -m pip install -U .
示例
fromscripterimportScriptmy_script=Script("Macbeth","Shakespeare")act1=my_script.add_act()act1.add_scene("A Desert Place. Thunder and lightning. Enter three Witches.")act1.add_dialogue("When shall we three meet again\nIn thunder lightning, or in rain?",author="First Witch")# Rest of Act 1 Scene 1if__name__=='__main__':my_script.create("Macbeth")# Result in ./tests
要求
Python
语言版本3.0.0+
python-docx
库版本0.8.7