Quick Start Guide¶
This guide will help you get started with ebk in just a few minutes.
Creating Your First Library¶
From Calibre¶
If you have an existing Calibre library:
From Raw eBooks¶
If you have a folder of PDF/EPUB files:
Basic Operations¶
List All Books¶
Search for Books¶
# Search by title
ebk search "Python" ~/my-ebooks
# Search in multiple fields
ebk search "Machine Learning" ~/my-ebooks --regex-fields title subjects
# Advanced JMESPath query
ebk search "[?language=='en' && date >= '2020']" ~/my-ebooks --jmespath
View Statistics¶
Using the Python API¶
from ebk import Library
# Open your library
lib = Library.open("~/my-ebooks")
# Search for books
python_books = lib.search("Python")
for book in python_books:
print(f"{book.title} by {', '.join(book.creators)}")
# Add a new book
lib.add_entry(
title="Deep Learning",
creators=["Ian Goodfellow", "Yoshua Bengio"],
subjects=["Machine Learning", "Neural Networks"],
language="en"
).save()
# Find similar books
similar = lib.find_similar(python_books[0].id)
# Export to Hugo
lib.export_to_hugo("~/my-blog", organize_by="subject")
Launching the Web Interface¶
If you installed with the streamlit extra:
Then open http://localhost:8501 in your browser.
Next Steps¶
- Learn about advanced search options
- Explore import/export formats
- Discover library management features
- Set up integrations