Skip to main content

Extract, clean and transform ISBNs (International Standard Book Number).

Project description

Info

isbntools provides several useful methods and functions to validate, clean and transform ISBN strings.

Typical usage (as library):

#!/usr/bin/env python
import isbntools
...

Several scripts are provided to use from the command line:

$ to_isbn10 ISBN13

transforms an ISBN10 number to ISBN13.

$ to_isbn13 ISBN10

transforms an ISBN13 number to ISBN10.

$ isbn_info ISBN

gives you the group identifier of the ISBN.

$ isbn_mask ISBN

masks (hyphenate) an ISBN (split it by identifiers).

$ isbn_meta ISBN

gives you the main metadata associated with the ISBN (uses wcat.org).

$ isbn_validate ISBN

validates ISBN10 and ISBN13.

$ isbn_stdin_validate

to use with posix pipes (e.g. cat ISBNs | isbn_stdin_validate).

$ isbntools

writes version and copyright notice.

Many more scripts could be written with the library, using the methods for extraction, cleaning, validation and standardization of ISBNs.

Install

From a command line enter:

$ pip install isbntools

or:

$ easy_install isbntools

or:

$ pip install isbntools-0.7.4.tar.gz

Known Issues

  1. The meta method and the isbn_meta script sometimes give a wrong result (this is due to errors on the wcat.org service)

ISBN

To know about ISBN:

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isbntools-0.7.4.tar.gz (14.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page