# ebookconverter
code that orchestrates ebook conversion for project gutenberg
EbookConverter manages the creation and update of ebook assets for Project Gutenberg. It uses a postgres database to keep track of both ebook metadata and ebook files. the postgress database is managed by the libgutenberg package.
The cron-rebuild-files.sh script runs as a cron job, rebuilding 2100 books per day, so as to rebuild every book roughly once a month.
ebookconverter talks to the gutenberg database to build a list of ebookmaker jobs. These jobs require some metadata about the book, and a target file to process.
ebookconverter expects source files to be in numbered directories in a 'files' directory. The location of the files directory is given by the FILESDIR config parameter.
Config parameters should be set in a file at /etc/ebookconverter.conf or ~/.ebookconverter
ebookconverter has been tested on Python 3.6.7. It's not expected to run on python 2.7
## Installing
`pipenv install ebookconverter`
The following directories should exist:
- $PRIVATE/logs
- $PRIVATE/logs/json
- $PRIVATE/logs/json/backup
- $PRIVATE/logs/notifications
- $PRIVATE/logs/dopush
- $PRIVATE/logs/dopush/backup
## Using the EbookConverter Scripts
you can run these commands either by first entering a `pipenv shell` or on a single line using `pipenv run <command> <args>`
Rebuild one or more books
`ebookconverter --range=<start>-<finish> --build=all`
`ebookconverter --range=<booknumber> --build=all`
`ebookconverter --range=<booknumber> --build=all --validate`
Reload metadata from a workflow json file (use with care, it will overwrite any metadata in the DB)
`reload_workflow <booknumber>`
Regenerate the csv file
`make_csv`
Look for any ebooks with changed files in the last X days and then check if any of the previously known files of that ebook have been deleted.
`autodelete`
Raw data
{
"_id": null,
"home_page": "https://github.com/gutenbergtools/ebookconverter/",
"name": "ebookconverter",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Eric Hellman",
"author_email": "eric@hellman.org",
"download_url": "https://files.pythonhosted.org/packages/09/bf/7dfebffa7435cf1cf579f5733ffd1d8fefdcd536e06b79db7046db1832b0/ebookconverter-0.9.5.tar.gz",
"platform": "OS-independent",
"description": "# ebookconverter\ncode that orchestrates ebook conversion for project gutenberg\n\n\nEbookConverter manages the creation and update of ebook assets for Project Gutenberg. It uses a postgres database to keep track of both ebook metadata and ebook files. the postgress database is managed by the libgutenberg package.\n\nThe cron-rebuild-files.sh script runs as a cron job, rebuilding 2100 books per day, so as to rebuild every book roughly once a month.\n\nebookconverter talks to the gutenberg database to build a list of ebookmaker jobs. These jobs require some metadata about the book, and a target file to process.\n\nebookconverter expects source files to be in numbered directories in a 'files' directory. The location of the files directory is given by the FILESDIR config parameter.\n\nConfig parameters should be set in a file at /etc/ebookconverter.conf or ~/.ebookconverter\n\nebookconverter has been tested on Python 3.6.7. It's not expected to run on python 2.7\n\n## Installing\n\n`pipenv install ebookconverter`\n\nThe following directories should exist:\n - $PRIVATE/logs\n - $PRIVATE/logs/json\n - $PRIVATE/logs/json/backup\n - $PRIVATE/logs/notifications\n - $PRIVATE/logs/dopush\n - $PRIVATE/logs/dopush/backup\n\n## Using the EbookConverter Scripts\n\nyou can run these commands either by first entering a `pipenv shell` or on a single line using `pipenv run <command> <args>`\n\nRebuild one or more books\n`ebookconverter --range=<start>-<finish> --build=all`\n`ebookconverter --range=<booknumber> --build=all`\n`ebookconverter --range=<booknumber> --build=all --validate`\n\nReload metadata from a workflow json file (use with care, it will overwrite any metadata in the DB)\n`reload_workflow <booknumber>`\n\nRegenerate the csv file\n`make_csv`\n\nLook for any ebooks with changed files in the last X days and then check if any of the previously known files of that ebook have been deleted.\n\n`autodelete`\n",
"bugtrack_url": null,
"license": "GPL v3",
"summary": "The Project Gutenberg tool to orchestrate ebook generation.",
"version": "0.9.5",
"project_urls": {
"Homepage": "https://github.com/gutenbergtools/ebookconverter/"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "09bf7dfebffa7435cf1cf579f5733ffd1d8fefdcd536e06b79db7046db1832b0",
"md5": "ffc98c64e16b4f6fe37bc0ee8c13a5b5",
"sha256": "81e3da69579097cb33f86d224b66286bc699e6e234017a2ff337a1b62b7aa1df"
},
"downloads": -1,
"filename": "ebookconverter-0.9.5.tar.gz",
"has_sig": false,
"md5_digest": "ffc98c64e16b4f6fe37bc0ee8c13a5b5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 43554,
"upload_time": "2024-04-23T02:25:08",
"upload_time_iso_8601": "2024-04-23T02:25:08.267632Z",
"url": "https://files.pythonhosted.org/packages/09/bf/7dfebffa7435cf1cf579f5733ffd1d8fefdcd536e06b79db7046db1832b0/ebookconverter-0.9.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-23 02:25:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gutenbergtools",
"github_project": "ebookconverter",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "ebookconverter"
}