{ "info": { "author": "aGuegu", "author_email": "weihong.guan@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "wkhtmltopdf-wrapper\n===================\n\nA simple and direct python wrapper for the `wkhtmltopdf\nlib `__ inspired by inspired\nby `Qoda's\npython-wkhtmltopdf `__\n\nRequirements\n------------\n\nSystem:\n~~~~~~~\n\n- Linux 32/64 or OSX only (Windows is not supported at this stage)\n- wkhtmltopdf\n- python 2.5+ / python3\n\nInstallation\n------------\n\nwkhtmltopdf (Linux)\n~~~~~~~~~~~~~~~~~~~\n\n1. Install Fonts:\n\n.. code:: bash\n\n $ sudo apt-get install xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic\n\n2. Install wkhtmltopdf\n\ngoto http://wkhtmltopdf.org/downloads.html for the latest release\n(Recommended)\n\nwkhtmltopdf (OSX)\n~~~~~~~~~~~~~~~~~\n\nor goto http://wkhtmltopdf.org/downloads.html for the latest release\n(Recommended)\n\nwkhtmltopdf-wrapper (Any Platform)\n----------------------------------\n\n1. PIP:\n\n.. code:: bash\n\n $ pip install wkhtmltopdf-wrapper\n\nor\n\n.. code:: bash\n\n $ pip install git+https://github.com/aguegu/wkhtmltopdf-wrapper.git\n\n2. Development:\n\n.. code:: bash\n\n $ git clone https://github.com/aguegu/wkhtmltopdf-wrapper.git\n $ cd wkhtmltopdf-wrapper\n $ virtualenv .\n $ pip install -r requirements.pip\n\nUsage\n=====\n\nthe option\\_string would be sent to the wkhtmltopdf command line in\nexactly the same shape. so the options can be anything as long as the\nwkhtmltopdf supports. check its\n`usage `__. This lib is\njust as simple as that. If anything goes wrong, just check the doc. If\nthe command execute ok with wkhtmltopdf dircetly, this wrapper should\nwork too.\n\nAs I check\n`qoda/python-wkhtmltopdf `__,\nwhere this repo forked from, it tried to prase args. But it only include\na small set of the arguments the command supports. Furthermore, it set\ndefault values to this set of arguments and pass them all to the\ncommand. For me, it is totally unnecessary and even mistakeful. There is\ndefault setting setup and doc in the command. Some arugments may not\neven work together, as ``--page-size`` and ``--page-height``,\n``--page-width``. So my solution is just pass the option in as a string,\nLazy, flexible and effective.\n\nfrom class:\n~~~~~~~~~~~\n\n.. code:: python\n\n from wkhtmltopdfwrapper import WKHtmlToPdf\n \n wkhtmltopdf = WKHtmlToPdf('-T 20 -B 20 -g --zoom 1.5')\n # option_string\n \n wkhtmltopdf.render('http://www.example.com', '~/example.pdf')\n # source url, output file path\n\nfrom method:\n~~~~~~~~~~~~\n\n.. code:: python\n\n from wkhtmltopdfwrapper import wkhtmltopdf\n wkhtmltopdf('example.com', '~/example.pdf', '-T 20 -B 20 -g --zoom 1.5')\n\nfrom commandline (installed):\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: bash\n\n $ python -m wkhtmltopdfwrapper.__init__ example.com ~/example.pdf -T 20 -B 20 -g --zoom 1.5\n\n\nAuthors:\n========\n\n- Jonathan Bydendyk (jpbydendyk@gmail.com)\n- Weihong Guan (weihong.guan@gmail.com)", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/aguegu/wkhtmltopdf-wrapper", "keywords": "wkhtmltopdf pdf", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "wkhtmltopdf-wrapper", "package_url": "https://pypi.org/project/wkhtmltopdf-wrapper/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/wkhtmltopdf-wrapper/", "project_urls": { "Homepage": "http://github.com/aguegu/wkhtmltopdf-wrapper" }, "release_url": "https://pypi.org/project/wkhtmltopdf-wrapper/0.3.3/", "requires_dist": null, "requires_python": null, "summary": "A Simpler python wrapper for wkhtmltopdf, inspired by Qoda's python-wkhtmltopdf", "version": "0.3.3" }, "last_serial": 1490403, "releases": { "0.3.1": [], "0.3.2": [ { "comment_text": "", "digests": { "md5": "9fdfd03d6ff02bc03f65ea0dea150669", "sha256": "ed2ca8f13a92965f180a86d934d7a2564d76e443e0cc2e7996bc26fdefb27c44" }, "downloads": -1, "filename": "wkhtmltopdf_wrapper-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9fdfd03d6ff02bc03f65ea0dea150669", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5291, "upload_time": "2015-04-04T03:02:55", "url": "https://files.pythonhosted.org/packages/d0/91/6194b645434091a2eda38e74e1677c385798b10b1956805a9c53dd9c2c5f/wkhtmltopdf_wrapper-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "63ddb2a3203cc4325b0e5bc2daff49ef", "sha256": "c44897e1cc2e1fb8a3a6700aaebcfe3a46e908e312f68d3d3cff2abbfc9d3bba" }, "downloads": -1, "filename": "wkhtmltopdf-wrapper-0.3.2.tar.gz", "has_sig": false, "md5_digest": "63ddb2a3203cc4325b0e5bc2daff49ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3513, "upload_time": "2015-04-04T03:02:49", "url": "https://files.pythonhosted.org/packages/18/16/bee61eaa735d10c79068b1bcb36de905c66cdfd4ba9278dd477fe5b372d1/wkhtmltopdf-wrapper-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "d679ef672fcb0a2a2a607467074bb1b8", "sha256": "dcb8a9cd50d5811f91cf632761fa8d0759e0e2d7f5ad83da0b0671e2f870aedb" }, "downloads": -1, "filename": "wkhtmltopdf_wrapper-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d679ef672fcb0a2a2a607467074bb1b8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5396, "upload_time": "2015-04-04T03:13:12", "url": "https://files.pythonhosted.org/packages/fc/36/9c8c162292bd4834a87d1f4dbc5793a778774eff4ffce61e3cdbb4411ded/wkhtmltopdf_wrapper-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c58d2f708dd01dc703d1058ea2ae8861", "sha256": "0e0953f409656ca1502152e0a312504b23fd2f7da1f1dc6a48f331ff52709331" }, "downloads": -1, "filename": "wkhtmltopdf-wrapper-0.3.3.tar.gz", "has_sig": false, "md5_digest": "c58d2f708dd01dc703d1058ea2ae8861", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3638, "upload_time": "2015-04-04T03:13:07", "url": "https://files.pythonhosted.org/packages/04/84/590e4a486ae56d5e95af7c52d07aa486f5b044b74bf4abaa4a3e2d9c2cb7/wkhtmltopdf-wrapper-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d679ef672fcb0a2a2a607467074bb1b8", "sha256": "dcb8a9cd50d5811f91cf632761fa8d0759e0e2d7f5ad83da0b0671e2f870aedb" }, "downloads": -1, "filename": "wkhtmltopdf_wrapper-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d679ef672fcb0a2a2a607467074bb1b8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5396, "upload_time": "2015-04-04T03:13:12", "url": "https://files.pythonhosted.org/packages/fc/36/9c8c162292bd4834a87d1f4dbc5793a778774eff4ffce61e3cdbb4411ded/wkhtmltopdf_wrapper-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c58d2f708dd01dc703d1058ea2ae8861", "sha256": "0e0953f409656ca1502152e0a312504b23fd2f7da1f1dc6a48f331ff52709331" }, "downloads": -1, "filename": "wkhtmltopdf-wrapper-0.3.3.tar.gz", "has_sig": false, "md5_digest": "c58d2f708dd01dc703d1058ea2ae8861", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3638, "upload_time": "2015-04-04T03:13:07", "url": "https://files.pythonhosted.org/packages/04/84/590e4a486ae56d5e95af7c52d07aa486f5b044b74bf4abaa4a3e2d9c2cb7/wkhtmltopdf-wrapper-0.3.3.tar.gz" } ] }