Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions libzim/reader.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
# flake8: noqa
""" libzim reader module

- File to open and read ZIM files
- Article are returned by File on get_article() and get_article_by_id()
- NotFound is raised on incorrect article URL query

Usage:

from .wrapper import FilePy as File
with File(pathlib.Path("myfile.zim")) as zf:
article = zf.get_article(zf.main_page_url)
print(f"Article {article.title} at {article.url} is {article.content.nbytes}b")
"""

# flake8: noqa
from .wrapper import FilePy as File, NotFound
from .wrapper import ReadArticle as Article
Loading