{ "info": { "author": "Eunika Wu", "author_email": "eunika@pdxcodeguild.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# D.A.V.E.\nMeet DAVE, the screenwriting bot. \nDAVE generates formatted screenplays from other screenplays.\n\n\n## Install\n```\npip install davebot\n```\n\n## Use\n### Stanley module\n#### Generate screenplays\n`DAVE.nlp.Stanley` uses all the modules below (except web scraping) to generate formatted screenplays (PDF and plaintext).\n\nExample:\n```py\nfrom DAVE.nlp.Stanley import Stanley\ncharacters = ['HAL', 'DAVE', 'Stanley Kubrick', 'Discovery One', \n 'Arthur C. Clarke', 'The Sentinel']\nsource = ['2001-A-Space-Odyssey.txt', '2012.txt']\n\ndirector = Stanley(source, characters, destination='output', title='2013', author='DAVE')\ndirector.direct(length=100)\n```\n\nDAVE will create two files in the `destination` directory: `.pdf` and `<title>.txt`.\n\n### Scraper module\n#### Scraping Screenplays\n`DAVE.scraper.DiscoveryOne` scrapes from IMSDB using BeautifulSoup\n```py\nfrom DAVE.scraper import DiscoveryOne, Sentinel\nDiscoveryOne.crawl(path, directory='.', pattern=GENRE):\n```\n\n#### Parse\n`DAVE.scraper.Sentinel` and parses screenplays into subsections: headings, transitions, actions, parentheticals, and dialogue, to be further prepared into Markov models.\n```py\nSentinel.parse(*sources, destination='.', write=True)\n```\n\nOr, parse recursively using `Sentinel.parse_directory`\n```py\nSentinel.parse_directory(source='.', destination='parsed_categories', genre='All')`\n```\n\n### NLP module\n#### Serialize markov models\n`DAVE.nlp.HAL` generates Markov chains from the parsed categories made by `DAVE.scraper.Sentinel` and serializes the models into JSON.\n\nTo create the Markov models:\n```py\nfrom DAVE.nlp.HAL import HAL\nHAL.generate_models(source='parsed_categories', destination='.')\n```\n\n\n## Inspiration\n#### A Space Odyssey\nInspiration 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. \n\n\n#### Sunspring\nThe original inspiration for this project comes from a short science fiction film: *Sunspring*.\n\nDescription (from Ars Technica):\n\n> 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.\n\n\n<a href=\"http://www.youtube.com/watch?feature=player_embedded&v=LY7x2Ihqjmc\" target=\"_blank\"><img src=\"http://img.youtube.com/vi/LY7x2Ihqjmc/0.jpg\" \nalt=\"Sunspring Short Film\" width=\"240\" height=\"180\" border=\"10\" /></a>\n\nClick the image above to see the full video.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/DED8IRD/D.A.V.E", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "davebot", "package_url": "https://pypi.org/project/davebot/", "platform": "", "project_url": "https://pypi.org/project/davebot/", "project_urls": { "Homepage": "https://github.com/DED8IRD/D.A.V.E" }, "release_url": "https://pypi.org/project/davebot/1.0.1/", "requires_dist": [ "beautifulsoup4 (==4.8.0)", "fpdf (==1.7.2)", "markovify (==0.7.2)", "requests (==2.22.0)" ], "requires_python": "", "summary": "A screenplay bot", "version": "1.0.1" }, "last_serial": 5833455, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "2899be3d87aa2fc670dafdca8d4e5100", "sha256": "666e3acd7d856b5ceaf8c0e42a8174079d1d03c1442d0a1073fdc63f8af59901" }, "downloads": -1, "filename": "davebot-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "2899be3d87aa2fc670dafdca8d4e5100", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 23859, "upload_time": "2019-09-16T00:41:35", "url": "https://files.pythonhosted.org/packages/f8/6f/1186ef471e9213739041eb471e5d8b4646452b7209f3be47ff38a8109605/davebot-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bc53ee53a164beaacdc2d3cec96fb968", "sha256": "470563a59c76fad0018f1cb9970d6e08ed00c4bdd0f5f6fab534d5fcb6651879" }, "downloads": -1, "filename": "davebot-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bc53ee53a164beaacdc2d3cec96fb968", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8156, "upload_time": "2019-09-16T00:41:37", "url": "https://files.pythonhosted.org/packages/14/43/0b06c7a5bd4dfff011cbec3a87fdc66d7d1d2e87e9b1c341fc60f4c47532/davebot-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "05b2c9d5046c2bb70e1306edcc6a1c20", "sha256": "f93f132de4430d2ed70dc4eb34b9696b2a9974884d612f70ed4fcb585065bd6d" }, "downloads": -1, "filename": "davebot-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "05b2c9d5046c2bb70e1306edcc6a1c20", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 23932, "upload_time": "2019-09-16T01:10:57", "url": "https://files.pythonhosted.org/packages/b0/07/3e1196b7c48ee3fc41545efd023f9610c07615e20c5ce3cf5f9c40788f65/davebot-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eeee8811f5d545cbcd02c6503fbc39a1", "sha256": "df9809269e3bd43b187b579e3f50e5aecb8b8c0fb49b268fd976e4a33323a6a8" }, "downloads": -1, "filename": "davebot-1.0.1.tar.gz", "has_sig": false, "md5_digest": "eeee8811f5d545cbcd02c6503fbc39a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8251, "upload_time": "2019-09-16T01:10:59", "url": "https://files.pythonhosted.org/packages/3f/e9/fdf7f52cf47def8d01a5f257a31cf9b081bf6838a50673b2e6606637ad26/davebot-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "05b2c9d5046c2bb70e1306edcc6a1c20", "sha256": "f93f132de4430d2ed70dc4eb34b9696b2a9974884d612f70ed4fcb585065bd6d" }, "downloads": -1, "filename": "davebot-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "05b2c9d5046c2bb70e1306edcc6a1c20", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 23932, "upload_time": "2019-09-16T01:10:57", "url": "https://files.pythonhosted.org/packages/b0/07/3e1196b7c48ee3fc41545efd023f9610c07615e20c5ce3cf5f9c40788f65/davebot-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eeee8811f5d545cbcd02c6503fbc39a1", "sha256": "df9809269e3bd43b187b579e3f50e5aecb8b8c0fb49b268fd976e4a33323a6a8" }, "downloads": -1, "filename": "davebot-1.0.1.tar.gz", "has_sig": false, "md5_digest": "eeee8811f5d545cbcd02c6503fbc39a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8251, "upload_time": "2019-09-16T01:10:59", "url": "https://files.pythonhosted.org/packages/3f/e9/fdf7f52cf47def8d01a5f257a31cf9b081bf6838a50673b2e6606637ad26/davebot-1.0.1.tar.gz" } ] }