ISBNlib is an active Python library (current version 3.10.14) providing a pure-Python solution for extracting, cleaning, transforming, hyphenating, and fetching metadata for ISBNs (International Standard Book Numbers). It offers a straightforward API for various ISBN-related tasks and receives frequent minor updates to its internal data ranges and service integrations.
pip install isbnlibVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to clean (canonicalize), validate, retrieve metadata, and hyphenate an ISBN using `isbnlib`'s core functions. It uses a known ISBN-13 and prints the results.
Remove or replace calls to `to_utf8tex`. Review release notes for alternative functionality if needed, though this function was internal/helper-level.
Explicitly try different services when fetching metadata, e.g., `meta(isbn, service='openl')` or `meta(isbn, service='wiki')`.
Understand that `is_isbn13()` returning `True` does not guarantee an ISBN has been issued or that `meta()` will find data. Always handle cases where `meta()` returns an empty dictionary.
Always install `isbnlib` using `pip` (`pip install isbnlib`) within a virtual environment. Avoid system-level package managers for Python libraries unless strictly necessary.
Place configuration calls (e.g., `config.add_apikey()`, `registry.setdefaultservice()`) at the entry point of your application or whenever a new session starts.
Ensure `isbnlib` is installed in the correct environment using `pip install isbnlib`. If encountering issues on Linux with `sudo`, try `sudo pip install isbnlib` (though virtual environments are preferred).
Check your internet connection. Try explicitly requesting metadata from a different service, such as `meta(isbn, service='openl')` or `meta(isbn, service='wiki')`.
Experiment with various metadata services, for example, `meta(isbn, service='goob')`, `meta(isbn, service='openl')`, or `meta(isbn, service='wiki')`. Consider updating `isbnlib` to ensure you have the latest service configurations and data ranges.
Update `isbnlib` to the latest version (`pip install --upgrade isbnlib`) to ensure the most current ISBN data ranges are available for correct hyphenation.
No dependency data recorded yet.