FB2-0.1.7
توضیحات
A small package for working with FB2 files
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | FB2-0.1.7 |
| نام | FB2 |
| نسخه کتابخانه | 0.1.7 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ae-Mc |
| ایمیل نویسنده | ae_mc@mail.ru |
| آدرس صفحه اصلی | https://github.com/Ae-Mc/FB2 |
| آدرس اینترنتی | https://pypi.org/project/FB2/ |
| مجوز | - |
# FB2
[](https://pypi.org/project/fb2)
Python package for working with FictionBook2
## Usage example
```python
from FB2 import FictionBook2, Author
from urllib import request
book = FictionBook2()
book.titleInfo.title = "Example book"
book.titleInfo.annotation = "Small test book. Shows basics of FB2 library"
book.titleInfo.authors = [Author(firstName="Alex",
middleName="Unknown",
nickname="Ae_Mc",
emails=["ae_mc@mail.ru"],
homePages=["ae-mc.ru"])]
book.titleInfo.genres = ["sf", "sf_fantasy", "shortstory"]
book.titleInfo.coverPageImages = [
request.urlopen("https://picsum.photos/1080/1920").read()]
book.titleInfo.sequences = [("Example books", 2)]
book.documentInfo.authors = ["Ae Mc"]
book.documentInfo.version = "1.1"
book.chapters = [
("Introduction", [
"Introduction chapter first paragraph",
"Introduction chapter second paragraph"]),
("1. Chapter one. FB2 format history", [
"Introduction chapter first paragraph",
"Introduction chapter second paragraph"])]
book.chapters.append(("2. Chapter two. Empty", []))
book.write("ExampleBook.fb2")
```
## Requirements
- iso-639 package
## Installation
- From pip: `pip install fb2`
نیازمندی
| مقدار | نام |
|---|---|
| >=0.4.5 | iso-639 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl FB2-0.1.7:
pip install FB2-0.1.7.whl
نصب پکیج tar.gz FB2-0.1.7:
pip install FB2-0.1.7.tar.gz