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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| epub_metadata-1.0.7.tar.gz | 15.1 kB | Without provenance | Details for epub_metadata-1.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| epub_metadata-1.0.7-py3-none-any.whl | Python 3 | none | any | Details for epub_metadata-1.0.7-py3-none-any.whl |
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
|
Security for epub-metadata 1.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.