Skip to main content

D.A.V.E.

Meet DAVE, the screenwriting bot. DAVE generates formatted screenplays from other screenplays.

Install

pip install davebot

Use

Stanley module

Generate screenplays

DAVE.nlp.Stanley uses all the modules below (except web scraping) to generate formatted screenplays (PDF and plaintext).

Example:

from DAVE.nlp.Stanley import Stanley
characters = ['HAL', 'DAVE', 'Stanley Kubrick', 'Discovery One', 
              'Arthur C. Clarke', 'The Sentinel']
source = ['2001-A-Space-Odyssey.txt', '2012.txt']

director = Stanley(source, characters, destination='output', title='2013', author='DAVE')
director.direct(length=100)

DAVE will create two files in the destination directory: <title>.pdf and <title>.txt.

Scraper module

Scraping Screenplays

DAVE.scraper.DiscoveryOne scrapes from IMSDB using BeautifulSoup

from DAVE.scraper import DiscoveryOne, Sentinel
DiscoveryOne.crawl(path, directory='.', pattern=GENRE):

Parse

DAVE.scraper.Sentinel and parses screenplays into subsections: headings, transitions, actions, parentheticals, and dialogue, to be further prepared into Markov models.

Sentinel.parse(*sources, destination='.', write=True)

Or, parse recursively using Sentinel.parse_directory

Sentinel.parse_directory(source='.', destination='parsed_categories', genre='All')`

NLP module

Serialize markov models

DAVE.nlp.HAL generates Markov chains from the parsed categories made by DAVE.scraper.Sentinel and serializes the models into JSON.

To create the Markov models:

from DAVE.nlp.HAL import HAL
HAL.generate_models(source='parsed_categories', destination='.')

Inspiration

A Space Odyssey

Inspiration from the name D.A.V.E. came from Stanley Kubrick's masterpiece film 2001: A Space Odyssey. The names of this package's modules all reflect characters, creators, texts, and important people involved in A Space Odyssey.

Sunspring

The original inspiration for this project comes from a short science fiction film: Sunspring.

Description (from Ars Technica):

In the wake of Google's AI Go victory, filmmaker Oscar Sharp turned to his technologist collaborator Ross Goodwin to build a machine that could write screenplays. They created "Jetson" and fueled him with hundreds of sci-fi TV and movie scripts. Building a team including Thomas Middleditch, star of HBO's Silicon Valley, they gave themselves 48 hours to shoot and edit whatever Jetson decided to write.

Sunspring Short Film

Click the image above to see the full video.

Metadata

Release files for davebot 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for davebot 1.0.1
File Size Uploaded Provenance Actions
davebot-1.0.1.tar.gz 8.3 kB Without provenance Details for davebot-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for davebot 1.0.1
File Interpreter ABI Platform Actions
davebot-1.0.1-py3-none-any.whl Python 3 none any Details for davebot-1.0.1-py3-none-any.whl

Total release size: 32.2 kB

Release files / davebot-1.0.1.tar.gz

Download URL davebot-1.0.1.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
df9809269e3bd43b187b579e3f50e5aecb8b8c0fb49b268fd976e4a33323a6a8
BLAKE2b-256 checksum
How to use checksums
3fe9fdf7f52cf47def8d01a5f257a31cf9b081bf6838a50673b2e6606637ad26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.4

Release files / davebot-1.0.1-py3-none-any.whl

Download URL davebot-1.0.1-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f93f132de4430d2ed70dc4eb34b9696b2a9974884d612f70ed4fcb585065bd6d
BLAKE2b-256 checksum
How to use checksums
b0073e1196b7c48ee3fc41545efd023f9610c07615e20c5ce3cf5f9c40788f65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.4

Security for davebot 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page