isbnlib
Extract, clean, transform, hyphenate and metadata for ISBNs (International Standard Book Number).
What it is and what it does
isbnlib is a pure Python library for working with ISBN (International Standard Book Number) identifiers. It provides core functions to validate ISBNs (both ISBN-10 and ISBN-13 formats), convert between them, extract ISBN-like strings from text, and normalize or mask ISBNs for display. Beyond validation, it retrieves bibliographic metadata—title, author, publisher, year—from multiple free web services (Google Books, Wikipedia, Open Library) and can format results as BibTeX, CSL-JSON, EndNote, RefWorks, or other citation formats. The library is designed for developers building book-related applications, metadata scrapers, or citation tools.
The package has no external runtime dependencies, making it lightweight to install. It supports Python 2.7 and Python 3.6 through 3.11. The library is extensible via a plugin system for adding new metadata providers or bibliographic formatters. However, the project is dormant—the last release was in April 2023 and last commit in August 2024—so while it is marked Production/Stable, it receives no active maintenance, meaning API changes in external services may break metadata retrieval without fixes.
Use it for:
- Validate and clean ISBN strings from user input or scraped book data before storing in a database.
- Extract ISBNs from unstructured text and retrieve their metadata automatically.
- Convert ISBN-10 identifiers to ISBN-13 format for standardization or compatibility with modern book databases.
- Generate BibTeX or CSL-JSON citations from an ISBN for bibliography management or academic publishing workflows.
- Rename or organize book files using metadata extracted from ISBNs in filenames.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
isbnlib validates, cleans, transforms, and retrieves metadata for ISBN strings in both ISBN-10 and ISBN-13 formats, with support for multiple metadata providers including Google Books, Wikipedia, and Open Library.
Yes, if you need lightweight ISBN validation and metadata lookup without external dependencies. The zero-dependency design and Production/Stable status make it reliable for core ISBN operations. However, be aware that the project is dormant—metadata retrieval may fail if external services change their APIs. Best suited for internal tools, batch processing, or applications where occasional metadata failures are acceptable; not recommended for mission-critical production systems requiring active maintenance.
Install
isbnlib on PyPI
pip
pip install isbnlibuv
uv add isbnlibpoetry
poetry add isbnlibInstalling isbnlib
Before you install
Installation is straightforward with no runtime dependencies. The package is dormant (last release 2023-04-26, last commit 2024-08-01) but marked Production/Stable; no active maintenance signals concern for bug fixes or security updates.
License in practice
Licensed under LGPL v3 (copyleft), which requires derivative works to be distributed under the same license and grants access to source code. This is permissive for private use but constrains redistribution in proprietary software.
Quickstart
pip install isbnlib
from isbnlib import is_isbn13, meta
if is_isbn13('9780321534965'):
metadata = meta('9780321534965', service='goob')
print(metadata)
Verify before relying
- Whether metadata retrieval functions work reliably with current Google Books, Wikipedia, and Open Library APIs (services can change without library updates).
- Whether the throttling mechanism (one call per second per service) is adequate for production workloads.
- Current state of plugin ecosystem and availability of third-party metadata providers.
Package facts
| License | LGPL v3 (copyleft) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | dormant — 1,206 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 167,769/month — #10,460 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: isbnlib-3.10.14-py2.py3-none-any.whl
Keywords: ISBN, metadata, World_Catalogue, Google_Books, Wikipedia, Open_Library, BibTeX, EndNote, RefWorks, MSWord, opf, BibJSON
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
barcodenumberValidates product codes across multiple barcode…
copyleft · top 15,000 on PyPI
bibtexparserParses BibTeX files into Python data…
copyleft · top 5,000 on PyPI
petlpetl extracts, transforms, and loads tables of…
permissive · top 5,000 on PyPI
pymarcpymarc reads, writes, and modifies MARC21…
unclear · top 15,000 on PyPI
pybtexPybtex reads bibliography data from BibTeX,…
permissive · top 5,000 on PyPI
habanerohabanero is a low-level Python client for the…
permissive · top 15,000 on PyPI
jupyter-bookJupyter Book converts Markdown files and…
permissive · top 15,000 on PyPI
trove-classifiersProvides the canonical set of valid PyPI…
permissive · top 100 on PyPI
pyzoteroPyzotero is a Python client library for the…
unclear · top 15,000 on PyPI
python-iso639Maps ISO 639 language codes (639-1, 639-2,…
permissive · top 5,000 on PyPI