{ "info": { "author": "Aminujatto Abdulqahhar", "author_email": "jattoade@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "#### Ormuco and VanHack Code Challenge\n\n> The Question\n> The goal of this question is to write a software library that accepts 2 version string as input and returns whether one is greater than, equal, or less than the other. As an example: \u201c1.2\u201d is greater than \u201c1.1\u201d. Please provide all test cases you could think of.\n\n#### My Solution\n\nGet Started:\n\n- Clone this repository:\n```sh\n$ git@github.com:jattoabdul/compare_version_strings.git\n```\n- Change into the `compare_version_strings` directory:\n```sh\n$ cd compare_version_strings\n```\n- Install all dependencies:\n```sh\n$ pip install -r requirements.txt\n```\nRun Test:\n```sh\n$ pytest\n```\n\nRun as Packaged Library:\n- Install:\n```sh\n$ pip install jatto_compare_version_strings\n```\n\n- Usage:\n\n````\nfrom compare_version_strings.compare_version_strings import compare_versions, prepare_comparison_result\n\ncomparison_result = compare_versions('1.0.0.2.9', '1.0.0.3.4')\n\n# It will return:\n# A positive number: If the first version is greater than the second \n# A negative number: If the first version is smaller than the second\n# Zero: If the versions are equals\n\nformated_result = prepare_comparison_result('1.0.0.2.9', '1.0.0.3.4')\n\n# It will return:\n# '{version1}' is equal to '{version2}': If the comparison returns 0\n# '{version1}' is smaller than '{version2}': If the comparison returns -1\n# '{version1}' is greater than '{version2}': If the comparison returns 1\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/jattoabdul/compare_version_strings", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "jatto-compare-version-strings", "package_url": "https://pypi.org/project/jatto-compare-version-strings/", "platform": "", "project_url": "https://pypi.org/project/jatto-compare-version-strings/", "project_urls": { "Homepage": "https://github.com/jattoabdul/compare_version_strings" }, "release_url": "https://pypi.org/project/jatto-compare-version-strings/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Compare version strings", "version": "0.0.1" }, "last_serial": 5297498, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ba0a367a02e424070f54ae149262e91c", "sha256": "37d3287c62e04a2d33939a42686b11c6ae30557f97d7f02b640b236948519357" }, "downloads": -1, "filename": "jatto_compare_version_strings-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ba0a367a02e424070f54ae149262e91c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4094, "upload_time": "2019-05-21T11:44:10", "url": "https://files.pythonhosted.org/packages/3c/df/85b111eac8f82403685904925c2eacee070ec0ba57f89f9250e4d01cb14c/jatto_compare_version_strings-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "440d1118adebb9bdaa277cd381bf2506", "sha256": "0bd531d90641ba8a7368aa3ba30eec2f8dae26a8f1548ef682c4c1af257ad04e" }, "downloads": -1, "filename": "jatto_compare_version_strings-0.0.1.tar.gz", "has_sig": false, "md5_digest": "440d1118adebb9bdaa277cd381bf2506", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3068, "upload_time": "2019-05-21T11:40:49", "url": "https://files.pythonhosted.org/packages/fa/bd/0b88dde0e14a4f8d73448e085cf4e9f39996e43367738018ef1ca26442fd/jatto_compare_version_strings-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ba0a367a02e424070f54ae149262e91c", "sha256": "37d3287c62e04a2d33939a42686b11c6ae30557f97d7f02b640b236948519357" }, "downloads": -1, "filename": "jatto_compare_version_strings-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ba0a367a02e424070f54ae149262e91c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4094, "upload_time": "2019-05-21T11:44:10", "url": "https://files.pythonhosted.org/packages/3c/df/85b111eac8f82403685904925c2eacee070ec0ba57f89f9250e4d01cb14c/jatto_compare_version_strings-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "440d1118adebb9bdaa277cd381bf2506", "sha256": "0bd531d90641ba8a7368aa3ba30eec2f8dae26a8f1548ef682c4c1af257ad04e" }, "downloads": -1, "filename": "jatto_compare_version_strings-0.0.1.tar.gz", "has_sig": false, "md5_digest": "440d1118adebb9bdaa277cd381bf2506", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3068, "upload_time": "2019-05-21T11:40:49", "url": "https://files.pythonhosted.org/packages/fa/bd/0b88dde0e14a4f8d73448e085cf4e9f39996e43367738018ef1ca26442fd/jatto_compare_version_strings-0.0.1.tar.gz" } ] }