{ "info": { "author": "Ezekiel Naa Bukari", "author_email": "enbukari@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "# comparative\nImplement comparison magic methods in one line!\n\n\n## Usage\n```python\nfrom comparative import compare_by\n\n@compare_by(\"hour\", \"minute\", \"second\")\nclass Clock:\n\n def __int__(self, hour=0, minute=0, second=0):\n self.hour = hour\n self.minute = mintue\n self.second = second\n\n def __repr__(self):\n return (\"Clock(h={0.hour:}, m={0.minute:02d}, \"\n \"s={0.second:02d})\").format(self)\n\n def __str__(self):\n return \"{0.hour:02d}:{0.minute:02d}:{0.second:02d}\".format(self)\n```\n\n\n## Just Add Water\n```python\n>>> clock1 = Clock(8, 0, 0)\n>>> clock2 = Clock(8, 0, 1)\n>>> clock3 = Clock(8, 0, 0)\n>>> clock1 < clock2\nTrue\n>>> clock1 == clock2\nFalse\n>>> clock1 == clock3\nTrue\n```\nt@o55bhDr%\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/ebukari/comparative", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "comparative", "package_url": "https://pypi.org/project/comparative/", "platform": "", "project_url": "https://pypi.org/project/comparative/", "project_urls": { "Homepage": "https://github.com/ebukari/comparative" }, "release_url": "https://pypi.org/project/comparative/0.0.2/", "requires_dist": null, "requires_python": "", "summary": "Implement comparison magic methods in one line!", "version": "0.0.2" }, "last_serial": 4948959, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "08a6be65368d487fd2bbee7aed82d41d", "sha256": "4f4a09b8681c623bb90e553853b657b4ce4675897cd71750984c84d99ea2209d" }, "downloads": -1, "filename": "comparative-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "08a6be65368d487fd2bbee7aed82d41d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14706, "upload_time": "2019-03-16T22:40:44", "url": "https://files.pythonhosted.org/packages/66/6e/251e1b4389078a03c42e4440fcb90a2d788d5527e2fcef765b5edbf27211/comparative-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "329315f8cda0bbf47a7b3cc9dea52f1e", "sha256": "2a428ab968d36919bf66da1356072d15379ecb2c64270643664f48bc4293a0e7" }, "downloads": -1, "filename": "comparative-0.0.1.tar.gz", "has_sig": false, "md5_digest": "329315f8cda0bbf47a7b3cc9dea52f1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1859, "upload_time": "2019-03-16T22:40:48", "url": "https://files.pythonhosted.org/packages/9b/38/4ef7ac8da80dd0a9656ee5cc74aea260ace8f73c52c01805f8a71928ccba/comparative-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "1bebc5db994d39bb7722cf3c35627fe2", "sha256": "575a87014d917349b5116ae99ae3e1e709d7ed8a1eb38c59e476f778cc22e3ce" }, "downloads": -1, "filename": "comparative-0.0.2-py3.7.egg", "has_sig": false, "md5_digest": "1bebc5db994d39bb7722cf3c35627fe2", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 3288, "upload_time": "2019-03-16T22:40:50", "url": "https://files.pythonhosted.org/packages/e1/b2/beaee3992b8a2a031b3ca63ae44b6f997d86807b7770d11ca79f7d9cb719/comparative-0.0.2-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "0d43b76713249f5aad3f96c0b71175de", "sha256": "99781716210ccf8a0bfddde066ff0166bc2647ec116c58e5cda3282d88396f1b" }, "downloads": -1, "filename": "comparative-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0d43b76713249f5aad3f96c0b71175de", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14709, "upload_time": "2019-03-16T22:40:47", "url": "https://files.pythonhosted.org/packages/a6/70/4a1161e98a3c2e38c0dd7edf33b15db2005c2d454eeb79e68b2231e133eb/comparative-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a29962cfff8a9190f80e948f645e6874", "sha256": "b9a6531170d90b7474eb3d6972367ac4e9c308b793bacdc8642c276eda41302d" }, "downloads": -1, "filename": "comparative-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a29962cfff8a9190f80e948f645e6874", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1857, "upload_time": "2019-03-16T22:40:51", "url": "https://files.pythonhosted.org/packages/92/37/55b8ca5b436536ff74506a87ab7a219e2289f9935e307382cdcc1e124918/comparative-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1bebc5db994d39bb7722cf3c35627fe2", "sha256": "575a87014d917349b5116ae99ae3e1e709d7ed8a1eb38c59e476f778cc22e3ce" }, "downloads": -1, "filename": "comparative-0.0.2-py3.7.egg", "has_sig": false, "md5_digest": "1bebc5db994d39bb7722cf3c35627fe2", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 3288, "upload_time": "2019-03-16T22:40:50", "url": "https://files.pythonhosted.org/packages/e1/b2/beaee3992b8a2a031b3ca63ae44b6f997d86807b7770d11ca79f7d9cb719/comparative-0.0.2-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "0d43b76713249f5aad3f96c0b71175de", "sha256": "99781716210ccf8a0bfddde066ff0166bc2647ec116c58e5cda3282d88396f1b" }, "downloads": -1, "filename": "comparative-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0d43b76713249f5aad3f96c0b71175de", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14709, "upload_time": "2019-03-16T22:40:47", "url": "https://files.pythonhosted.org/packages/a6/70/4a1161e98a3c2e38c0dd7edf33b15db2005c2d454eeb79e68b2231e133eb/comparative-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a29962cfff8a9190f80e948f645e6874", "sha256": "b9a6531170d90b7474eb3d6972367ac4e9c308b793bacdc8642c276eda41302d" }, "downloads": -1, "filename": "comparative-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a29962cfff8a9190f80e948f645e6874", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1857, "upload_time": "2019-03-16T22:40:51", "url": "https://files.pythonhosted.org/packages/92/37/55b8ca5b436536ff74506a87ab7a219e2289f9935e307382cdcc1e124918/comparative-0.0.2.tar.gz" } ] }