{ "info": { "author": "sunao", "author_email": "sunao_0626@hotmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python :: 3" ], "description": "# afivmax\n\n[![Build Status](https://travis-ci.com/eggachecat/afivmax.svg?branch=master)](https://travis-ci.com/eggachecat/afivmax)\n[![PyPI version](https://badge.fury.io/py/afivmax.svg)](https://badge.fury.io/py/afivmax)\n[![Coverage Status](https://coveralls.io/repos/github/eggachecat/afivmax/badge.svg?branch=master&kill_cache=1)](https://coveralls.io/github/eggachecat/afivmax?branch=master)\n[![Documentation Status](https://readthedocs.org/projects/afivmax/badge/?version=latest)](https://afivmax.readthedocs.io/en/latest/?badge=latest)\n\n# \u5b89\u88c5\n```pip install afivmax```\n\n# \u4f7f\u7528\n```python\nfrom afivmax.afivmax import afiv_max\n# args\nassert 3 == afiv_max(1, 2, 3)\nassert 3 == afiv_max(3, 3, 3)\n\n\n# args with key\nassert 3 ==afiv_max(1, 2, 3, key=lambda x: x ** 2)\nclass TmpClass:\n def __init__(self, x):\n self.val = x\nassert 9 == afiv_max(*[TmpClass(x) for x in range(10)], key=lambda x: x.val).val\n\n\n# iterables\nassert 3 == afiv_max([1, 2, 3])\nassert 3 == afiv_max([3, 2, 1])\nassert 3 == afiv_max([3])\n\n# iterables with keys\nassert 3 == afiv_max([1, 2, 3], key=lambda x: x ** 2)\nassert 9 == afiv_max([TmpClass(x) for x in range(10)], key=lambda x: x.val).val\n\n# iterables with default\nassert 10 == afiv_max([], default=10), \"iterable with default only\"\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/eggachecat/afivmax", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "afivmax", "package_url": "https://pypi.org/project/afivmax/", "platform": "", "project_url": "https://pypi.org/project/afivmax/", "project_urls": { "Homepage": "https://github.com/eggachecat/afivmax" }, "release_url": "https://pypi.org/project/afivmax/0.3.0/", "requires_dist": null, "requires_python": "", "summary": "Interview problem of Ant Fin", "version": "0.3.0" }, "last_serial": 5457576, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "545d7a4349506f315b2ca056cd26be25", "sha256": "8edb593a73645fffd8260f1ce313945886f15f653bdef805f9a7cd58eb3ee345" }, "downloads": -1, "filename": "afivmax-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "545d7a4349506f315b2ca056cd26be25", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2808, "upload_time": "2019-06-27T07:37:42", "url": "https://files.pythonhosted.org/packages/ca/37/8bf735cb79e286103c0b0e54e48f821061170a5954272634a388c5a4bca9/afivmax-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0c7fdab9b21416f7b2f4d9709c03b0f4", "sha256": "ee692fea1a3d51e22d68bed1722c3aa76d4f1da32ec5309448ef2518bf85bd9c" }, "downloads": -1, "filename": "afivmax-0.0.1.tar.gz", "has_sig": false, "md5_digest": "0c7fdab9b21416f7b2f4d9709c03b0f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2147, "upload_time": "2019-06-27T07:37:44", "url": "https://files.pythonhosted.org/packages/64/4b/5fb824ae0088803c0ab494dc09696e365b38924e40debd86f5d5408c7f4b/afivmax-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "efa21d84f5331712cd572d8ff01bc95d", "sha256": "52d4f25af56cbc6c70ec211d200dd4a6d358b5d7e5025446be389d215cfb7c0e" }, "downloads": -1, "filename": "afivmax-0.1.0.tar.gz", "has_sig": false, "md5_digest": "efa21d84f5331712cd572d8ff01bc95d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2176, "upload_time": "2019-06-27T08:29:24", "url": "https://files.pythonhosted.org/packages/73/8f/790eb439419e1a6e022c7d133d054a21363c320bf3f73721007679207d55/afivmax-0.1.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "334b143f22b2e5198dbd1e1a8f5eaea8", "sha256": "4a774d183d2be975800dd4ba739e48bb7cb88c545ea4b2e327fac5b9907efbc0" }, "downloads": -1, "filename": "afivmax-0.3.0.tar.gz", "has_sig": false, "md5_digest": "334b143f22b2e5198dbd1e1a8f5eaea8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2786, "upload_time": "2019-06-27T15:47:00", "url": "https://files.pythonhosted.org/packages/91/06/1f4b5089ce6da3b740a19b665fc426f4a3e3701521b1acf5794d3fc15afd/afivmax-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "334b143f22b2e5198dbd1e1a8f5eaea8", "sha256": "4a774d183d2be975800dd4ba739e48bb7cb88c545ea4b2e327fac5b9907efbc0" }, "downloads": -1, "filename": "afivmax-0.3.0.tar.gz", "has_sig": false, "md5_digest": "334b143f22b2e5198dbd1e1a8f5eaea8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2786, "upload_time": "2019-06-27T15:47:00", "url": "https://files.pythonhosted.org/packages/91/06/1f4b5089ce6da3b740a19b665fc426f4a3e3701521b1acf5794d3fc15afd/afivmax-0.3.0.tar.gz" } ] }