Metadata-Version: 2.1
Name: ebookrack
Version: 0.3.1
Summary: library for managing a personal e-book library
Author-email: JA Viljoen <ebookrack@javiljoen.net>
Requires-Python: ~=3.8
Description-Content-Type: text/markdown
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)
Classifier: Operating System :: POSIX
Classifier: Topic :: Text Processing :: Markup :: XML
Classifier: Topic :: Utilities
Requires-Dist: pytest ~=7.2.1 ; extra == "test"
Project-URL: Repository, https://git.sr.ht/~javiljoen/ebookrack-python
Provides-Extra: test

# EBookRack

Python library for managing a personal e-book library

The `ebookrack.calibre` subpackage allows querying an e-book library managed by Calibre.


## Installation

The package is available on PyPI and can be installed with `pip`:

    pip install ebookrack


## Usage

The `Library` class in `ebookrack.calibre` provides a high-level entry point
for querying the contents of a Calibre library.

```python
from pathlib import Path
from ebookrack.calibre.library import Library

lib_path = Path("~/Books").expanduser()
library = Library(lib_path)

for book in library.books:
    print(book.title)
    print(" & ".join(book.authors))

    for file in book.files:
        print(f"{file.format:6s}: {file}")

    print("---")
```

The modules in the `ebookrack` core package are not yet ready for use.

