---
title: Calibre
kind: note
description: ebook manager
words: 44
readingMinutes: 1
created: '2024-03-31T20:43:11+02:00'
updated: '2025-05-10T17:21:54+02:00'
website: https://calibre-ebook.com/
---
## Link

<https://calibre-ebook.com/>

Calibre is a powerful, user-friendly and completely free [open source](/notes/open-source) [software](/notes/software) for managing [e-books](/notes/books) on [Windows](/notes/microsoft-windows), [macOS](/notes/macos) and [Linux](/notes/linux). It is written in and extensible using [Python](/notes/python).
## FAQ
### Adding a book programmatically
1. Save as a file:
	```python filename=something.py
	import calibre.ebooks.metadata.meta
	import calibre.library

	db = calibre.library.db('/path/to/library').new_api

	path = "/path/to/book.epub"
	
	md = calibre.ebooks.metadata.meta.get_metadata(
		open(path, "rb"),
		stream_type="epub",
	)
	
	db.add_books(
		[
			(
				md,
				{
					"EPUB": path,
				}
			)
		]
	)
```
2. Run the file using `calibre-debug`:
	```shell
	calibre-debug something.py
	```
