{ "info": { "author": "Peter Pentchev", "author_email": "roam@ringlet.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: DFSG approved", "License :: Freely Distributable", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# trivrepr - a helper for generating repr() strings\n\n## Description\n\nThe trivrepr module contains the TrivialRepr class that may be\nderived from to provide an implementation of `__repr__()` for\nsimple classes that have all their attributes passed directly to\nthe constructor.\n\n import trivrepr\n\n class KeyValue(trivrepr.TrivialRepr):\n def __init__(self, key, value, more='hi'):\n super(KeyValue, self).__init__()\n self.key = key\n self.value = value\n self.more = more\n\n kv = KeyValue(key='key', value='val')\n print(repr(kv))\n\nThis program will output:\n\n KeyValue(key='key', value='val', more='hi')\n\nThe trivrepr module is fully typed.\n\n## Version history\n\n- 0.1.1 (2019-03-07)\n - Add the news.py tool for preparing the distribution changelog.\n - Correct the project's homepage URL.\n - Use setuptools-git to include more files in the sdist tarball.\n\n- 0.1.0 (2019-03-06)\n - Initial public release.\n\n## Author\n\nPeter Pentchev \n\n## Copyright and license\n\n Copyright (c) 2019 Peter Pentchev \n All rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n 1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n 2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n \n THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND\n ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE\n FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\n DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS\n OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\n HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\n LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\n OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\n SUCH DAMAGE.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://devel.ringlet.net/devel/trivrepr/", "keywords": "", "license": "BSD-2", "maintainer": "", "maintainer_email": "", "name": "trivrepr", "package_url": "https://pypi.org/project/trivrepr/", "platform": "", "project_url": "https://pypi.org/project/trivrepr/", "project_urls": { "Homepage": "https://devel.ringlet.net/devel/trivrepr/" }, "release_url": "https://pypi.org/project/trivrepr/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Provide a helper for creating repr() strings", "version": "0.1.1" }, "last_serial": 4910039, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "b720715ba3c0f87341eba1b5247d3dd5", "sha256": "8fee3b3c01298adadcb1e6200255e179e24b616fe039d1ec31d060d6dcedf076" }, "downloads": -1, "filename": "trivrepr-0.1.0-py3-none-any.whl", "has_sig": true, "md5_digest": "b720715ba3c0f87341eba1b5247d3dd5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4309, "upload_time": "2019-03-06T15:29:35", "url": "https://files.pythonhosted.org/packages/7f/45/010ebab97d2939aeb028e24f7b1f8cd83ce88f5a3a8c506a3dec94fc9e78/trivrepr-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "505e3df7c5e2aab23392d199cf869449", "sha256": "fb04c436e0c9ae0234636715e978202f5c124e1eef26e2fb5e42e5b362d4e46f" }, "downloads": -1, "filename": "trivrepr-0.1.0.tar.gz", "has_sig": true, "md5_digest": "505e3df7c5e2aab23392d199cf869449", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3511, "upload_time": "2019-03-06T15:26:49", "url": "https://files.pythonhosted.org/packages/ff/69/4bdb5181eddcbf8f4e8f38e0dbeabf93aee5701c5dbe8c557a3a73ae909d/trivrepr-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b92c504ffdff327b6a68b65c4a5e815c", "sha256": "f58eddc29f1112230f9c40e573371cd531b95de0d53a0ccfbc693189b85fa43f" }, "downloads": -1, "filename": "trivrepr-0.1.1-py3-none-any.whl", "has_sig": true, "md5_digest": "b92c504ffdff327b6a68b65c4a5e815c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4401, "upload_time": "2019-03-07T12:46:21", "url": "https://files.pythonhosted.org/packages/46/ef/996aaeda8d4759cd7d55119b7a702f04835feb59e14a95912f071321eda9/trivrepr-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a67f8629c45c30e6dd1cca7b5aeff953", "sha256": "78be0f617bf7d95dbd170e67311ea865a5e05fe7fca2be280d97a00b0fb44447" }, "downloads": -1, "filename": "trivrepr-0.1.1.tar.gz", "has_sig": true, "md5_digest": "a67f8629c45c30e6dd1cca7b5aeff953", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5003, "upload_time": "2019-03-07T12:42:55", "url": "https://files.pythonhosted.org/packages/1c/f3/2837e7329230d7d8833f3cccdcbf4a547b367e8dae104b019909c42a9c26/trivrepr-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b92c504ffdff327b6a68b65c4a5e815c", "sha256": "f58eddc29f1112230f9c40e573371cd531b95de0d53a0ccfbc693189b85fa43f" }, "downloads": -1, "filename": "trivrepr-0.1.1-py3-none-any.whl", "has_sig": true, "md5_digest": "b92c504ffdff327b6a68b65c4a5e815c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4401, "upload_time": "2019-03-07T12:46:21", "url": "https://files.pythonhosted.org/packages/46/ef/996aaeda8d4759cd7d55119b7a702f04835feb59e14a95912f071321eda9/trivrepr-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a67f8629c45c30e6dd1cca7b5aeff953", "sha256": "78be0f617bf7d95dbd170e67311ea865a5e05fe7fca2be280d97a00b0fb44447" }, "downloads": -1, "filename": "trivrepr-0.1.1.tar.gz", "has_sig": true, "md5_digest": "a67f8629c45c30e6dd1cca7b5aeff953", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5003, "upload_time": "2019-03-07T12:42:55", "url": "https://files.pythonhosted.org/packages/1c/f3/2837e7329230d7d8833f3cccdcbf4a547b367e8dae104b019909c42a9c26/trivrepr-0.1.1.tar.gz" } ] }