{ "info": { "author": "Elliot Kroo", "author_email": "elliot@kroo.net", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "Mobi Python Library\n===================\n**This should be considered alpha quality software.**\n\nThis library provides a little API for accessing the contents of an unencrypted .mobi file. Here's a short example:\n\n```python\nfrom mobi import Mobi\n\nbook = Mobi(\"test/CharlesDarwin.mobi\");\nbook.parse();\n# this will print, 1 record at a time, the entire contents of the book\nfor record in book:\n print record\n```\nThis library provides quite a lot of access to the metadata included in any mobibook. For example, Gutenburg's Origin of the Species:\n```python\n>>> pprint(book.config)\n{'exth': {'header length': 356,\n 'identifier': 1163416648,\n 'record Count': 15,\n 'records': {100: 'Charles Darwin',\n 101: 'Project Gutenberg',\n 105: 'Natural selection',\n 106: '1999-12-01',\n 109: 'Public domain in the USA.',\n 112: 'http://www.gutenberg.org/files/2009/2009-h/2009-h.htm',\n 201: '\\x00\\x00\\x00\\x00',\n 202: '\\x00\\x00\\x00\\x01',\n 203: '\\x00\\x00\\x00\\x00',\n 204: '\\x00\\x00\\x00\\x01',\n 205: '\\x00\\x00\\x00\\x06',\n 206: '\\x00\\x00\\x00\\x02',\n 207: '\\x00\\x00\\x00)',\n 300: '\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x80\\x00 \\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\xf4\\xed\\xec\\xbe@\\x94'}},\n 'mobi': {'DRM Count': 0,\n 'DRM Flags': 0,\n 'DRM Offset': 4294967295,\n 'DRM Size': 0,\n 'EXTH flags': 80,\n 'First Image index': 334,\n 'First Non-book index': 329,\n 'Format version': 6,\n 'Full Name': 'The Origin of Species by means of Natural Selection, 6th Edition',\n 'Full Name Length': 64,\n 'Full Name Offset': 604,\n 'Generator version': 6,\n 'Has DRM': False,\n 'Has EXTH Header': True,\n 'Input Language': 0,\n 'Language': 9,\n 'Mobi type': 2,\n 'Output Language': 0,\n 'Start Offset': 2808,\n 'Unique-ID': 4046349163,\n 'header length': 232,\n 'identifier': 1297039945,\n 'text Encoding': 1252},\n 'palmdoc': {'Compression': 2,\n 'Encryption Type': 0,\n 'Unknown': 0,\n 'Unused': 0,\n 'record count': 327,\n 'record size': 4096,\n 'text length': 1336365}}\n>>>\n```\n## Retrieving Author and Title\nThe author and title of a book can be retrieved using the author() and title()\nmethods respectively on a Mobi() object. The parse() method needs to have\nalready been called.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kroo/mobi-python", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "mobi-python", "package_url": "https://pypi.org/project/mobi-python/", "platform": "", "project_url": "https://pypi.org/project/mobi-python/", "project_urls": { "Homepage": "https://github.com/kroo/mobi-python" }, "release_url": "https://pypi.org/project/mobi-python/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Mobi Python Library", "version": "0.0.1" }, "last_serial": 4951297, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "c3b39745e47b3a55ed8fd5d872b7437a", "sha256": "890a14485ee83f6973f72eb51b6117a6c6da73e52210ea4c41dad9093f1d01b8" }, "downloads": -1, "filename": "mobi_python-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c3b39745e47b3a55ed8fd5d872b7437a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7304, "upload_time": "2019-03-17T20:10:38", "url": "https://files.pythonhosted.org/packages/42/67/14d965ae770d69cbc3fd8148ba7e7c6598952bf333306a1e1b10a528f352/mobi_python-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0d96c96fe25f6a7b96be0364ec0ecd0", "sha256": "010d0ed1933ee9bf33330ac125e55f9cb956078b6e62cbdba59b3bd753f903f3" }, "downloads": -1, "filename": "mobi-python-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e0d96c96fe25f6a7b96be0364ec0ecd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5756, "upload_time": "2019-03-17T20:10:40", "url": "https://files.pythonhosted.org/packages/9f/71/a27d71594bcccc95883eb03cc3de3c2be3dda9bf024020f9b4b1d61b7451/mobi-python-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c3b39745e47b3a55ed8fd5d872b7437a", "sha256": "890a14485ee83f6973f72eb51b6117a6c6da73e52210ea4c41dad9093f1d01b8" }, "downloads": -1, "filename": "mobi_python-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "c3b39745e47b3a55ed8fd5d872b7437a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7304, "upload_time": "2019-03-17T20:10:38", "url": "https://files.pythonhosted.org/packages/42/67/14d965ae770d69cbc3fd8148ba7e7c6598952bf333306a1e1b10a528f352/mobi_python-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0d96c96fe25f6a7b96be0364ec0ecd0", "sha256": "010d0ed1933ee9bf33330ac125e55f9cb956078b6e62cbdba59b3bd753f903f3" }, "downloads": -1, "filename": "mobi-python-0.0.1.tar.gz", "has_sig": false, "md5_digest": "e0d96c96fe25f6a7b96be0364ec0ecd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5756, "upload_time": "2019-03-17T20:10:40", "url": "https://files.pythonhosted.org/packages/9f/71/a27d71594bcccc95883eb03cc3de3c2be3dda9bf024020f9b4b1d61b7451/mobi-python-0.0.1.tar.gz" } ] }