Skip to content

NCPlayz/Scripter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripter

Make a script using Python!

Installing

The library is now on PyPI, which means you can do this:

python -m pip install -U playscripter

Alternatively, you can do this:

git clone https://github.com/NCPlayz/Scripter
cd Scripter
python3 -m pip install -U .

Example

from scripter import Script

my_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 1

if __name__ == '__main__':
    my_script.create("Macbeth")
    # Result in ./tests

Requirements

  • Python language - version 3.0.0+
  • python-docx library - version 0.8.7

About

Just a cool way to write a script.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages