Skip to main content

epub-metadata

Get metadata from the Epub file.

Install

pip install epub-metadata

Example

import epub_metadata
epub = epub_metadata.epub('tests/Alices Adventures in Wonderland.epub')

show all metadata from the Epub file

print(epub.metadata)
# return all metadata from the Epub file
{
    'version': '2.0', 
    'title': "Alice's Adventures in Wonderland", 
    'creator': 'Lewis Carroll', 
    'date': '1865-07-04', 
    'cover': '/9j/4AAQSkZJRgABAQE...', 
    'cover_type': 'image/jpeg', 
    'description': '', 
    'publisher': 'D. Appleton and Co', 
    'identifier': 'eb2934ae-bb1a-4652-bce7-9f78fc5ca496'
}

only show the epub metadata

print(epub.metadata.title)
# only print the title
Alice's Adventures in Wonderland

Release files for epub-metadata 1.0.7

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

Source distribution (sdist)

Source distribution for epub-metadata 1.0.7
File Size Uploaded
epub_metadata-1.0.7.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for epub-metadata 1.0.7
File Interpreter ABI Platform
epub_metadata-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size:31.4 kB

Release files / epub_metadata-1.0.7.tar.gz

Download URL epub_metadata-1.0.7.tar.gz
Size 15.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1db663d73d131b265c809bb3c9a088a459bccdccacbf86b235edb96f0e91e553
BLAKE2b-256 checksum
How to use checksums
1537aab440e6f9d55c9991c60ffe72764de70dc96f7f1c94f3574e279d4a70c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / epub_metadata-1.0.7-py3-none-any.whl

Download URL epub_metadata-1.0.7-py3-none-any.whl
Size 16.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a16d9d3798e3d5f9b8865305f19638de98aaf2eb41dc056591387263807b15a9
BLAKE2b-256 checksum
How to use checksums
c233b9c49daf6eb4a1a31a41336b03223a17bbc29ba04526a78c70fe022b7cc6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8
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