All Projects → JNRowe → pyisbn

JNRowe / pyisbn

Licence: GPL-3.0 license
A Python module for working with 10- and 13-digit ISBNs

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to pyisbn

checkdigit
🔒 An easy-to-use check digit library for data validation
Stars: ✭ 19 (-48.65%)
Mutual labels:  isbn
dart barcode
Barcode generation library
Stars: ✭ 79 (+113.51%)
Mutual labels:  isbn
Nager.ArticleNumber
C# Validate Article Numbers ASIN, EAN8, EAN13, GTIN, ISBN, ISBN13, SKU, UPC
Stars: ✭ 25 (-32.43%)
Mutual labels:  isbn
isbn-rs
Rust library for handling ISBNs.
Stars: ✭ 19 (-48.65%)
Mutual labels:  isbn
isbnlib
python library to validate, clean, transform and get metadata of ISBN strings (for devs).
Stars: ✭ 177 (+378.38%)
Mutual labels:  isbn
openbookstore
Bibliographic search of books and personal manager https://gitlab.com/myopenbookstore/openbookstore
Stars: ✭ 24 (-35.14%)
Mutual labels:  isbn
django-isbn-field
Django model field to store and validate ISBN numbers.
Stars: ✭ 21 (-43.24%)
Mutual labels:  isbn
libbib
An R package providing WorldCat API communication, functions for validating and normalizing bibliographic codes, translation from call numbers to subject, and other related utilities helpful for assessment librarians
Stars: ✭ 21 (-43.24%)
Mutual labels:  isbn

pyisbn - A module for working with 10- and 13-digit ISBNs

Development status Test state on main Coverage state on main Current PyPI release Supported Python versions Documentation Recent developments

Introduction

pyisbn is a GPL v3 licensed module for working with various book identification numbers. It includes functions for conversion, verification and generation of checksums. It also includes basic classes for representing ISBNs as objects.

See the doc directory for installation instructions and usage information, you can also view the content online.

Requirements

pyisbn does not depend on any modules that aren’t included in Python’s standard library, and as such should run with Python 3.6 or newer [1]. If pyisbn doesn’t work with the version of Python you have installed, open an issue and I’ll endeavour to fix it.

The module have been tested on many UNIX-like systems, including Linux and OS X, but it should work fine on other systems too.

[1]Versions v1.2 and earlier will run on older Python versions, right back to 2.4.

Example

The simplest way to show how pyisbn works is by example, and here goes:

>>> import pyisbn
>>> Permutation_City = "1-85798-218-5"
>>> pyisbn.validate(Permutation_City)
True
>>> pyisbn.convert(Permutation_City)
'9781857982183'

or using the object pattern use:

>>> Permutation_City = pyisbn.Isbn10("1-85798-218-5")
>>> Permutation_City.validate()
True
>>> Permutation_City.convert()
'9781857982183'
>>> print(Permutation_City)
ISBN 1-85798-218-5

All independent functions and classes contain (hopefully) useful docstrings.

API Stability

Now that pyisbn 1.0 has been released the API will is frozen, and any changes which aren’t backwards compatible will force a major version bump.

Contributors

I’d like to thank the following people who have contributed to pyisbn.

Patches

  • Christopher Wells

Bug reports

  • James Gaffney
  • hbc (bcho)
  • Wen Heping
  • Max Klein (notconfusing)
  • Matt Leighy
  • Nathaniel M. Beaver (nbeaver)
  • Randy Syring (rsyring)
  • Stephen Thorne

Ideas

  • Kevin Simmons

If I’ve forgotten to include your name I wholeheartedly apologise. Just drop me a mail and I’ll update the list!

Bugs

If you find any problems, bugs or just have a question about this package either file an issue or drop me a mail.

If you’ve found a bug please attempt to include a minimal testcase so I can reproduce the problem, or even better a patch!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].