ebk 0.1.0__py3-none-any.whl → 0.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ebk might be problematic. Click here for more details.
- ebk/__init__.py +35 -0
- ebk/cli.py +1724 -664
- ebk/config.py +260 -22
- ebk/decorators.py +132 -0
- ebk/extract_metadata.py +76 -7
- ebk/library_db.py +744 -0
- ebk/plugins/__init__.py +42 -0
- ebk/plugins/base.py +502 -0
- ebk/plugins/hooks.py +444 -0
- ebk/plugins/registry.py +500 -0
- ebk/search_parser.py +413 -0
- ebk/server.py +1633 -0
- ebk-0.3.1.dist-info/METADATA +755 -0
- ebk-0.3.1.dist-info/RECORD +19 -0
- {ebk-0.1.0.dist-info → ebk-0.3.1.dist-info}/WHEEL +1 -1
- ebk-0.3.1.dist-info/entry_points.txt +6 -0
- ebk-0.3.1.dist-info/licenses/LICENSE +21 -0
- ebk-0.3.1.dist-info/top_level.txt +2 -0
- ebk/exports/__init__.py +0 -0
- ebk/exports/hugo.py +0 -55
- ebk/exports/zip.py +0 -25
- ebk/imports/__init__.py +0 -0
- ebk/imports/calibre.py +0 -144
- ebk/imports/ebooks.py +0 -116
- ebk/llm.py +0 -58
- ebk/manager.py +0 -44
- ebk/merge.py +0 -308
- ebk/streamlit/__init__.py +0 -0
- ebk/streamlit/__pycache__/__init__.cpython-310.pyc +0 -0
- ebk/streamlit/__pycache__/display.cpython-310.pyc +0 -0
- ebk/streamlit/__pycache__/filters.cpython-310.pyc +0 -0
- ebk/streamlit/__pycache__/utils.cpython-310.pyc +0 -0
- ebk/streamlit/app.py +0 -185
- ebk/streamlit/display.py +0 -168
- ebk/streamlit/filters.py +0 -151
- ebk/streamlit/utils.py +0 -58
- ebk/utils.py +0 -311
- ebk-0.1.0.dist-info/METADATA +0 -457
- ebk-0.1.0.dist-info/RECORD +0 -29
- ebk-0.1.0.dist-info/entry_points.txt +0 -2
- ebk-0.1.0.dist-info/top_level.txt +0 -1
ebk/__init__.py
CHANGED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""
|
|
2
|
+
ebk - A powerful eBook metadata management tool with SQLAlchemy + SQLite backend.
|
|
3
|
+
|
|
4
|
+
Main API:
|
|
5
|
+
from ebk.library_db import Library
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
# Open or create a library
|
|
9
|
+
lib = Library.open(Path("/path/to/library"))
|
|
10
|
+
|
|
11
|
+
# Add a book
|
|
12
|
+
book = lib.add_book(
|
|
13
|
+
Path("book.pdf"),
|
|
14
|
+
metadata={"title": "My Book", "creators": ["Author"]},
|
|
15
|
+
extract_text=True
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
# Search with full-text search
|
|
19
|
+
results = lib.search("python programming", limit=50)
|
|
20
|
+
|
|
21
|
+
# Query with fluent API
|
|
22
|
+
results = (lib.query()
|
|
23
|
+
.filter_by_language("en")
|
|
24
|
+
.filter_by_author("Knuth")
|
|
25
|
+
.limit(20)
|
|
26
|
+
.all())
|
|
27
|
+
|
|
28
|
+
# Always close when done
|
|
29
|
+
lib.close()
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
from .library_db import Library
|
|
33
|
+
|
|
34
|
+
__version__ = "0.3.1"
|
|
35
|
+
__all__ = ["Library"]
|