Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

epub_metadata-1.0.6.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

epub_metadata-1.0.6-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file epub_metadata-1.0.6.tar.gz.

File metadata

  • Download URL: epub_metadata-1.0.6.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for epub_metadata-1.0.6.tar.gz
Algorithm Hash digest
SHA256 63f6feb9951bd314e69802322bfc277b2b28dc3a4a706d9ca5c3b6a3ab0680da
MD5 10b6ede3e6684e2347488bd11dafc674
BLAKE2b-256 97e0b164f21f4e57dc66c1bd7ab404439e5b649336934f8ca4f5d54bf362f45e

See more details on using hashes here.

File details

Details for the file epub_metadata-1.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for epub_metadata-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ddb35e67756cb20685abea9d3390f240f246393edcb0b3abed7ff8282a81a921
MD5 84d7e28c952ceb112939c3426b3c2143
BLAKE2b-256 f6d11501ac8a8df01869e4c4243c6048eab9bd65499a3170997fd15905aa2f7d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page