{ "info": { "author": "Tor Klingberg", "author_email": "tor.klingberg@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Printing", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: General" ], "description": "isbn_hyphenate is a Python library to add hyphens in the right place to an ISBN (International Standard Book Number). Example:\r\n >>> import isbn_hyphenate\r\n >>> isbn_hyphenate.hyphenate(\"9781590593561\")\r\n '978-1-59059-356-1'\r\n\r\nMost libraries for handling ISBNs can not do hyphenation because it requires using a list of prefixes, available from the International ISBN Agency.\r\n\r\nisbn_hyphenate can handle both 10 and 13 digit ISBNs, and will keep the number of digits. \r\nIf the ISBN is malformed (wrong length or invalid characters) an IsbnMalformedError exception is raised. \r\nIf the correct hyphen positions cannot be determined, an IsbnUnableToHyphenateError exception is raised. \r\nThis can mean that the input ISBN is wrong, or it is in a range that is not yet in the known list.\r\n\r\nisbn_hyphenate is compatible with both Python 2 and 3.\r\n\r\nTo update the prefix list:\r\n 1. Download a new RangeMessage.xml file from https://www.isbn-international.org/range_file_generation\r\n 2. Convert it to Python format: ./isbn_xml2py.py RangeMessage.xml > isbn_lengthmaps.py\r\n\r\nThese alternative Python libraries can also hyphenate:\r\n * python-stdnum http://pypi.python.org/pypi/python-stdnum\r\n * isbnid http://code.google.com/p/isbnid/\r\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/TorKlingberg/isbn_hyphenate", "keywords": "", "license": "LGPL", "maintainer": "", "maintainer_email": "", "name": "isbn_hyphenate", "package_url": "https://pypi.org/project/isbn_hyphenate/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/isbn_hyphenate/", "project_urls": { "Homepage": "https://github.com/TorKlingberg/isbn_hyphenate" }, "release_url": "https://pypi.org/project/isbn_hyphenate/1.0.4/", "requires_dist": null, "requires_python": "", "summary": "a Python library to add hyphens in the right place to an ISBN (International Standard Book Number)", "version": "1.0.4" }, "last_serial": 1966863, "releases": { "1": [ { "comment_text": "", "digests": { "md5": "dace23f296acb2e905fe0fd7dd60c540", "sha256": "b96a4a4a4addaafe69722011e54b54be6f58335f38dc3db7c21ee82877fbc4e0" }, "downloads": -1, "filename": "isbn_hyphenate-1.tar.gz", "has_sig": false, "md5_digest": "dace23f296acb2e905fe0fd7dd60c540", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10183, "upload_time": "2012-10-13T21:11:04", "url": "https://files.pythonhosted.org/packages/d6/d5/3478ee0e905a02774a19c36eee2e114b5abedfacde745febb51b96f7bebb/isbn_hyphenate-1.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "ef23a37cab7c141f40f92b7bf9900edd", "sha256": "ede53efe60a126187f238cafe6d78344adf3ee9b1fcd6c0be483bc3b173a2a7c" }, "downloads": -1, "filename": "isbn_hyphenate-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ef23a37cab7c141f40f92b7bf9900edd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10192, "upload_time": "2012-10-13T21:18:05", "url": "https://files.pythonhosted.org/packages/e8/0e/51aabfb9821c6af976e997370f61e8961673190acfcb25ad535a4111b87a/isbn_hyphenate-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "558e512373ba93cfb7930749ae418ac8", "sha256": "2e50e49c913cbaa99a11a950a5767139d628989d54aa9c2aef0c939d6382ac74" }, "downloads": -1, "filename": "isbn_hyphenate-1.0.2.tar.gz", "has_sig": false, "md5_digest": "558e512373ba93cfb7930749ae418ac8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11165, "upload_time": "2012-12-09T18:10:47", "url": "https://files.pythonhosted.org/packages/42/b6/cabd5fc19c5b5a942a570bf9b000047dd69061ebc00aee9a6b86e66d4d59/isbn_hyphenate-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "916f14e1e85c3c805e64c66c1595806e", "sha256": "26ecb281947965f96c5bbb5b136a9f1bdf40d4e992c6b9a74c426d3dcb0e1a59" }, "downloads": -1, "filename": "isbn_hyphenate-1.0.3.tar.gz", "has_sig": false, "md5_digest": "916f14e1e85c3c805e64c66c1595806e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11212, "upload_time": "2012-12-09T18:43:55", "url": "https://files.pythonhosted.org/packages/0c/c7/96e8151dab9038a7fd9d86e0d40541ad11ced0642fe95f96450a9a13cc65/isbn_hyphenate-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "d567c80dbaad3815702d0e00cd4291b8", "sha256": "59c4c359dcb46b03a62ed4cf60a0999ac2dd53d8c9b0a87223efdde432b07a86" }, "downloads": -1, "filename": "isbn_hyphenate-1.0.4.tar.gz", "has_sig": false, "md5_digest": "d567c80dbaad3815702d0e00cd4291b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11358, "upload_time": "2016-02-20T16:47:03", "url": "https://files.pythonhosted.org/packages/28/e0/f7bec3443f5e9cd9da6d03fb684d66a91335f1186cd7830a659f8e0903a2/isbn_hyphenate-1.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d567c80dbaad3815702d0e00cd4291b8", "sha256": "59c4c359dcb46b03a62ed4cf60a0999ac2dd53d8c9b0a87223efdde432b07a86" }, "downloads": -1, "filename": "isbn_hyphenate-1.0.4.tar.gz", "has_sig": false, "md5_digest": "d567c80dbaad3815702d0e00cd4291b8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11358, "upload_time": "2016-02-20T16:47:03", "url": "https://files.pythonhosted.org/packages/28/e0/f7bec3443f5e9cd9da6d03fb684d66a91335f1186cd7830a659f8e0903a2/isbn_hyphenate-1.0.4.tar.gz" } ] }