epub-metadata-1.0.3
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | epub-metadata-1.0.3 |
| نام | epub-metadata |
| نسخه کتابخانه | 1.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ThanatosDi |
| ایمیل نویسنده | yykkold55tw@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/epub-metadata/ |
| مجوز | - |
# epub-metadata
Get metadata from the Epub file.
# Install
```bash
pip install epub-metadata
```
# Example
```python
import epub_metadata
epub = epub_metadata.epub('tests/Alices Adventures in Wonderland.epub')
```
show all metadata from the Epub file
```python
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
```python
print(epub.metadata.title)
# only print the title
Alice's Adventures in Wonderland
```
نیازمندی
| مقدار | نام |
|---|---|
| >=1.2.3,<2.0.0 | arrow |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl epub-metadata-1.0.3:
pip install epub-metadata-1.0.3.whl
نصب پکیج tar.gz epub-metadata-1.0.3:
pip install epub-metadata-1.0.3.tar.gz