{ "info": { "author": "Kher Yee, Ting", "author_email": "infcurious@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "## Amazing Printer\n\n[![Build Status](https://travis-ci.org/tkbky/amazing_printer.svg?branch=master)](https://travis-ci.org/tkbky/amazing_printer) [![codecov](https://codecov.io/gh/tkbky/amazing_printer/branch/master/graph/badge.svg)](https://codecov.io/gh/tkbky/amazing_printer)\n\nIt's an attempt to port the Ruby's [awesome_print](https://github.com/awesome-print/awesome_print) to Python.\n\n![the-pitch](the-pitch.png)\n\n## Install\n\n```sh\npip install amazing-printer\n```\n\n## Usage\n\n```python\nfrom amazing_printer import ap\n\nap(object, options = {})\n\n# Options:\n# sort_keys - boolean, set to sort the dictionary keys, default is False.\n# indent - integer, set the width of indentation, default is 4 spaces.\n# multiple_lines - boolean, set to print the fields for dict or list in multiple lines, default is True.\n# color - dict, set the color for different literals, default is\n# {\n# 'str': 'yellow',\n# 'list': 'blue',\n# 'tuple': 'green',\n# 'none': 'red',\n# }\n# supported colors: 'yellow', 'blue', 'green', 'red', 'black', 'magenta', 'cyan', 'white'\n```\n\n## Contributing\n\n0. Fork & clone the repository\n```sh\n$ git clone git@github.com:/amazing_printer.git\n$ cd amazing_printer\n```\n\n1. Create a virtual environment and activate it'\nThis project uses [Pipenv](https://github.com/pypa/pipenv). Follow the instruction [here](https://github.com/pypa/pipenv) to install.\n```sh\n$ pipenv shell --three\n```\n\n2. Install dependencies\n```sh\n# Install dependencies for development purpose.\n$ pipenv install --dev\n```\n\n3. Make your awesome changes\n\n4. Run test and coverage\n```sh\n# Run test\n(env) $ pytest\n# Run test with coverage report\n(env) $ pytest --cov=amazing_printer amazing_printer/tests/\n# Run specific test\n(env) $ pytest -k \"TestFormatter\"\n```\n\n5. Run test for multiple environments\nMake sure you have installed multiple versions of Python. Recommended way of managing Python version using [Pyenv](https://github.com/pyenv/pyenv)\n```sh\n(env) $ tox\n```\n\n6. Make your pull request\n\n## License\n\nCopyright (c) 2019 Kher Yee, Ting\n\nReleased under the MIT license. See [LICENSE](LICENSE) file for details.\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/tkbky/amazing_printer", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "amazing-printer", "package_url": "https://pypi.org/project/amazing-printer/", "platform": "", "project_url": "https://pypi.org/project/amazing-printer/", "project_urls": { "Homepage": "https://github.com/tkbky/amazing_printer" }, "release_url": "https://pypi.org/project/amazing-printer/0.1.0/", "requires_dist": [ "colorama (>=0.4.0)" ], "requires_python": "", "summary": "A python package that pretty prints Python objects with colors and proper indentation.", "version": "0.1.0" }, "last_serial": 5166571, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "fd0847ef90c532e3dbb114ebf3974452", "sha256": "da19a855a4d896ad8348e84d70f56343d93c8080bdf1175ff06f36d6b1f98350" }, "downloads": -1, "filename": "amazing_printer-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "fd0847ef90c532e3dbb114ebf3974452", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11775, "upload_time": "2019-03-29T13:00:19", "url": "https://files.pythonhosted.org/packages/c7/40/4702722ab88efed18f47a411192f23257d2244e5e132ff2857a4cf94b6d9/amazing_printer-0.0.1-py3-none-any.whl" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "337ef80bc6859d67275614e8a8a61f04", "sha256": "98605430f330b4247e2a3357ebf7bcdd73433c56d8e61d117b8ed71a9718e052" }, "downloads": -1, "filename": "amazing_printer-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "337ef80bc6859d67275614e8a8a61f04", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11954, "upload_time": "2019-04-20T01:01:33", "url": "https://files.pythonhosted.org/packages/fc/40/a8fe1e22e67eb7e6eb31caddbb383eb4e83a4b57108489316a5fb0af2406/amazing_printer-0.1.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "337ef80bc6859d67275614e8a8a61f04", "sha256": "98605430f330b4247e2a3357ebf7bcdd73433c56d8e61d117b8ed71a9718e052" }, "downloads": -1, "filename": "amazing_printer-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "337ef80bc6859d67275614e8a8a61f04", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 11954, "upload_time": "2019-04-20T01:01:33", "url": "https://files.pythonhosted.org/packages/fc/40/a8fe1e22e67eb7e6eb31caddbb383eb4e83a4b57108489316a5fb0af2406/amazing_printer-0.1.0-py3-none-any.whl" } ] }