{"id":22646898,"url":"https://github.com/johncmanuel/writebook","last_synced_at":"2025-03-29T06:47:13.178Z","repository":{"id":104568803,"uuid":"350086168","full_name":"johncmanuel/writeBook","owner":"johncmanuel","description":"Python script that automates the creation of .docx files from a given template file, specifically one tailored for book manuscripts.","archived":false,"fork":false,"pushed_at":"2021-03-21T18:44:15.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T19:59:24.253Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johncmanuel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-03-21T18:35:20.000Z","updated_at":"2021-03-21T18:44:16.000Z","dependencies_parsed_at":"2023-03-11T03:45:18.686Z","dependency_job_id":null,"html_url":"https://github.com/johncmanuel/writeBook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncmanuel%2FwriteBook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncmanuel%2FwriteBook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncmanuel%2FwriteBook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncmanuel%2FwriteBook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johncmanuel","download_url":"https://codeload.github.com/johncmanuel/writeBook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246150408,"owners_count":20731419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-09T07:30:54.779Z","updated_at":"2025-03-29T06:47:13.148Z","avatar_url":"https://github.com/johncmanuel.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/)\n[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n\n\n# writeBook\n\nAutomatically copies and pastes a .docx file from a template document that contains all the industry standards for book manuscripts. This eliminates the hassle of setting up the document and working environment before writing a book.\n\nThis is only tested for the Windows OS.\n\n## Command\n\n```\nbook \u003cname of your book\u003e\n```\n\n## Preparations\n\nDownload templates here: https://kdp.amazon.com/en_US/help/topic/G201834230, create a 'Templates' folder, open the downloaded file and choose a language of your choice. Then, copy and paste all the .docx files into 'Templates'. I choose to do it this way rather than committing the template files themselves because I'm not sure if I'm legally allowed to republish Amazon KDP's content.\n\nAlternatively, you can create your own .docx template with your own preferences and styles.\n\n### Set up working environment\n\n```\npy -m venv \u003cname of your venv\u003e\ncd \u003cname of your venv\u003e\ngit clone https://github.com/johncmanuel/writeBook.git\npip install requirements.txt\n```\n\nRun venv\n\n```\ncd Scripts \u0026\u0026 activate.bat \u0026\u0026 cd ..\n```\n\n### Environment Variables\n\nIn your local machine, add working environment to 'Path'.\n\nIn the working directory, create an .env file and add the following variables:\n\n```\n# .env\n\nBOOK_DIR=\u003cpath to where you want to place your writing documents\u003e\nTEMPLATES_DIR=\u003cpath to your templates folder\u003e\nPATH_TO_WORD=\u003cpath to your Microsoft Word application\u003e\n```\n\n\\*However, `PATH_TO_WORD` can be used for any other writing software.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohncmanuel%2Fwritebook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohncmanuel%2Fwritebook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohncmanuel%2Fwritebook/lists"}