Metadata-Version: 2.4
Name: bookcraft
Version: 0.1.0
Summary: A PDF book generator for structured ritual and ceremonial texts
Author: Albert Kolozsvari
Author-email: albertartk@gmail.com
Requires-Python: >=3.11.0,<4.0.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Dist: PyYAML (>=6.0.2)
Requires-Dist: fpdf2 (>=2.8.5,<3.0.0)
Requires-Dist: typing-extensions (>=4.15.0,<5.0.0)
Description-Content-Type: text/markdown

# bookcraft

A Python library for generating PDF books from structured text content.

## Installation

```bash
pip install bookcraft
```

## Usage

```python
from bookcraft import generate

generate(
    books_path="./books/",
    settings_path="./c-settings.yaml",
    fonts_path="./fonts.yaml",
    keywords_path="./c-keywords.yaml",
    output_path="./output/craft.pdf",
    mode="craft",
)
```

### Modes

| Mode | Description |
|------|-------------|
| `craft` | Craft, light theme |
| `craft-dark` | Craft, dark theme |
| `ra` | Royal Arch, light theme |
| `ra-dark` | Royal Arch, dark theme |

## Content layout

Your content project should provide:

```
your-project/
├── books/          # directories of page-N.txt files
├── fonts/          # font files referenced in fonts.yaml
├── fonts.yaml
├── c-settings.yaml
├── c-keywords.yaml
├── ra-settings.yaml
├── ra-keywords.yaml
└── output/         # generated PDFs written here
```

