{ "info": { "author": "Pradyun Gedam", "author_email": "pradyunsg@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License" ], "description": "# dprint\n\nA printing debugging helper.\n\n## Motivation\n\n`dprint` is inspired by a [python-ideas thread][1], to show what's possible \nwith a little bit of magic with plain Python code.\n\n## Installation\n\nIt's on PyPI as `dprint`. The obvious way will just work:\n\n```\npip install dprint\n```\n\n## Usage\n\nImport the function `dprint` from the `dprint` module.\n\n```py\nfrom dprint import dprint\n\n\ndef spam():\n eggs = 10\n dprint(eggs * 2)\n\nspam()\n```\n\nRunning the above script gives:\n\n```\n$ python script.py\nscript.py:6 in spam\n eggs * 2 -> 20\n```\n\n## Operational Assumptions\n\nThe current logic for figuring out the expression passed to dprint operates under some assumptions:\n\n- The imported function must be called `dprint`\n- A call should span no more than 1 line\n- No more than 1 call on 1 line\n\nA future version might relax these assumptions.\n\n## License\n\nAll files in this repository are under the MIT license.\n\n[1]: https://mail.python.org/pipermail/python-ideas/2018-April/050113.html\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/pradyunsg/dprint", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "dprint", "package_url": "https://pypi.org/project/dprint/", "platform": "", "project_url": "https://pypi.org/project/dprint/", "project_urls": { "Homepage": "https://github.com/pradyunsg/dprint" }, "release_url": "https://pypi.org/project/dprint/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A printing debugging helper.", "version": "0.1.0" }, "last_serial": 3824737, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "2c369a5fd5b6cb2336117c9f1f8775e8", "sha256": "bbb814f9fbf4d22e1bd17e7c7ce397ba23ac7fba62439faa4272a0975b0f24d1" }, "downloads": -1, "filename": "dprint-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2c369a5fd5b6cb2336117c9f1f8775e8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7370, "upload_time": "2018-05-01T18:57:07", "url": "https://files.pythonhosted.org/packages/00/1e/d83f6d2f0ec1bcc4140a6865e462ea232ba80854aafb4d7af97ac72adc04/dprint-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "edb7434d23c4a5f6666bca1b4a770d7e", "sha256": "103af899be7f27a0be60cd16ae6cd3a86548e29057067a79ad6e14091c0b0a1b" }, "downloads": -1, "filename": "dprint-0.1.0.tar.gz", "has_sig": false, "md5_digest": "edb7434d23c4a5f6666bca1b4a770d7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4431, "upload_time": "2018-05-01T18:57:15", "url": "https://files.pythonhosted.org/packages/21/16/008612c155e93b66e384ae2eba946f158afdecac232254a3b8062e61593d/dprint-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2c369a5fd5b6cb2336117c9f1f8775e8", "sha256": "bbb814f9fbf4d22e1bd17e7c7ce397ba23ac7fba62439faa4272a0975b0f24d1" }, "downloads": -1, "filename": "dprint-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2c369a5fd5b6cb2336117c9f1f8775e8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7370, "upload_time": "2018-05-01T18:57:07", "url": "https://files.pythonhosted.org/packages/00/1e/d83f6d2f0ec1bcc4140a6865e462ea232ba80854aafb4d7af97ac72adc04/dprint-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "edb7434d23c4a5f6666bca1b4a770d7e", "sha256": "103af899be7f27a0be60cd16ae6cd3a86548e29057067a79ad6e14091c0b0a1b" }, "downloads": -1, "filename": "dprint-0.1.0.tar.gz", "has_sig": false, "md5_digest": "edb7434d23c4a5f6666bca1b4a770d7e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4431, "upload_time": "2018-05-01T18:57:15", "url": "https://files.pythonhosted.org/packages/21/16/008612c155e93b66e384ae2eba946f158afdecac232254a3b8062e61593d/dprint-0.1.0.tar.gz" } ] }