{ "info": { "author": "huntzhan", "author_email": "programmer.zhx@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries" ], "description": "\n# Install\n\n```\npip install bookmd\n```\n\n# Usage\n\n```\nUsage: bookmd [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n --help Show this message and exit.\n\nCommands:\n init\n query\n template\n transform\n```\n\n## `init`\n\ninitialize directory structure.\n\n```\n$ mkdir /some/directory\n$ cd /some/directory\n$ bookmd init\n$ ls -al\ntotal 0\ndrwxr-xr-x 4 haoxun staff 136 Dec 8 21:58 .\ndrwxr-xr-x 24 haoxun staff 816 Dec 8 21:56 ..\ndrwxr-xr-x 3 haoxun staff 102 Dec 8 20:35 .bookmd-db\ndrwxr-xr-x 3 haoxun staff 102 Dec 8 17:50 isbn\n```\n\n## `query`\n\ndrop one or more ISBN files to the `./isbn`, then run\n\n```\n$ bookmd query\n```\n\nthis command would query douban api for book infos and cache the result to\n`./.bookmd-db`.\n\n## `template`\n\ngenerate markdown template.\n\n\n```\n$ bookmd template list ./template.md\n$ bookmd template list --keys='title,rating[average]' ./template.md\n$ bookmd template table ./template.md\n$ bookmd template table --keys='title,rating[average]' ./template.md\n```\n\nexample of `list`:\n\n```\n* {{ isbn=\"9787302311850\" template=\"[{title}]({alt})\" }}\n* {{ isbn=\"9787115279262\" template=\"[{title}]({alt})\" }}\n* {{ isbn=\"9787111423140\" template=\"[{title}]({alt})\" }}\n* {{ isbn=\"9787115392497\" template=\"[{title}]({alt})\" }}\n* {{ isbn=\"9781101873854\" template=\"[{title}]({alt})\" }}\n```\n\nexample of `table`:\n\n```\n| title | author | rating |\n| --- | --- | --- |\n{{ isbn=\"9787302311850\" template=\"| [{title}]({alt}) | {author[0]} | {rating[average]} |\" }}\n{{ isbn=\"9787115279262\" template=\"| [{title}]({alt}) | {author[0]} | {rating[average]} |\" }}\n{{ isbn=\"9787111423140\" template=\"| [{title}]({alt}) | {author[0]} | {rating[average]} |\" }}\n{{ isbn=\"9787115392497\" template=\"| [{title}]({alt}) | {author[0]} | {rating[average]} |\" }}\n{{ isbn=\"9781101873854\" template=\"| [{title}]({alt}) | {author[0]} | {rating[average]} |\" }}\n```\n\n## `transform`\n\nrender templates.\n\n```\n$ bookmd transform ./template.md ./doc.md\n```\n\nexample of generaeted:\n\n```\n* [\u7b97\u6cd5\u8bbe\u8ba1\u4e0e\u5206\u6790\u57fa\u7840](https://book.douban.com/subject/24708288/)\n* [\u91d1\u9886\u7b80\u5386](https://book.douban.com/subject/10779571/)\n* [R\u8bed\u8a00\u7f16\u7a0b\u827a\u672f](https://book.douban.com/subject/24699632/)\n* [\u8ba1\u7b97\u5e7f\u544a](https://book.douban.com/subject/26596778/)\n* [Word Power Made Easy](https://book.douban.com/subject/25977798/)\n```\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "bookmd", "package_url": "https://pypi.org/project/bookmd/", "platform": "", "project_url": "https://pypi.org/project/bookmd/", "project_urls": null, "release_url": "https://pypi.org/project/bookmd/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "An Example Python Project.", "version": "0.1.1" }, "last_serial": 2508271, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "0b1cb53d5afac6b86e26756ff6986317", "sha256": "dc53910ce05dcac832d60b0a1b1556e1d3ebd760482c9a2a02349fad114daba6" }, "downloads": -1, "filename": "bookmd-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0b1cb53d5afac6b86e26756ff6986317", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 8846, "upload_time": "2016-12-08T14:14:09", "url": "https://files.pythonhosted.org/packages/21/ac/f30441327910e05c6239d5a7d31a76f3870f5ddf222ba745d37e1b3517f9/bookmd-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "74494372acb9544ff74cb303e0dea04e", "sha256": "76b8be4f4bde45659469d3afa5062c76dd92ee0d488fe91615186538a197a903" }, "downloads": -1, "filename": "bookmd-0.1.0.tar.gz", "has_sig": false, "md5_digest": "74494372acb9544ff74cb303e0dea04e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7782, "upload_time": "2016-12-08T14:14:02", "url": "https://files.pythonhosted.org/packages/e9/37/990dc08a0d929e79161dc2ba6105a38d4f3fe8a1fbb258197839ee2a5f72/bookmd-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "9232dcd5f8ae9299f62aa4d8384d2bfc", "sha256": "c26afd6a5d5720371189955c30ccba336320e843b057159eea66e2a5362a1daa" }, "downloads": -1, "filename": "bookmd-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9232dcd5f8ae9299f62aa4d8384d2bfc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9051, "upload_time": "2016-12-09T07:08:43", "url": "https://files.pythonhosted.org/packages/52/9a/555645f7e0b4b7e40b11fe7d4d6af0daf31c7677416be524b737211d6541/bookmd-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b81b830a7acbb2f884ffc15e5f30c6ca", "sha256": "2aef032c46b0a7b82fe191561ae0b11f95527bdea0843fe85fcf4aa5549afdc0" }, "downloads": -1, "filename": "bookmd-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b81b830a7acbb2f884ffc15e5f30c6ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8104, "upload_time": "2016-12-09T07:08:38", "url": "https://files.pythonhosted.org/packages/46/21/9598cf52924e366db977d390c938bdd44ebc5ebbf07956efd3b0f777020b/bookmd-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9232dcd5f8ae9299f62aa4d8384d2bfc", "sha256": "c26afd6a5d5720371189955c30ccba336320e843b057159eea66e2a5362a1daa" }, "downloads": -1, "filename": "bookmd-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9232dcd5f8ae9299f62aa4d8384d2bfc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 9051, "upload_time": "2016-12-09T07:08:43", "url": "https://files.pythonhosted.org/packages/52/9a/555645f7e0b4b7e40b11fe7d4d6af0daf31c7677416be524b737211d6541/bookmd-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b81b830a7acbb2f884ffc15e5f30c6ca", "sha256": "2aef032c46b0a7b82fe191561ae0b11f95527bdea0843fe85fcf4aa5549afdc0" }, "downloads": -1, "filename": "bookmd-0.1.1.tar.gz", "has_sig": false, "md5_digest": "b81b830a7acbb2f884ffc15e5f30c6ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8104, "upload_time": "2016-12-09T07:08:38", "url": "https://files.pythonhosted.org/packages/46/21/9598cf52924e366db977d390c938bdd44ebc5ebbf07956efd3b0f777020b/bookmd-0.1.1.tar.gz" } ] }