Skip to main content

playscript: Structure for Play Scripts

Project description

playscript

Overview

Package for play script structure in Japanese style.

Classes

PSc

Play script containing lines and meta data.

PScLine

Each line of lines contained in PSc object.
It has an attribute "type" to determine if it's a dialogue or a direction, etc.

PScLineType

This enum defines types for PScLine.

Example

Creating a 3-line script

from playscript import PScLineType, PScLine, PSc

title = PScLine.from_text(PScLineType.TITLE, 'ろくでなしの冒険')
dialogue1 = PScLine.from_text(PScLineType.DIALOGUE, '六郎「どうする?」')
dialogue2 = PScLine.from_text(PScLineType.DIALOGUE, '七郎「帰って寝る」')

script = PSc(lines=[title, dialogue1, dialogue2])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

playscript-0.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

playscript-0.2-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page