{ "info": { "author": "Tushar Gautam", "author_email": "tushar.rishav@gmail.com", "bugtrack_url": null, "classifiers": [ "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: System :: Monitoring" ], "description": "Code2pdf \n--------------\n\nConvert various source code into pdf file with syntax highlighting and many more\nfeatures\n\n`Demo`_\n-------\n Click above for demo\n\nDependencies\n~~~~~~~~~~~~\n\n`PyQt `__\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nInstallation\n~~~~~~~~~~~~\n\nBuild from source\n'''''''''''''''''\n\n.. code:: sh\n\n git clone https://github.com/tushar-rishav/code2pdf.git\n cd code2pdf\n python setup.py install\n\nOr\n\nUsing pip\n'''''''''\n\n.. code:: sh\n\n pip install code2pdf\n\nUsage\n~~~~~\n\nA. As console app\n'''''''''''''''''\n\nHelp\n \n\n.. code:: sh\n\n code2pdf -h\n\nUsage\n \n\n``code2pdf [-h] [-l] [-s SIZE] [-S NAME] [-v] filename [outputfile]``\n\nOptions\n \n\n.. code:: sh\n\n positional arguments:\n filename absolute path of the python file\n outputfile absolute path of the output pdf file\n\n optional arguments:\n -h, --help show this help message and exit\n -l, --linenos include line numbers.\n -s SIZE, --size SIZE PDF size. A2,A3,A4,A5 etc\n -S NAME, --style NAME\n the style name for highlighting. Eg. emacs, vim style etc.\n -v, --version show program's version number and exit\n\nAvailable style types are\n \n\n- [x] autumn\n- [x] borland\n- [x] bw\n- [x] colorful\n- [x] default\n- [x] emacs\n- [x] friendly\n- [x] fruity\n- [x] igor\n- [x] manni\n- [x] monokai\n- [x] murphy\n- [x] native\n- [x] paraiso-dark\n- [x] paraiso-light\n- [x] pastie\n- [x] perldoc\n- [x] rrt\n- [x] tango\n- [x] trac\n- [x] vim\n- [x] vs\n- [x] xcode\n\nExample\n \n\n.. code:: sh\n\n code2pdf -l -s a3 -S emacs ~/Code2Pdf/Code2pdf/code2pdf.py ~/Code2Pdf/Demo/demo.pdf\n\nTo see the demo for above check ``Demo/`` in github repo\n\nB. As module\n''''''''''''\n\n.. code:: py\n\n \n from Code2pdf.code2pdf import Code2pdf\n ifile,ofile,size = \"test.py\", \"test.pdf\", \"A4\"\n pdf = Code2pdf(ifile, ofile, size) # create the Code2pdf object\n pdf.init_print() # call print method to print pdf\n\nContributions\n~~~~~~~~~~~~~\n\nHave an idea to make it better? Go ahead! I will be happy to see a pull\nrequest from you! :blush:\nWhile creating a PR, please update the *Contributor* section too( see below ).\n\nContributor\n~~~~~~~~~~~\n\n`Christopher Welborn `__\n\n`cclauss `__\n\nLicense\n~~~~~~~\n\n.. figure:: https://cloud.githubusercontent.com/assets/7397433/9025904/67008062-3936-11e5-8803-e5b164a0dfc0.png\n :alt: gpl\n.. _Demo: https://cloud.githubusercontent.com/assets/7397433/10060934/645a3cc6-6272-11e5-9ebb-a1ac24c86d67.gif", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/tushar-rishav/code2pdf/", "keywords": "pdf,markup,formatting,convert code to pdf,python", "license": "GNU General Public License v3 (GPLv3)", "maintainer": null, "maintainer_email": null, "name": "Code2pdf", "package_url": "https://pypi.org/project/Code2pdf/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Code2pdf/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/tushar-rishav/code2pdf/" }, "release_url": "https://pypi.org/project/Code2pdf/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Converts given source code into pdf file with syntax highlighting, line numbers and much more", "version": "1.0.0" }, "last_serial": 2049926, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "744fc2a65155590acadfe22ab1be91c9", "sha256": "7796600262813c69e30afba6543e8cb7527f2b0d30e0efbf894c96a389b485d3" }, "downloads": -1, "filename": "Code2pdf-0.0.1.tar.gz", "has_sig": false, "md5_digest": "744fc2a65155590acadfe22ab1be91c9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3295, "upload_time": "2015-09-23T22:04:25", "url": "https://files.pythonhosted.org/packages/1d/b6/252fb3f3bce48e9c8612d756d6cf16419e128dadcfbe6ff85a95e73c8f52/Code2pdf-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "9f2634153439cc230a35ec8846f0471c", "sha256": "fc640cfb0dfd8d5eba041201cedde7777eaeb8cc603afeddda5cdbd76fe476d1" }, "downloads": -1, "filename": "Code2pdf-0.0.2.tar.gz", "has_sig": false, "md5_digest": "9f2634153439cc230a35ec8846f0471c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4688, "upload_time": "2015-10-05T23:12:55", "url": "https://files.pythonhosted.org/packages/a4/b1/dca88e61eb1037a1d28e53217148e17cb936969c9672eda2287c5104886f/Code2pdf-0.0.2.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "09fe50ea9d32e7bdb1c4b79fc39fbf5e", "sha256": "f2d73b942a62262927bf78e8a50d656b761eed8a75030606e63a3e4a54030b2f" }, "downloads": -1, "filename": "Code2pdf-1.0.0.tar.gz", "has_sig": false, "md5_digest": "09fe50ea9d32e7bdb1c4b79fc39fbf5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4755, "upload_time": "2016-04-06T20:11:29", "url": "https://files.pythonhosted.org/packages/d6/58/6d6fe09138107ced2506bea6615f18c11e7de63b2b6051cdfc88e379162c/Code2pdf-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "09fe50ea9d32e7bdb1c4b79fc39fbf5e", "sha256": "f2d73b942a62262927bf78e8a50d656b761eed8a75030606e63a3e4a54030b2f" }, "downloads": -1, "filename": "Code2pdf-1.0.0.tar.gz", "has_sig": false, "md5_digest": "09fe50ea9d32e7bdb1c4b79fc39fbf5e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4755, "upload_time": "2016-04-06T20:11:29", "url": "https://files.pythonhosted.org/packages/d6/58/6d6fe09138107ced2506bea6615f18c11e7de63b2b6051cdfc88e379162c/Code2pdf-1.0.0.tar.gz" } ] }