Name | epubmangler JSON |
Version |
0.1.0
JSON |
| download |
home_page | None |
Summary | Tools to modify the metadata of .epub format ebooks |
upload_time | 2024-12-15 05:33:10 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
book
epub
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# epubmangler
Tools to read and modify the metadata of EPUB files.
Documentation to be written. See the minimal example below and others in the `example` directory.
Requires: Python 3.8
## Example usage
```python
from epubmangler import EPub
with EPub('Frankenstein.epub') as book: # https://gutenberg.org/ebooks/84
# Get information about a book
language = book.get('language')
subjects = book.get_all('subject')
book.pretty_print()
# Modify existing elements
book.set('title', 'Frankenstein 2')
book.set_cover('cat_picture.jpg')
book.set_identifier('http://github.com/davekeogh/epubmangler', 'URI')
# Add and remove elements
book.add('contributor', 'epubmangler', {'opf:role' : 'bkp'})
book.remove('date', {'opf:event' : 'conversion'})
# Add and remove subjects
book.add_subject('Sequel')
book.add_subject('Comedy')
book.remove_subject('Horror tales')
book.save('Frankenstein 2.epub', overwrite=True)
```
Raw data
{
"_id": null,
"home_page": null,
"name": "epubmangler",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "book, epub",
"author": null,
"author_email": "David Keogh <davidtkeogh@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/30/d3/0215cb5108fec58f261d2259339ae23263f116e5b5b3a07cbd60b66a1e69/epubmangler-0.1.0.tar.gz",
"platform": null,
"description": "# epubmangler\n\nTools to read and modify the metadata of EPUB files.\n\nDocumentation to be written. See the minimal example below and others in the `example` directory.\n\nRequires: Python 3.8\n\n## Example usage\n\n```python\nfrom epubmangler import EPub\n\nwith EPub('Frankenstein.epub') as book: # https://gutenberg.org/ebooks/84\n\n # Get information about a book\n language = book.get('language')\n subjects = book.get_all('subject')\n book.pretty_print()\n\n # Modify existing elements\n book.set('title', 'Frankenstein 2')\n book.set_cover('cat_picture.jpg')\n book.set_identifier('http://github.com/davekeogh/epubmangler', 'URI')\n\n # Add and remove elements\n book.add('contributor', 'epubmangler', {'opf:role' : 'bkp'})\n book.remove('date', {'opf:event' : 'conversion'})\n\n # Add and remove subjects\n book.add_subject('Sequel')\n book.add_subject('Comedy')\n book.remove_subject('Horror tales')\n\n book.save('Frankenstein 2.epub', overwrite=True)\n\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Tools to modify the metadata of .epub format ebooks",
"version": "0.1.0",
"project_urls": {
"Homepage": "https://github.com/davekeogh/epubmangler",
"Issues": "https://github.com/davekeogh/epubmangler/issues"
},
"split_keywords": [
"book",
" epub"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "2b8387001a7b1306bccaab0020b630d3d30f3db1d57f8561447a5b015bcbba07",
"md5": "db76183c940b71ce08cc2bda8106819a",
"sha256": "d4967f93a2b0c6c53ac580d3bd6c32ec375a4500316a59659f29c3a9945c7daf"
},
"downloads": -1,
"filename": "epubmangler-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "db76183c940b71ce08cc2bda8106819a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 10174,
"upload_time": "2024-12-15T05:33:07",
"upload_time_iso_8601": "2024-12-15T05:33:07.699983Z",
"url": "https://files.pythonhosted.org/packages/2b/83/87001a7b1306bccaab0020b630d3d30f3db1d57f8561447a5b015bcbba07/epubmangler-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "30d30215cb5108fec58f261d2259339ae23263f116e5b5b3a07cbd60b66a1e69",
"md5": "33f56a7a7bc3b8d4962e7cbf0031bf52",
"sha256": "25cc03e8c02cb0fc79c6ad5242fe8f8c89f9db2b9fcd46bb0e8eae71e1709135"
},
"downloads": -1,
"filename": "epubmangler-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "33f56a7a7bc3b8d4962e7cbf0031bf52",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 449332,
"upload_time": "2024-12-15T05:33:10",
"upload_time_iso_8601": "2024-12-15T05:33:10.800694Z",
"url": "https://files.pythonhosted.org/packages/30/d3/0215cb5108fec58f261d2259339ae23263f116e5b5b3a07cbd60b66a1e69/epubmangler-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-15 05:33:10",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "davekeogh",
"github_project": "epubmangler",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "epubmangler"
}